[xml/sgml-pkgs] Bug#333623: libxml2: FTBFS on hurd-i386: PATH_MAX regression

Michael Banck mbanck at gmx.net
Wed Oct 12 23:16:35 UTC 2005


Package: libxml2
Version: 2.6.22-1
Severity: important
Tags: patch

Hello,

there was a problem autobuilding your package:

On Wed, Oct 12, 2005 at 09:38:43PM +0200, Debian autobuilder wrote:
> Automatic build of libxml2_2.6.22-1 on beethoven by sbuild/hurd-i386 69
> Build started at 20051012-2117
> ******************************************************************************
[...]
> ** Using build dependencies supplied by package:
> Build-Depends: debhelper (>= 4.1.67), zlib1g-dev | libz-dev, python, python2.4-dev, python2.3-dev, python2.2-dev, autotools-dev
[...]
> Checking correctness of source dependencies...
> Toolchain package versions: libc0.3-dev_2.3.5-6 gcc-4.0_4.0.1-9 g++-4.0_4.0.1-4 binutils_2.16.1-2 libstdc++6-4.0-dev_4.0.1-4 libstdc++6_4.0.1-4
> ------------------------------------------------------------------------------
> dpkg-source: extracting libxml2 in libxml2-2.6.22
> dpkg-source: unpacking libxml2_2.6.22.orig.tar.gz
> dpkg-source: applying /org/buildd/build/libxml2_2.6.22-1.diff.gz
> dpkg-buildpackage: source package is libxml2
> dpkg-buildpackage: source version is 2.6.22-1
> dpkg-buildpackage: host architecture hurd-i386
[...]
>  debian/rules build
[...]
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include  -D_REENTRANT      -Wall -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT testModule.o -MD -MP -MF ".deps/testModule.Tpo" -c -o testModule.o testModule.c; \
> then mv -f ".deps/testModule.Tpo" ".deps/testModule.Po"; else rm -f ".deps/testModule.Tpo"; exit 1; fi
> testModule.c: In function 'main':
> testModule.c:35: error: 'PATH_MAX' undeclared (first use in this function)
> testModule.c:35: error: (Each undeclared identifier is reported only once
> testModule.c:35: error: for each function it appears in.)
> testModule.c:48: warning: dereferencing type-punned pointer will break strict-aliasing rules
> testModule.c:35: warning: unused variable 'filename'
> make[3]: *** [testModule.o] Error 1
> make[3]: Leaving directory `/build/buildd/libxml2-2.6.22'
> make[2]: Leaving directory `/build/buildd/libxml2-2.6.22'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/libxml2-2.6.22'
> make: *** [build-stamp] Error 2
> ******************************************************************************
> Build finished at 20051012-2136
> FAILED [dpkg-buildpackage died]

PATH_MAX is only mandated by POSIX if there is a system limit for the
maximum path length.  This is not the case on GNU/Hurd, that's why this
code fails.

As this is appears to be only in a test file, I suggest to simple
#define PATH_MAX to an arbitrary value if it is not #defined already. 

Patch attached, please apply (as libxml2 blocks quite a couple of other
packages) and proxy upstream at your discretion.


thanks,

Michael


-------------- next part --------------
--- libxml2-2.6.22/testModule.c.orig	2005-10-13 01:13:19.395014104 +0200
+++ libxml2-2.6.22/testModule.c	2005-10-13 01:13:36.635393168 +0200
@@ -29,6 +29,10 @@
 #define MODULE_PATH ".libs"
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 typedef int (*hello_world_t)(void);
  
 int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {


More information about the debian-xml-sgml-pkgs mailing list