Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682068 - dev-dotnet/libgdiplus-4.2-r3 : /.../ld: ../.../libgdiplus.so: undefined reference to GifQuantizeBuffer
Summary: dev-dotnet/libgdiplus-4.2-r3 : /.../ld: ../.../libgdiplus.so: undefined refer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-03-30 17:21 UTC by Toralf Förster
Modified: 2019-08-20 12:11 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.04 KB, text/plain)
2019-03-30 17:21 UTC, Toralf Förster
Details
dev-dotnet:libgdiplus-4.2-r3:20190330-150959.log (dev-dotnet:libgdiplus-4.2-r3:20190330-150959.log,64.61 KB, text/plain)
2019-03-30 17:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,64.15 KB, text/plain)
2019-03-30 17:21 UTC, Toralf Förster
Details
environment (environment,75.91 KB, text/plain)
2019-03-30 17:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.97 KB, application/x-bzip)
2019-03-30 17:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.44 KB, application/x-bzip)
2019-03-30 17:22 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.46 KB, application/x-bzip)
2019-03-30 17:22 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-03-30 17:21:47 UTC
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -pthread  -Wl,-O1 -Wl,--as-needed -o testgdi testgdi.o ../src/libgdiplus.la -lm -lglib-2.0  -lcairo   -lfontconfig -lfreetype  -lfreetype  -lXrender -lX11  -L/lib -ljpeg -ltiff -lgif -lpng -lz -lexif 
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -pthread -Wl,-O1 -Wl,--as-needed -o .libs/testgdi testgdi.o  ../src/.libs/libgdiplus.so -lm -lglib-2.0 -lcairo -lfontconfig -lfreetype -lXrender -lX11 -L/lib -ljpeg -ltiff -lgif -lpng -lz -lexif -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/.libs/libgdiplus.so: undefined reference to `GifQuantizeBuffer'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:622: testgdi] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-dotnet/libgdiplus-4.2-r3/work/libgdiplus-4.2/tests'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_test_20190328-000152

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)


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

emerge -qpvO dev-dotnet/libgdiplus
[ebuild  N    ] dev-dotnet/libgdiplus-4.2-r3  USE="cairo"
Comment 1 Toralf Förster gentoo-dev 2019-03-30 17:21:50 UTC
Created attachment 571270 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-03-30 17:21:52 UTC
Created attachment 571272 [details]
dev-dotnet:libgdiplus-4.2-r3:20190330-150959.log
Comment 3 Toralf Förster gentoo-dev 2019-03-30 17:21:55 UTC
Created attachment 571274 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-03-30 17:21:58 UTC
Created attachment 571276 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-03-30 17:22:01 UTC
Created attachment 571278 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-03-30 17:22:03 UTC
Created attachment 571280 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-03-30 17:22:06 UTC
Created attachment 571282 [details]
temp.tbz2
Comment 8 ron widler 2019-03-31 21:37:55 UTC
just happened on my machine, too.

downgrading from media-libs/giflib-5.1.9 to media-libs/giflib-5.1.8-r1 made it build again
Comment 9 Gary Stein 2019-04-01 03:45:28 UTC
Not sure who needs to fix, but giflib made changes.

Looks like in 5.1.9 they split the libgif.so shared library into libgif.so and libutil.so and put the deprecated function (GifQuantizeBuffer) into the libutil.so.

Then the Makefile for giflib only installs libgif.so (but to be fair, they did say to stop using it around 2014)

It can be hacked by adding back in the functions by modifying the Makefile
< libgif.so: $(OBJECTS) $(HEADERS)
< 	$(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
---
> libgif.so: $(OBJECTS) $(HEADERS) $(UOBJECTS)
> 	$(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) $(UOBJECTS)

But should libgdiplus fix for a newer lib? or giflib add it back in?

I'll try to add something for graphics@gentoo.org
Comment 10 brothermechanic 2019-04-10 16:56:10 UTC
same problem
solve with downgrading to media-libs/giflib-5.1.8
Comment 11 Davide Palma 2019-05-07 07:12:11 UTC
same problem, breaking emptytrees
Comment 12 Robert Schultz 2019-07-02 12:48:58 UTC
libgdiplus has an issue open for this here: https://github.com/mono/libgdiplus/issues/546
Comment 13 Larry the Git Cow gentoo-dev 2019-08-20 12:11:56 UTC
The bug has been closed via the following commit(s):

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

commit 8601f2c99c0468872c49a70aa2dab55892f79f5f
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-08-20 12:10:34 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-08-20 12:10:42 +0000

    dev-dotnet/libgdiplus: bump version to 6.0.2
    
    Closes: https://bugs.gentoo.org/609760
    Closes: https://bugs.gentoo.org/682068
    Package-Manager: Portage-2.3.72, Repoman-2.3.17
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 dev-dotnet/libgdiplus/Manifest                |  1 +
 dev-dotnet/libgdiplus/libgdiplus-6.0.2.ebuild | 51 +++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)