Package: acedb
Version: 4.9.39+dfsg.01-1
Severity: wishlist
Tags: patch
User: [email protected]
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
diff -Nru acedb-4.9.39+dfsg.01/debian/patches/binutils-gold.patch acedb-4.9.39+dfsg.01/debian/patches/binutils-gold.patch
--- acedb-4.9.39+dfsg.01/debian/patches/binutils-gold.patch 1970-01-01 01:00:00.000000000 +0100
+++ acedb-4.9.39+dfsg.01/debian/patches/binutils-gold.patch 2010-11-05 07:08:26.000000000 +0100
@@ -0,0 +1,27 @@
+Description: add explicit link with libX11 as this is required by libgex.a.
+ This fix a FTBFS with binutils-gold with the following error:
+ "./libgex.a(graphgdkremote.o): undefined reference to symbol 'XFree'"
+Author: Fabrice Coutadeur <[email protected]>
+
+--- acedb-4.9.39+dfsg.01.orig/wmake/LINUX_4_DEF
++++ acedb-4.9.39+dfsg.01/wmake/LINUX_4_DEF
+@@ -28,7 +28,7 @@ COMPILER = gcc $(COPT) -Wall -DACEDB4 `
+ LINKER = gcc $(COPT)
+
+ # The arg to libs-config is used if our private copy not installed.
+-LIBS = -L/usr/X11R6/lib `../w3rdparty/libs-config $(GTKVER)` -lm -lcurses -lreadline
++LIBS = -L/usr/X11R6/lib `../w3rdparty/libs-config $(GTKVER)` -lm -lcurses -lreadline -lX11
+
+ ### Linux uses flex to emulate the standard 'lex' program
+ LEX_LIBS = -lfl
+--- acedb-4.9.39+dfsg.01.orig/wmake/LINUX_64_DEF
++++ acedb-4.9.39+dfsg.01/wmake/LINUX_64_DEF
+@@ -28,7 +28,7 @@ COMPILER = gcc $(COPT) -Wall -DACEDB4 `
+ LINKER = gcc $(COPT)
+
+ # The arg to libs-config is used if our private copy not installed.
+-LIBS = -L/usr/X11R6/lib `../w3rdparty/libs-config $(GTKVER)` -lm -lcurses -lreadline
++LIBS = -L/usr/X11R6/lib `../w3rdparty/libs-config $(GTKVER)` -lm -lcurses -lreadline -lX11
+
+ ### Linux uses flex to emulate the standard 'lex' program
+ LEX_LIBS = -lfl
diff -Nru acedb-4.9.39+dfsg.01/debian/patches/series acedb-4.9.39+dfsg.01/debian/patches/series
--- acedb-4.9.39+dfsg.01/debian/patches/series 2010-07-11 06:33:15.000000000 +0200
+++ acedb-4.9.39+dfsg.01/debian/patches/series 2010-11-05 07:04:05.000000000 +0100
@@ -2,3 +2,4 @@
belvu_help.patch
efetch_help.patch
dotter_help.patch
+binutils-gold.patch