Package: autogen
Severity: important
Version: 5.7-4
Tags: patch

Sorry, I should have checked this before filing the last bug.  Due to a
PATH_MAX occurance in autoopts/load.c, autogen FTBFS:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../autoopts -O2 -MT libopts.lo
-MD -MP -MF .deps/libopts.Tpo -c libopts.c  -fPIC -DPIC -o
.libs/libopts.o
In file included from libopts.c:15:
load.c: In function 'optionMakePath':
load.c:225: error: 'PATH_MAX' undeclared (first use in this function)
load.c:225: error: (Each undeclared identifier is reported only once
load.c:225: error: for each function it appears in.)
In file included from libopts.c:27:
tokenize.c: In function 'copy_cooked':
tokenize.c:51: warning: pointer targets in passing argument 1 of
'ao_string_cook_escape_char' differ in signedness
tokenize.c:51: warning: pointer targets in passing argument 2 of
'ao_string_cook_escape_char' differ in signedness
make[4]: *** [libopts.lo] Error 1
make[4]: Leaving directory `/build/mbanck/autogen-5.7/autoopts'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/mbanck/autogen-5.7/autoopts'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/mbanck/autogen-5.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/mbanck/autogen-5.7'
make: *** [build-stamp] Error 2
******************************************************************************
Build finished at 20050725-1906
FAILED [dpkg-buildpackage died]

The attached patch fixes this, autogen builds fine on hurd-i386 now.
Maybe your upstream wants to go down the cleaner solution though -
figuring out the needed length of the pathname and allocating memory
dynamically.


cheers,

Michael

PS: autogen is a Build-Depends for gcc-4.0, so this is pretty important
for us to get in.  I can NMU if you want.
--- autogen-5.7/autoopts/load.c.orig    2005-07-25 19:32:51.000000000 +0200
+++ autogen-5.7/autoopts/load.c 2005-07-25 19:33:32.000000000 +0200
@@ -221,6 +221,9 @@
     }
 
 #ifdef HAVE_REALPATH
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
     {
         char z[ PATH_MAX+1 ];
 

Reply via email to