Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687088 - media-libs/simage-1.7.1a_beta_pre20180312 : /.../ld: libsimage.so.1.7.1a: undefined reference to GifQuantizeBuffer
Summary: media-libs/simage-1.7.1a_beta_pre20180312 : /.../ld: libsimage.so.1.7.1a: und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL: https://sourceforge.net/p/giflib/bugs...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-31 16:58 UTC by Toralf Förster
Modified: 2019-11-16 19:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.98 KB, text/plain)
2019-05-31 16:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.23 KB, text/plain)
2019-05-31 16:58 UTC, Toralf Förster
Details
environment (environment,110.43 KB, text/plain)
2019-05-31 16:58 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.24 KB, application/x-bzip)
2019-05-31 16:58 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.80 KB, application/x-bzip)
2019-05-31 16:58 UTC, Toralf Förster
Details
media-libs:simage-1.7.1a_beta_pre20180312:20190531-154247.log (media-libs:simage-1.7.1a_beta_pre20180312:20190531-154247.log,65.68 KB, text/plain)
2019-05-31 16:58 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.93 KB, application/x-bzip)
2019-05-31 16:58 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-05-31 16:58:27 UTC
/usr/bin/cmake -E cmake_link_script CMakeFiles/loaders.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/loaders.dir/tests/loaders.c.o  -o loaders -Wl,-rpath,/var/tmp/portage/media-libs/simage-1.7.1a_beta_pre20180312/work/simage-1.7.1a_beta_pre20180312_build libsimage.so.1.7.1a -lm -lgif -ljpeg -logg -lvorbis -lvorbisfile -lvorbisenc -lpng -lz /usr/lib64/libQt5Gui.so.5.12.3 /usr/lib64/libQt5Core.so.5.12.3 -ltiff 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: libsimage.so.1.7.1a: undefined reference to `GifQuantizeBuffer'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/loaders.dir/build.make:96: loaders] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/simage-1.7.1a_beta_pre20180312/work/simage-1.7.1a_beta_pre20180312_build'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop-gnome_20190528-195041

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-libs/simage
[ebuild  N    ] media-libs/simage-1.7.1a_beta_pre20180312  USE="gif jpeg png qt5 tiff vorbis -debug -jpeg2k -sndfile"
Comment 1 Toralf Förster gentoo-dev 2019-05-31 16:58:30 UTC
Created attachment 578214 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-31 16:58:33 UTC
Created attachment 578216 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-31 16:58:35 UTC
Created attachment 578218 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-31 16:58:38 UTC
Created attachment 578220 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-31 16:58:40 UTC
Created attachment 578222 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-05-31 16:58:43 UTC
Created attachment 578224 [details]
media-libs:simage-1.7.1a_beta_pre20180312:20190531-154247.log
Comment 7 Toralf Förster gentoo-dev 2019-05-31 16:58:45 UTC
Created attachment 578226 [details]
temp.tbz2
Comment 8 hangglider 2019-06-23 09:26:57 UTC
This seems to happen because medis-libs/giflib (5.1.9 in my case) doesn't install  libutil.*, where that symbol is defined, or quantize.o isn't linked into libgif.*.
Comment 9 hangglider 2019-09-30 19:55:55 UTC
As I don't know if the miss of symbol GifQuantizeBuffer in giflib is intended or not, one solution could be to avoid the use of that in simage (don't even know if it's easily possible). Otherwise it's simple to patch the Makefile there (can provide patch for that).
Comment 10 Serg Truf 2019-10-18 16:29:56 UTC
Solved by adding quantize.c to SOURCES in Makefile

--- Makefile.orig       2019-10-18 19:36:10.000000000 +0300
+++ Makefile    2019-10-18 19:36:17.000000000 +0300
@@ -29,7 +29,7 @@
 LIBVER=$(LIBMAJOR).$(LIBMINOR).$(LIBPOINT)

 SOURCES = dgif_lib.c egif_lib.c gifalloc.c gif_err.c gif_font.c \
-       gif_hash.c openbsd-reallocarray.c
+       gif_hash.c openbsd-reallocarray.c quantize.c
 HEADERS = gif_hash.h  gif_lib.h  gif_lib_private.h
 OBJECTS = $(SOURCES:.c=.o)
Comment 11 Larry the Git Cow gentoo-dev 2019-11-16 13:54:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf3b048f150e28d08d1ba12cbaf22f6135cd552

commit cbf3b048f150e28d08d1ba12cbaf22f6135cd552
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2019-11-16 13:54:01 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2019-11-16 13:54:51 +0000

    media-libs/simage-1.7.1: bump
    
    1) removed not needed stuff from simage-1.7.1-cmake-automagic-deps.patch
    2) disabling check that uses GifQuantizeBuffer (see #687088, #682198)
    3) added simage-1.7.1-fix-examples-linking.patch for fixing linking issues
    4) reintroduced ~sparc
    5) removed buggy simage-1.7.1a_beta_pre20180312.ebuild (see 2))
    
    Bug: https://bugs.gentoo.org/682198
    Closes: https://bugs.gentoo.org/687088
    Closes: https://bugs.gentoo.org/698882
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-libs/simage/Manifest                         |   2 +-
 .../files/simage-1.7.1-cmake-automagic-deps.patch  | 498 ++-------------------
 .../simage-1.7.1-disable-gif-quantize-buffer.patch |  31 ++
 .../files/simage-1.7.1-fix-examples-linking.patch  |  22 +
 ...beta_pre20180312.ebuild => simage-1.7.1.ebuild} |  19 +-
 5 files changed, 108 insertions(+), 464 deletions(-)