After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786383 - Make fails to link gdk-pixbuf-csource against libtiff
Make fails to link gdk-pixbuf-csource against libtiff
Status: RESOLVED DUPLICATE of bug 786342
Product: gdk-pixbuf
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks:
 
 
Reported: 2017-08-16 17:32 UTC by Phillip Berndt
Modified: 2017-11-30 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Phillip Berndt 2017-08-16 17:32:11 UTC
Excerpt from make V=1:

-------8<-------------
/bin/bash ../libtool  --tag=CC   --mode=link gcc -std=gnu99  -isystem $P/prefix/include -m32  -Wall  -L$P/prefix/lib -m32 -o gdk-pixbuf-csource gdk-pixbuf-csource.o libgdk_pixbuf-2.0.la -L$P/prefix/lib -lgmodule-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpng16 -lz -ljpeg -L$P/prefix/lib -lpng16 -lz -ljasper -lm 
libtool: link: gcc -std=gnu99 -isystem $P/prefix/include -m32 -Wall -m32 -o .libs/gdk-pixbuf-csource gdk-pixbuf-csource.o -pthread  -L$P/prefix/lib ./.libs/libgdk_pixbuf-2.0.so -L$P/prefix/lib/../lib32 $P/prefix/lib/libgio-2.0.so $P/prefix/lib/libgmodule-2.0.so -ldl -lresolv $P/prefix/lib/libmount.so $P/prefix/lib/libblkid.so $P/prefix/lib/libuuid.so -lrt $P/prefix/lib/libgobject-2.0.so $P/prefix/lib/../lib32/libffi.so $P/prefix/lib/libglib-2.0.so $P/prefix/lib/libpcre.so -lpthread $P/prefix/lib/libpng16.so -lz $P/prefix/lib/libjasper.a $P/prefix/lib/libjpeg.so -lm -pthread -Wl,-rpath -Wl,$P/prefix/lib -Wl,-rpath -Wl,$P/prefix/lib/../lib32
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFWriteScanline'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFClose'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetErrorHandler'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFGetField'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFIsCODECConfigured'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFClientOpen'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetField'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFReadDirectory'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetWarningHandler'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFReadRGBAImageOriented'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFFdOpen'
collect2: error: ld returned 1 exit status
Makefile:1874: recipe for target 'gdk-pixbuf-csource' failed
--------->8-----------

This used to work. config.log says libtiff was found, and TIFF_LIBS/TIFF_CFLAGS also have the correct value from pkg-config. Adding -ltiff to the generated .la file for gdk_pixbuf-2.0 solves the problem.
Comment 1 Emmanuele Bassi (:ebassi) 2017-08-16 17:32:59 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 786342 ***
Comment 2 Phillip Berndt 2017-10-01 14:28:36 UTC
This still affects me with 2.36.10, so it obviously was not a duplicate of bug 786342 after all. Reopening.

I configure with

./configure --enable-static  --disable-modules --with-libjasper --with-included-loaders=ani,icns,tga,png,pnm,xbm,xpm,qtif,jasper,bmp,gif,ico,jpeg,tiff

Current error log:

-------8<-------------
  CC       gdk-pixbuf-csource.o
  CCLD     gdk-pixbuf-csource
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFWriteScanline'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFClose'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetErrorHandler'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFGetField'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFIsCODECConfigured'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFClientOpen'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetField'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFReadDirectory'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFSetWarningHandler'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFReadRGBAImageOriented'
./.libs/libgdk_pixbuf-2.0.so: undefined reference to `TIFFFdOpen'
collect2: error: ld returned 1 exit status
--------->8-----------
Comment 3 Bastien Nocera 2017-11-30 01:53:31 UTC
(In reply to Phillip Berndt from comment #2)
> This still affects me with 2.36.10, so it obviously was not a duplicate of
> bug 786342 after all. Reopening.

I'll close again. bug 786342 was fixed in 2.36.11, not 2.36.10.

In fact, it's the first fix after the 2.36.10 release:
commit 66537d1ecf7e857a0a443c1ebf72baf6f19dd3e4
Author: Bastien Nocera <hadess@hadess.net>
Date:   Mon Sep 11 19:11:50 2017 +0200

    build: Fix TIFF loader compilation with autotools
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786342

*** This bug has been marked as a duplicate of bug 786342 ***
Comment 4 Phillip Berndt 2017-11-30 12:23:34 UTC
Ah, sorry. I assumed that the commit had made it into 2.36.10 already. Just to confirm, the fix solves this issue as well, 2.36.11 works. Thanks!