Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#552868: ldapvi: FTBFS: common.h:276: error: conflicting types for 'getline'

9 views
Skip to first unread message

Lucas Nussbaum

unread,
Oct 29, 2009, 1:10:02 AM10/29/09
to
Source: ldapvi
Version: 1.7-5
Severity: serious
User: debi...@lists.debian.org
Usertags: qa-ftbfs-20091028 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

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:
> x86_64-linux-gnu-gcc -c -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -g -O2 -o base64.o base64.c
> In file included from data.c:18:
> common.h:276: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> In file included from ldapvi.c:23:
> common.h:276: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> In file included from base64.c:49:
> common.h:276: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> In file included from misc.c:20:
> common.h:276: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
> make[1]: *** [data.o] Error 1

The full build log is available from:
http://people.debian.org/~lucas/logs/2009/10/28/ldapvi_1.7-5_lsid64.buildlog

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
| lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

David Lichteblau

unread,
Oct 29, 2009, 5:10:01 AM10/29/09
to
Hi,

Quoting Lucas Nussbaum (lu...@lucas-nussbaum.net):
> 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.

this bug should be fixed in upstream's git repository. Please test!


d.

0 new messages