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
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.
patch applied for -r4. masked because it needs 2.95.3 user testing. thanks for the patch! Matt