/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"
Created attachment 578214 [details] emerge-info.txt
Created attachment 578216 [details] emerge-history.txt
Created attachment 578218 [details] environment
Created attachment 578220 [details] etc.portage.tbz2
Created attachment 578222 [details] logs.tbz2
Created attachment 578224 [details] media-libs:simage-1.7.1a_beta_pre20180312:20190531-154247.log
Created attachment 578226 [details] temp.tbz2
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.*.
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).
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)
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(-)