[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#604494: FTBFS with gold / ld --no-add-needed



Package: libxpm
Version: 3.5.9-1
Severity: important
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch
User: peter.fritzsche@gmx.de
Usertags: no-add-needed

  CCLD   sxpm
/usr/bin/ld: sxpm.o: undefined reference to symbol 'XBlackPixelOfScreen'
/usr/bin/ld: note: 'XBlackPixelOfScreen' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [sxpm] Error 1

Please turn verbose build logs, the short form may look "nice", but hides information.
diff -u libxpm-3.5.9/debian/changelog libxpm-3.5.9/debian/changelog
--- libxpm-3.5.9/debian/changelog
+++ libxpm-3.5.9/debian/changelog
@@ -1,3 +1,9 @@
+libxpm (1:3.5.9-1ubuntu1) natty; urgency=low
+
+  * Fix build failure with --no-add-needed.
+
+ -- Matthias Klose <doko@ubuntu.com>  Mon, 22 Nov 2010 15:42:10 +0100
+
 libxpm (1:3.5.9-1) unstable; urgency=low
 
   [ Julien Cristau ]
only in patch2:
unchanged:
--- libxpm-3.5.9.orig/sxpm/Makefile.am
+++ libxpm-3.5.9/sxpm/Makefile.am
@@ -7,7 +7,7 @@
 
 sxpm_SOURCES = sxpm.c
 
-LDADD = $(SXPM_LIBS) $(top_builddir)/src/libXpm.la
+LDADD = $(top_builddir)/src/libXpm.la $(SXPM_LIBS) -lX11
 
 # Man page
 appmandir = $(APP_MAN_DIR)

Reply to: