Bug#602166: cimg: FTBFS with binutils-gold
Fabrice Coutadeur
fabricesp at ubuntu.com
Tue Nov 2 06:20:14 UTC 2010
Package: cimg
Version: 1.3.9-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch no-add-needed
Hi,
binutils-gold will be the default for next Debian and Ubuntu release.
The main difference is that --no-add-needed is the default behavior of GNU
binutils-gold. This means that you need to provide all needed libraries to the
linker when building your executables.
More informations can be found at
http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking
Here is the interesting part of the log file:
...
** Compiling 'CImg_demo (1.3.9)' with 'gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-9ubuntu1) '
g++ -o CImg_demo CImg_demo.cpp -I.. -Wall -W -lm -lpthread -O3 -fno-tree-pre -Dcimg_use_vt100 -I/usr/X11R6/include -Dcimg_use_xshm -Dcimg_use_xrandr -Dcimg_use_tiff -Dcimg_use_openexr -I/usr/include/OpenEXR -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_magick -I/usr/include/ImageMagick -g -O2 -pthread -Dcimg_use_fftw3 -L/usr/X11R6/lib -lpthread -lX11 -lXext -lXrandr -ltiff -lIlmImf -lpng -lz -ljpeg -lz -L/usr/lib -Wl,-Bsymbolic-functions -L/usr/lib/X11 -L/usr/lib -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lfftw3
/usr/bin/ld: /tmp/ccELshpW.o: undefined reference to symbol 'half::_eLut'
/usr/bin/ld: note: 'half::_eLut' is defined in DSO /usr/lib/libHalf.so.6 so try adding it to the linker command line
/usr/lib/libHalf.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [CImg_demo] Error 1
make[3]: Leaving directory `/build/buildd/cimg-1.3.9/examples'
make[2]: *** [Mlinux] Error 2
Here is the patch we applied in Ubuntu to fix the FTBFS:
*** /tmp/tmplSR4El
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 --------------
--- cimg-1.3.9/debian/rules 2010-07-28 08:45:11.000000000 +0200
+++ cimg-1.3.9/debian/rules 2010-11-02 06:15:17.000000000 +0100
@@ -26,7 +26,7 @@
cp -a CHANGES.txt $(CURDIR)/debian/$(pkg)/usr/share/doc/$(pkg)/changelog
override_dh_auto_install:
- cd examples && $(MAKE) Mlinux "LDFLAGS=-lm -lpthread"
+ cd examples && $(MAKE) Mlinux "LDFLAGS=-lm -lpthread -lHalf"
CHANGEFILES=gaussian_fit1d.cpp \
use_RGBclass.cpp
More information about the debian-science-maintainers
mailing list