[Debian-med-packaging] Bug#602472: acedb: FTBFS with binutils because of "undefined reference to symbol 'XFree'"

Fabrice Coutadeur fabricesp at ubuntu.com
Fri Nov 5 06:20:26 UTC 2010


Package: acedb
Version: 4.9.39+dfsg.01-1
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi,

acedb FTBFS with binutils-gold. Here is the relevant part of the build log:
...
gcc -g -o blixem blixem.o blxmain.o blxparser.o dotter.o dotterKarlin.o \
	translate.o -L. -lgex -lgraph -lgd -lfree `../w3rdparty/acedb-config glib-2.0 gtk+-2.0` -L/usr/X11R6/lib `../w3rdparty/libs-config glib-2.0 gtk+-2.0` -lm -lcurses -lreadline
./libgraph.a(graphascii.o): In function `graphASCII':
/build/fabrice-acedb_4.9.39+dfsg.01-1ubuntu1-amd64-IHv2cZ/acedb-4.9.39+dfsg.01/bin.LINUX_4/graphascii.c:264: warning: the use of `tempnam' is dangerous, better use `mkstemp'
./libgraph.a(graphprint.o): In function `pdInit':
/build/fabrice-acedb_4.9.39+dfsg.01-1ubuntu1-amd64-IHv2cZ/acedb-4.9.39+dfsg.01/bin.LINUX_4/graphprint.c:1164: warning: the `getwd' function is dangerous and should not be used.
/usr/bin/ld: ./libgex.a(graphgdkremote.o): undefined reference to symbol 'XFree'
/usr/bin/ld: note: 'XFree' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
collect2: ld returned 1 exit status
make[2]: *** [blixem] Error 1

In Ubuntu, we've applied the attached patch to fix this FTBFS:
  * binutils-gold.patch: patch wmake/LINUX_64_DEF and wmake/LINUX_$_DEF to add
    explicit link with libX11. This fixes a FTBFS with binutils-gold.

We thought you might be interested in doing the same. 

*** /tmp/tmpbdUAeD

Thanks,
Fabrice

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-proposed'), (500, 'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-23-generic (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmpad51Dq
Type: text/x-diff
Size: 1973 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20101105/13ef8356/attachment.diff>


More information about the Debian-med-packaging mailing list