Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3172 - lynx failure with gcc-3.1
Summary: lynx failure with gcc-3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-29 10:37 UTC by Brandon Low (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed ebuild and patch for lynx to compile with gcc-3.1 (lynx-2.8.4a-r4.tar.gz,1.24 KB, application/gzip)
2002-05-29 14:49 UTC, Brandon Low (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Low (RETIRED) gentoo-dev 2002-05-29 10:37:37 UTC
When attempting to compile lynx with gcc-3.1 I get the following compile errors,
I haven't had a chance to really sit and look at the code yet, but wanted to get
this bug out.  Error message long, sorry.  

make[1]: Entering directory
`/var/tmp/portage/lynx-2.8.4a-r3/work/lynx2-8-4/WWW/Library/Implementation'
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DLINUX -I/usr/include  -I../../..
-I../../../src -I../../.. -I../../../src  -I../../../WWW/Library/Implementation
-march=athlon-xp -O3 -fgcse -fomit-frame-pointer   
-I../../../WWW/Library/Implementation/ -DXMOSAIC_HACK -DACCESS_AUTH -c
-DVC=\"2.14\" ../../../WWW/Library/Implementation/HTString.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
../../../WWW/Library/Implementation/HTString.c:764: parse error before "va_dcl"
../../../WWW/Library/Implementation/HTString.c:766: syntax error before '{' token
../../../WWW/Library/Implementation/HTString.c:771:22: macro "va_start" requires
2 arguments, but only 1 given
../../../WWW/Library/Implementation/HTString.c:771: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:772: parse error before '{'
token../../../WWW/Library/Implementation/HTString.c:775: initializer element is
not constant
../../../WWW/Library/Implementation/HTString.c:777: parse error before "if"
../../../WWW/Library/Implementation/HTString.c:779: `pstr' undeclared here (not
in a function)
../../../WWW/Library/Implementation/HTString.c:779: warning: initialization
makes integer from pointer without a cast
../../../WWW/Library/Implementation/HTString.c:779: initializer element is not
constant
../../../WWW/Library/Implementation/HTString.c:779: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:780: parse error before '}'
token../../../WWW/Library/Implementation/HTString.c:781: warning: parameter
names (without types) in function declaration
../../../WWW/Library/Implementation/HTString.c:781: warning: conflicting types
for built-in function `__builtin_va_end'
../../../WWW/Library/Implementation/HTString.c:781: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:783: parse error before "return"
../../../WWW/Library/Implementation/HTString.c:800: parse error before "va_dcl"
../../../WWW/Library/Implementation/HTString.c:802: syntax error before '{' token
../../../WWW/Library/Implementation/HTString.c:806:22: macro "va_start" requires
2 arguments, but only 1 given
../../../WWW/Library/Implementation/HTString.c:806: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:807: parse error before '{'
token../../../WWW/Library/Implementation/HTString.c:810: redefinition of `fmt'
../../../WWW/Library/Implementation/HTString.c:775: `fmt' previously defined here
../../../WWW/Library/Implementation/HTString.c:810: initializer element is not
constant
../../../WWW/Library/Implementation/HTString.c:821: redefinition of `result'
../../../WWW/Library/Implementation/HTString.c:779: `result' previously defined here
../../../WWW/Library/Implementation/HTString.c:821: `pstr' undeclared here (not
in a function)../../../WWW/Library/Implementation/HTString.c:821: warning:
initialization makes integer from pointer without a cast
../../../WWW/Library/Implementation/HTString.c:821: initializer element is not
constant
../../../WWW/Library/Implementation/HTString.c:821: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:822: parse error before '}'
token../../../WWW/Library/Implementation/HTString.c:823: warning: parameter
names (without types) in function declaration
../../../WWW/Library/Implementation/HTString.c:823: warning: data definition has
no type or storage class
../../../WWW/Library/Implementation/HTString.c:825: parse error before "return"
make[1]: *** [HTString.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/lynx-2.8.4a-r3/work/lynx2-8-4/WWW/Library/Implementation'
make: *** [all] Error 2
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-05-29 14:49:21 UTC
Created attachment 1218 [details]
fixed ebuild and patch for lynx to compile with gcc-3.1

Carpaski and I came up with 2 cheap hacks to make this work, check em out, see
if other compilers like them, and then please commit.
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-02 16:13:02 UTC
patch applied for -r4.
masked because it needs 2.95.3 user testing.
thanks for the patch!

Matt