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

Bug 101732

Summary: libperl-5.8.6-r1 fails to build with a link error on every build attempt
Product: Gentoo Linux Reporter: John Chronister <john.chronister>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: 2005.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Chronister 2005-08-08 04:59:54 UTC
If an emerge of either perl or libperl is attempted the result is a link error.
 This bug is very similar to bug #83946.

Reproducible: Always
Steps to Reproduce:
1./usr/bin/emerge perl
2.
3.

Actual Results:  
i686-pc-linux-gnu-gcc -o libperl.so.1.5.8 -L/usr/local/lib perl.o malloc.o gv.o
toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o
pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o
taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o
pp_pack.o pp_sort.o  -lnsl -ldl -lm -lcrypt -lutil -lc -lbsd  -Wl,-soname
-Wl,libperl.so.`echo libperl.so.1.5.8 | cut -d. -f3`
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../Scrt1.o(.text+0x28):
In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libperl.so.1.5.8] Error 1



# emerge --info
Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.5-r0,
2.6.11-hardened-r14 i686)
=================================================================
System uname: 2.6.11-hardened-r14-=chronister=- i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 27 2005, 05:24:05)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.4_p6, 1.9.5, 1.8.5-r3, 1.5, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.seren.com/gentoo http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="apache2 bash-completion berkdb bzip2 caps crypt cscope curl dlloader flash
gdbm hardened hardenedphp imap innodb ipv6 jpeg libwww maildir mysql mysqli
ncurses nls pam perl php pic png profile python readline ssl sysvipc tcpd
threads tiff truetype userlocales vhosts x86 xml xml2 zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-08 05:02:51 UTC
*** Bug 101733 has been marked as a duplicate of this bug. ***
Comment 2 solar (RETIRED) gentoo-dev 2005-08-08 05:17:26 UTC
I'm not sure why this is assigned to hardened. 

But it's pretty clear what the problem here is. 
Your not passing the -shared option to linker to tell ld it is linking for a 
shared object without the standard *crt*.o files.
Comment 3 solar (RETIRED) gentoo-dev 2006-01-06 07:18:01 UTC
Reassigning to perl@

perl@ this one seems invalid to me.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2006-01-11 02:45:14 UTC
i'm going to have to concur with solar on this one