Bug#603299: cimg: FTBFS with binutils-gold because of missing libX11 when linking the examples

Fabrice Coutadeur fabricesp at ubuntu.com
Fri Nov 12 17:20:52 UTC 2010


Package: cimg
Version: 1.4.4-1
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi,

Sorry to bug you again with that, but a new FTBFS appeared in 1.4.4 with missing
libX11 when linking the examples. Here is the relevant part of the build log:
...
g++ -o gmic_gimp gmic_gimp.cpp gmic_gimp.o -Dcimg_build `gimptool-2.0 --cflags` `gimptool-2.0 --libs` -lpthread  -lfftw3 -lpng -lz 
/usr/bin/ld: /tmp/ccfFCi4P.o: undefined reference to symbol 'XGetWindowAttributes'
/usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [gmic_gimp] Error 1

The fix is different than the previous one, as gmic_gimp is not using LDFLAG, so
it's necessary to patch the Makefile file, as you can see in the next patch:
*** /tmp/tmpuilFjM

I haven't applied the patch yet in UbuntuDA, even if have the package ready.
Just tell me if you think I should upload it, without waiting for you.

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: tmpbNy9ma
Type: text/x-diff
Size: 1697 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20101112/95bc9efb/attachment.diff>


More information about the debian-science-maintainers mailing list