Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99615 - baselayout-1.12 fails to build with USE=static
Summary: baselayout-1.12 fails to build with USE=static
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 99771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-19 21:14 UTC by Alexander Skwar
Modified: 2005-07-21 06:59 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 Alexander Skwar 2005-07-19 21:14:16 UTC
[ebuild     U ]     sys-apps/baselayout-1.12.0_pre1-r1 [1.11.13] -bootstrap
-build +static +unicode 0 kB


i686-pc-linux-gnu-gcc -Wl,-O1 -static -Wl,-O1 -static -ldl runscript.o -o runscript
runscript.o: In function `main':
runscript.c:(.text+0x63): undefined reference to `dlopen'
runscript.c:(.text+0x79): undefined reference to `dlsym'
runscript.c:(.text+0x8e): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [runscript] Error 1
make: Leaving directory
`/var/tmp/portage/baselayout-1.12.0_pre1-r1/work/baselayout-1.12.0_pre1/src'

!!! ERROR: sys-apps/baselayout-1.12.0_pre1-r1 failed.


[06:10:27 alexander@server:/Gentoo/portage/tree/app-admin/webmin] $ emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel i686)
=================================================================
System uname: 2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel i686 AMD
Athlon(tm) XP 2000+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acl alsa apache2 apm arts artswrappersuid async avi
bash-completion bluetooth bonobo calendar cdda cddb cdparanoia cdr cdrom codecs
crypt cscope css cups divx4linux dvdread encode esd ethereal exif fam fbcon
fbdev ffmpeg fftw firefox flash foomaticdb ftp gd gdbm gif gimp gimpprint gmail
gnokii gnome gphoto2 gpm gs gstreamer gtk gtk2 guile hal hpn iconv idn
imagemagick imap imlib java javascript jpeg kde kdeenablefinal kdexdeltas libwww
logitech-mouse logrotate lufsusermount lzw lzw-tiff mad maildir matroska matrox
mbox mime mmap mmx mng mozdevelop mozilla moznocompose moznoirc mozp3p mozsvg
mp3 mpeg mplayer ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel
nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython
nolog4j nooro nopop3d noregexp norhino noxalan noxerces offensive ofx ogg
oggvorbis opengl oss pam parse-clocks pcntl pcre pda pdflib perl pic pie png
posix ppds python qt quicktime quotes rdesktop readline real recode samba sasl
shared slang sockets speex spell sse ssl svg symlink sysvipc tcltk tcpd theora
tidy tiff truetype truetype-fonts type1-fonts unicode usb usepackagedmakefiles
vcd videos vim vim-pager vim-with-x vorbis wmf wsconvert x11vnc xchattext xfs
xine xml2 xmms xv xvid zlib video_cards_matrox linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-07-19 22:20:09 UTC
older baselayout does:
x86_64-pc-linux-gnu-gcc  -static -o runscript runscript.o -ldl

newer baselayout does:
x86_64-pc-linux-gnu-gcc  -static  -static -ldl runscript.o -o runscript

position of -ldl is what is causing failure
Comment 2 SpanKY gentoo-dev 2005-07-19 22:24:16 UTC
ok this is because of some LDFLAG tweaks i made in cvs HEAD a while back ...

fixed svn trunk and 1.12 branch, should be in next 1.12.x baselayout release
Comment 3 SpanKY gentoo-dev 2005-07-21 06:59:16 UTC
*** Bug 99771 has been marked as a duplicate of this bug. ***