Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363491

Summary: media-libs/gd-2.0.35-r3[-zlib] undefined reference to gdImageCreateFromGd2Part
Product: Gentoo Linux Reporter: Albert W. Hopkins <marduk>
Component: New packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal CC: graphics+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Albert W. Hopkins 2011-04-13 14:38:08 UTC
I have a link error

/bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -msse4.1  -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -o gdtopng  gdtopng.o ./libgd.la  -ljpeg -lfontconfig -lfreetype -lpng14 -lm
gdparttopng.o: In function `main':
gdparttopng.c:(.text+0xc1): undefined reference to `gdImageCreateFromGd2Part'
collect2: ld returned 1 exit status

This is with USE=-zlib.  If I build with USE=zlib then it builds fine.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-13 16:08:40 UTC
1) Please post your `emerge --info' too.
2) Please attach the entire build log.
Comment 2 Albert W. Hopkins 2011-04-13 21:19:09 UTC
Created attachment 269869 [details]
build.log
Comment 3 Albert W. Hopkins 2011-04-13 21:21:11 UTC
Created attachment 269871 [details]
emerge --info
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-04-14 18:03:40 UTC
seems like splitting the flags was not a good idea...
Comment 5 SpanKY gentoo-dev 2011-04-15 08:51:21 UTC
not really.  gd will always fail if zlib isnt installed.  the new ebuild simply fixes the automagic dependency on it.

http://sources.gentoo.org/media-libs/gd/gd-2.0.35-r3.ebuild?r1=1.1&r2=1.2