Bug#312377: libgnome: FTFBS on hurd-i386: Unconditional use of non-POSIX mandated system limits

Michael Banck Michael Banck <mbanck@debian.org>, 312377@bugs.debian.org
Tue, 7 Jun 2005 21:43:46 +0200


Package: libgnome
Severity: important

There was a problem building your package:

Automatic build of libgnome_2.8.1-2 on beethoven by sbuild/hurd-i386
1.170.5
Build started at 20050324-1944
******************************************************************************
Checking available source versions...
Fetching source files...
Reading Package Lists...
Building Dependency Tree...
Need to get 1811kB of source archives.
Get:1 http://ftp.de.debian.org unstable/main libgnome 2.8.1-2 (dsc)
[1782B]
Get:2 http://ftp.de.debian.org unstable/main libgnome 2.8.1-2 (tar)
[1773kB]
Get:3 http://ftp.de.debian.org unstable/main libgnome 2.8.1-2 (diff)
[35.9kB]
Fetched 1811kB in 1s (1249kB/s)
Download complete and in download only mode
** Using build dependencies supplied by package:
Build-Depends: debhelper (>= 4.0.0), libxml2-dev (>= 2.4.22),
libbz2-dev, libgnomevfs2-dev (>= 2.7.91-3), libbonobo2-dev (>= 2.6.0-2),
libpopt-dev, libxslt1-dev (>= 1.1.2), zlib1g-dev, intltool,
libgconf2-dev (>= 2.7.92), liborbit2-dev (>= 1:2.10.2-1.1), libesd0-dev,
libglib2.0-dev (>= 2.4.1-2), cdbs, gnome-pkg-tools, gtk-doc-tools,
docbook-xml
** Filtered missing central deps that are dependencies of or provide
build-deps:
libaudiofile-dev (>= 0.2.3-4)
[...]
Checking correctness of source dependencies...
Toolchain package versions: libc0.3-dev_2.3.2.ds1-20.0.1
gcc-3.3_1:3.3.5-2 g++-3.3_1:3.3.5-2 binutils_2.15-5
libstdc++5-3.3-dev_1:3.3.5-2 libstdc++5_1:3.3.5-2
------------------------------------------------------------------------------
dpkg-source: extracting libgnome in libgnome-2.8.1
dpkg-buildpackage: source package is libgnome
dpkg-buildpackage: source version is 2.8.1-2
dpkg-buildpackage: host architecture is hurd-i386
[...]
 debian/rules build
[...]
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -D_REENTRANT -DORBIT2=1
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DG_DISABLE_DEPRECATED
-DLIBGNOME_PREFIX=\"/usr\" -DLIBGNOME_LIBDIR=\"/usr/lib\"
-DLIBGNOME_DATADIR=\"/usr/share\" -DLIBGNOME_BINDIR=\"/usr/bin\"
-DLIBGNOME_LOCALSTATEDIR=\"/var/lib\" -DLIBGNOME_SYSCONFDIR=\"/etc\"
-DVERSION=\"2.8.1\" -DGNOMEVFSVERSION=\"2.8.4\" -DG_LOG_DOMAIN=\"Gnome\"
-Wall -g -MT gnome-program.lo -MD -MP -MF .deps/gnome-program.Tpo -c
gnome-program.c  -fPIC -DPIC -o .libs/gnome-program.o
gnome-program.c: In function `gnome_program_locate_file':
gnome-program.c:862: error: `PATH_MAX' undeclared (first use in this
function)
gnome-program.c:862: error: (Each undeclared identifier is reported only
once
gnome-program.c:862: error: for each function it appears in.)
gnome-program.c:862: warning: unused variable `fnbuf'
make[4]: *** [gnome-program.lo] Error 1
make[4]: Leaving directory `/build/mbanck/libgnome-2.8.1/libgnome'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/mbanck/libgnome-2.8.1/libgnome'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/mbanck/libgnome-2.8.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/mbanck/libgnome-2.8.1'
make: *** [debian/stamp-makefile-build] Error 2
******************************************************************************
Build finished at 20050324-1956
FAILED [dpkg-buildpackage died]

POSIX says PATH_MAX should be defined to the maximum path length, if
such a limit exists.  As the GNU system does not have this (or any other
arbitrary) limit, PATH_MAX is not defined.

The clean solution is to allocate the needed space dynamically.  We will
come up with a patch shortly.


cheers,

Michael