Package: thttpd Severity: important Version: 2.23beta1-3 Tags: patch There was a problem autobuilding your package:
> Automatic build of thttpd_2.23beta1-3 on beethoven by sbuild/hurd-i386 1.170.5 > Build started at 20050510-1616 > ****************************************************************************** [...] > Checking correctness of source dependencies... > Toolchain package versions: libc0.3-dev_2.3.2.ds1-20.0.1 > gnumach-dev_1:20050501-1 hurd-dev_20050507-1 gcc-3.3_1:3.3.5-12 > g++-3.3_1:3.3.5-12 binutils_2.15-5 libstdc++5-3.3-dev_1:3.3.5-12 > libstdc++5_1:3.3.5-12 > ------------------------------------------------------------------------------ > dpkg-source: extracting thttpd in thttpd-2.23beta1 > dpkg-buildpackage: source package is thttpd > dpkg-buildpackage: source version is 2.23beta1-3 > dpkg-buildpackage: host architecture is hurd-i386 [...] > debian/rules build > ./configure \ > --libdir=/usr/lib \ > --prefix=/usr \ > --exec-prefix=/usr \ > --sbindir=/usr/sbin \ > --bindir=/usr/bin \ > --sysconfdir=/etc \ > --mandir=/usr/share/ \ > --includedir=/usr/include [...] > test -e debian/control > /usr/bin/make > make[1]: Entering directory `/build/mbanck/thttpd-2.23beta1' > gcc -O -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1 > -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1 > -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1 -DHAVE_LIBCRYPT=1 > -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1 > -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_GETADDRINFO=1 > -DHAVE_GETNAMEINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_SIGSET=1 > -DHAVE_ATOLL=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 > -DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_INT64T=1 -I. > -c thttpd.c thttpd.c: In function `main': > thttpd.c:243: error: `MAXPATHLEN' undeclared (first use in this function) > thttpd.c:243: error: (Each undeclared identifier is reported only once > thttpd.c:243: error: for each function it appears in.) > make[1]: *** [thttpd.o] Error 1 > make[1]: Leaving directory `/build/mbanck/thttpd-2.23beta1' > make: *** [build] Error 2 > ****************************************************************************** > Build finished at 20050510-1617 > FAILED [dpkg-buildpackage died] MAXPATHLEN is mandated by POSIX if there is a system limit, which is not the case for GNU/Hurd. The attached patch fixes this in a crude way, you might want to suggest to upstream to properly fix it by allocating the needed memory dynamically. thanks, Michael -- Michael Banck Debian Developer [EMAIL PROTECTED] http://www.advogato.org/person/mbanck/diary.html
diff -Naur thttpd-2.23beta1.orig/libhttpd.c thttpd-2.23beta1/libhttpd.c --- thttpd-2.23beta1.orig/libhttpd.c 2005-05-10 17:55:50.000000000 +0200 +++ thttpd-2.23beta1/libhttpd.c 2005-05-10 17:58:20.000000000 +0200 @@ -77,6 +77,10 @@ # endif #endif +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif + extern char* crypt( const char* key, const char* setting ); #include "libhttpd.h" diff -Naur thttpd-2.23beta1.orig/thttpd.c thttpd-2.23beta1/thttpd.c --- thttpd-2.23beta1.orig/thttpd.c 2005-05-10 17:55:50.000000000 +0200 +++ thttpd-2.23beta1/thttpd.c 2005-05-10 18:05:02.000000000 +0200 @@ -63,6 +63,9 @@ #define SHUT_WR 1 #endif +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif static char* argv0; static int debug;