Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212023 - net-p2p/amule-2.2.0_pre20080228: build failure with --as-needed
Summary: net-p2p/amule-2.2.0_pre20080228: build failure with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 213487
  Show dependency tree
 
Reported: 2008-03-01 21:57 UTC by Tiziano Müller (RETIRED)
Modified: 2008-03-20 15:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2008-03-01 21:57:08 UTC
[...]
make[5]: Entering directory `/var/tmp/paludis/net-p2p/amule-2.2.0_pre20080228/work/amule-cvs/src/utils/cas'
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-cas.o -MD -MP -MF ".deps/cas-cas.Tpo" -c -o cas-cas.o `test -f 'cas.c' || echo './'`cas.c; \
        then mv -f ".deps/cas-cas.Tpo" ".deps/cas-cas.Po"; else rm -f ".deps/cas-cas.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-configfile.o -MD -MP -MF ".deps/cas-configfile.Tpo" -c -o cas-configfile.o `test -f 'configfile.c' || echo './'`configfile.c; \
        then mv -f ".deps/cas-configfile.Tpo" ".deps/cas-configfile.Po"; else rm -f ".deps/cas-configfile.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-functions.o -MD -MP -MF ".deps/cas-functions.Tpo" -c -o cas-functions.o `test -f 'functions.c' || echo './'`functions.c; \
        then mv -f ".deps/cas-functions.Tpo" ".deps/cas-functions.Po"; else rm -f ".deps/cas-functions.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-graphics.o -MD -MP -MF ".deps/cas-graphics.Tpo" -c -o cas-graphics.o `test -f 'graphics.c' || echo './'`graphics.c; \
        then mv -f ".deps/cas-graphics.Tpo" ".deps/cas-graphics.Po"; else rm -f ".deps/cas-graphics.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-html.o -MD -MP -MF ".deps/cas-html.Tpo" -c -o cas-html.o `test -f 'html.c' || echo './'`html.c; \
        then mv -f ".deps/cas-html.Tpo" ".deps/cas-html.Po"; else rm -f ".deps/cas-html.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT cas-lines.o -MD -MP -MF ".deps/cas-lines.Tpo" -c -o cas-lines.o `test -f 'lines.c' || echo './'`lines.c; \
        then mv -f ".deps/cas-lines.Tpo" ".deps/cas-lines.Po"; else rm -f ".deps/cas-lines.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-gcc  -march=nocona -O2 -pipe  -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS  -Wl,--as-needed -L/usr/lib  -lpthread -o cas  cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o  -L/usr/lib64 -Wl,--as-needed -L/usr/lib64 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm  -lz  -lGeoIP
cas-graphics.o: In function `createimage':
graphics.c:(.text+0x4f): undefined reference to `gdImageCreateFromPng'
graphics.c:(.text+0x69): undefined reference to `gdImageColorResolve'
graphics.c:(.text+0xbe): undefined reference to `gdImageStringFT'
graphics.c:(.text+0x118): undefined reference to `gdImagePng'
graphics.c:(.text+0x132): undefined reference to `gdImageDestroy'
graphics.c:(.text+0x194): undefined reference to `gdImageJpeg'
collect2: ld returned 1 exit status
make[5]: *** [cas] Error 1
[...]
Comment 1 Federico Della Ricca 2008-03-02 17:26:23 UTC
This is an upstream bug.

http://forum.amule.org/index.php?topic=14541.0

A quick (and dirty) workaround: add "-lgd" to CFLAGS (of course remove it after compiling amule). I don't have the slightest idea if it has side effects, so is better to wait for a proper fix.

Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2008-03-20 12:38:16 UTC
Tiziano, does it happen with 20080304?
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2008-03-20 15:20:52 UTC
nope. completely solved here.
Thanks.