Package: gcc-4.0 Version: 4.0.0-9 Severity: important Tags: patch Automatic build of gcc-4.0_4.0.0-9+hurd.1 on beethoven by sbuild/hurd-i386 1.170.5 [...] cc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include ../../src/gcc/tlink.c -o tlink.o ../../src/gcc/tlink.c:42: error: `MAXPATHLEN' undeclared here (not in a function) ../../src/gcc/tlink.c:42: error: storage size of `initial_cwd' isn't known ../../src/gcc/tlink.c:42: warning: `initial_cwd' defined but not used make[4]: *** [tlink.o] Error 1
This is #21706 in GCC bugzilla. Until a proper upstream solution is found, I suggest using the attached patch (which is but a hot fix and should not get forwarded upstream). cheers, Michael
--- gcc-4.0-4.0.0/src/gcc/tlink.c 2004-11-09 11:12:19.000000000 +0100 +++ gcc-4.0-4.0.0/src/gcc/tlink.c.new 2005-06-22 13:01:44.000000000 +0200 @@ -34,6 +34,10 @@ #define MAX_ITERATIONS 17 +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif + /* Defined in the automatically-generated underscore.c. */ extern int prepends_underscore;