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

Bug 49858

Summary: Openldap 2.1.30 fails to compile
Product: Gentoo Linux Reporter: Colin Tinker <g1gsw>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Colin Tinker 2004-05-03 09:48:06 UTC
daemon.o(.text+0x118b): In function `slap_open_listener':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
daemon.o(.text+0x1182): In function `slap_open_listener':
: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
libbackends.a(perlinit.o)(.text+0x460): In function `perl_back_db_open':
: undefined reference to `Perl_croak_nocontext'
libbackends.a(perlmodify.o)(.text+0x4cc): In function `perl_back_modify':
: undefined reference to `Perl_croak_nocontext'
libbackends.a(perlmodrdn.o)(.text+0x3ce): In function `perl_back_modrdn':
: undefined reference to `Perl_croak_nocontext'
libbackends.a(perlsearch.o)(.text+0x699): In function `perl_back_search':
: undefined reference to `Perl_croak_nocontext'
libbackends.a(perladd.o)(.text+0x2ba): In function `perl_back_add':
: undefined reference to `Perl_croak_nocontext'
libbackends.a(perlbind.o)(.text+0x2fc): more undefined references to `Perl_croak_nocontext' follow
collect2: ld returned 1 exit status
make[2]: *** [slapd] Error 1
make[2]: Leaving directory `/var/tmp/portage/openldap-2.1.30/work/openldap-2.1.30/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/var/tmp/portage/openldap-2.1.30/work/openldap-2.1.30/servers'
make: *** [all-common] Error 1

The above error is given when emerging openldap.  This also happens with 2.1.27, this is the only other one I tried.  It appears to be when it tries to compile the perl backend and is listed a lot on the mailing lists.  Perl is compiled with threading enabled to fix compile issues with other software.

Reproducible: Always
Steps to Reproduce:
1. emerge openldap
2.
3.

Actual Results:  
Fails to compile 

Expected Results:  
Compile sucessfully 

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) processor 
Gentoo Base System version 2004.1 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon -O3 -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon -O3 -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache clean cvs distcc fixpackages sandbox 
userpriv usersandbox" 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X aac aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr 
chroot crypt cups curl dga directfb divx4linux dvd encode esd ethereal faad 
fam fbcon flac foomaticdb freetype gdbm gif gnome gphoto2 gpm gtk gtk2 
imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww linguas_en_GB mad 
mikmod mmx motif mozilla mpeg mpeg4 mysql nas ncurses nls nptl oggvorbis 
opengl oss pam pcap pdflib perl pic png postgres prelink python qt quicktime 
readline scanner sdl slang sox speedo spell ssl svga t1lib tcpd tiff transcode 
truetype usb v4l vim-with-x x86 xfs xml2 xmms xv xvid zlib zvbi"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-03 23:08:44 UTC
do you have both sys-devel/libperl AND dev-lang/perl compiled with USE=threads ?
I think you don't.

also, what versions of sys-devel/libperl and dev-lang/perl are installed?
Comment 2 Colin Tinker 2004-05-04 10:12:54 UTC
I guesed that it maybe something else that wanted compiling, thanls for the help.  It was sys-devel/libperl that needed re emerging :-(