Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29261 - dev-perl/GD-1.32-r3 won't compile if there's no libX11 installed
Summary: dev-perl/GD-1.32-r3 won't compile if there's no libX11 installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-21 05:44 UTC by pasi.valminen
Modified: 2003-09-25 20:40 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 pasi.valminen 2003-09-21 05:44:44 UTC
The ebuild uses X USE flag, but if no X is installed. The build will fail since
linker cannot find libX11 while finishing GD.so. The error message says it all:

LD_RUN_PATH="/usr/lib:/lib:/usr/X11R6/lib" gcc  -shared -L/usr/local/lib GD.o 
-o blib/arch/auto/GD/GD.so   -L/usr/X11R6/lib -L/usr/local/lib -lgd -lpng -lz
-ljpeg -lm -lX11  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
distcc[16806] ERROR: compile on localhost failed with exit code 1
make: *** [blib/arch/auto/GD/GD.so] Error 1

Reproducible: Always
Steps to Reproduce:
1. Don't emerge xfree86
2. USE="-X" emerge GD
3.

Actual Results:  
Building shared library failed while linking.

Expected Results:  
Built shared libs and installed the perl module.

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21)
=================================================================
System uname: 2.4.21 i686 Pentium III (Katmai)
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs distcc"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt foomaticdb libg++ mad mmx ncurses pdflib png xml2 zlib gdbm
berkdb readline tcpd pam libwww ssl -3dnow apache2 -arts -avi -cups -encode gd
-gif -gnome -gpm -gtk -gtk2 imap -imlib innodb -java -jpeg -kde ldap maildir
-mikmod -motif -mpeg mysql -nls odbc -oggvorbis -opengl -oss perl postgres
-python -qt -qtmt -quicktime sasl -sdl -slang snmp -spell sse -svga tetex
-truetype -X -xmms -xv"
Comment 1 SpanKY gentoo-dev 2003-09-21 11:43:55 UTC
please try GD-1.41
Comment 2 pasi.valminen 2003-09-22 02:40:13 UTC
No problems with GD-1.41. :)
Comment 3 SpanKY gentoo-dev 2003-09-25 20:40:36 UTC
wh0rd