[pkg-kolab] Bug#552848: kolab-cyrus-imapd: FTBFS: ../makedepend/def.h:164: error: conflicting types for 'getline'

Lucas Nussbaum lucas at lucas-nussbaum.net
Wed Oct 28 10:33:40 UTC 2009

Source: kolab-cyrus-imapd
Version: 2.2.13-7
Severity: serious
User: debian-qa at lists.debian.org
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
find out.

Relevant part:
> gcc -c -I.. -I./../lib -I/usr/include/et -I./../sieve   -I/usr/include -DKRB5_HEIMDAL -I/usr/include -I/usr/include -DHAVE_CONFIG_H  -fno-strict-aliasing -fPIC -Wall -pipe -g -O2 -W \
> 	idle.c
> In file included from idle.c:57:
> ../makedepend/def.h:164: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> ../makedepend/def.h:173: warning: type defaults to 'int' in declaration of 'fatalerr'
> ../makedepend/def.h:174: warning: type defaults to 'int' in declaration of 'warning'
> ../makedepend/def.h:175: warning: type defaults to 'int' in declaration of 'warning1'
> idle.c: In function 'idle_fromname':
> idle.c:83: warning: implicit declaration of function 'fatal'
> make[2]: *** [idle.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
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |

More information about the pkg-kolab-devel mailing list