Bug#552896: thttpd: FTBFS: htpasswd.c:57: error: conflicting types for 'getline'
Usertags: qa-ftbfs-20091028 qa-ftbfs
Justification: FTBFS on amd64
During a rebuild of all packages in sid, your package failed to build on
In eglibc <= 2.9, getline was only defined if _GNU_SOURCE was defined.
In eglibc 2.10, getline is always defined (since it became a standard in
POSIX2008). The problem is that your package already has a function
named getline(), which now conflicts with glibc's. You need to rename
your function to something else.
Ubuntu already fixed many occurences of your problem, so it is possible
that an Ubuntu patch is available for your package. Look at the PTS to
> gcc -O2 -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_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 -DHAVE_SOCKLENT=1 -I.. -DWEBDIR=\"/var/www\" -c htpasswd.c
> htpasswd.c:57: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> make: *** [htpasswd.o] Error 1
The full build log is available from:
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot. Internet was not
accessible from the build systems.
| Lucas Nussbaum
| firstname.lastname@example.org http://www.lucas-nussbaum.net/ |
| jabber: email@example.com GPG: 1024D/023B3F4F |