Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31202 - net-nds/openldap-2.1.x perl back-end fails compiling
Summary: net-nds/openldap-2.1.x perl back-end fails compiling
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 32392 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-15 07:52 UTC by Stephane Loeuillet
Modified: 2004-02-13 06:03 UTC (History)
4 users (show)

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


Attachments
openldap-perl_back.patch (openldap-2.1.23-perl_back.patch,597 bytes, patch)
2003-10-15 15:44 UTC, Benjamin J.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Loeuillet 2003-10-15 07:52:06 UTC
cd back-perl; make -w all
make[3]: Entering directory
`/var/tmp/portage/openldap-2.1.22-r1/work/openldap-2.1.22/servers/slapd/back-perl'
rm -f version.c
../../../build/mkversion -v "2.1.22" back_perl > version.c
/bin/sh /var/tmp/portage/openldap-2.1.22-r1/work/openldap-2.1.22/libtool 
--mode=compile gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer
-I../../../include        -I../../../include -I.. -I./.. -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.1/i686-linux-thread-multi/CORE    
 -c init.c
mkdir .libs
gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I../../../include
-I../../../include -I.. -I./.. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.8.1/i686-linux-thread-multi/CORE -c init.c  -fPIC -DPIC -o
.libs/init.lo
init.c: In function `perl_back_initialize':
init.c:74: warning: passing arg 2 of `perl_parse' from incompatible pointer type
init.c: In function `perl_back_db_open':
init.c:147: error: `my_perl' undeclared (first use in this function)
init.c:147: error: (Each undeclared identifier is reported only once
init.c:147: error: for each function it appears in.)
init.c: In function `perl_back_xs_init':
init.c:182: error: `my_perl' undeclared (first use in this function)
init.c:182: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type
make[3]: *** [init.lo] Erreur 1
make[3]: Leaving directory
`/var/tmp/portage/openldap-2.1.22-r1/work/openldap-2.1.22/servers/slapd/back-perl'
make[2]: *** [.backend] Erreur 1
make[2]: Leaving directory
`/var/tmp/portage/openldap-2.1.22-r1/work/openldap-2.1.22/servers/slapd'
make[1]: *** [all-common] Erreur 1
make[1]: Leaving directory
`/var/tmp/portage/openldap-2.1.22-r1/work/openldap-2.1.22/servers'
make: *** [all-common] Erreur 1
 
!!! ERROR: net-nds/openldap-2.1.22-r1 failed.
!!! Function src_compile, Line 100, Exitcode 2
!!! make failed
 


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

Actual Results:  
emerge -pv openldap
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild     U ] net-nds/openldap-2.1.22-r1 [2.0.27-r4] +ssl +tcpd +readline
+ipv6 +gdbm +sasl -kerberos -odbc +perl -slp +berkdb -debug +samba


Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -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 /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox buildpkg userpriv strict digest"
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="-ppc nls gtk -wavelan -freewnn tcpd -sparc -selinux oss -zeo jpeg -3dfx
opengl -xosd -matrox -informix -gb ethereal apm -bindist -nocd gdbm cups xv
oggvorbis -scanner ncurses -gpm -arts samba java usb -qt -nas pdflib -fbcon
flash -snmp mikmod apache2 gif -emacs -afs spell ldap -lirc -junit -fastcgi -gps
-pcmcia -maildir -wxwindows -xinerama gtkhtml -pnp ipv6 libwww gtk2 -mcal
-memlimit encode libgda -oci8 -jack foomaticdb -atlas sdl X berkdb svga -ruby
-imap png -firebird ppds -Xaw3d -guile evo truetype gstreamer -odbc xml2 pam gd
innodb -ev6 gphoto2 doc -debug python -kerberos -jikes -mbox -lcms -krb4
-dedicated zlib -motif cdr videos slang -kde mysql -voodoo3 -imlib -directfb
-static avi -curl -acl -hppa -trusted postgres plotutils -cjk -prelude mpeg
-alpha -icc crypt -wmf -arm dvdr esd libg++ -build -leim sse -freetds -tcltk
-xface acpi -alsa -canna xml -dga mmx -tetex -ladcca x86 tiff -aalib -mule perl
quicktime mad -nocardbus -slp readline -mpi -ggi 3dnow -nhc98 mozilla -cscope
gnome ssl -mips dvd -bootstrap -socks5 -dvb -xmms sasl joystick bonobo pda"
Comment 1 Benjamin J. 2003-10-15 15:44:29 UTC
Created attachment 19277 [details, diff]
openldap-perl_back.patch

For me this patch solved the problem.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-28 19:23:24 UTC
could you please specify what version of perl you are using?
I'm running dev-lang/perl-5.8.1-r2 here, and I haven't had any troubles with
openldap-2.1.21, 2.1.22 or 2.1.23 and perl.
Comment 3 Norberto Bensa 2003-10-28 21:24:42 UTC
I have the exact same error with openldap 2.1.22-r1 and perl 5.8.1-r2

I'll try this patch and post the results
Comment 4 James Graham 2003-10-29 02:09:47 UTC
The patch doesn't work with 2.1.23, but it can be emerged with USE="-perl".
This has been bugging me since 2.1.x.

Jgraham
perl 5.8.1-r2
Comment 5 Norberto Bensa 2003-10-29 07:26:17 UTC
Uhh... Interesting, I just emerge 2.1.23 with THIS patch :-)
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-31 12:22:59 UTC
*** Bug 32392 has been marked as a duplicate of this bug. ***
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-16 02:59:01 UTC
could somebody from the perl herd please discuss why this bug is happening for some people?

(I don't get it on my openldap).
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2003-11-23 11:55:23 UTC
same here unfortunately.  perl 5.8.2, openldap 2.1.23
Comment 9 Jaime Lopez 2003-11-27 08:42:31 UTC
same here, openldap-2.1.23 and perl 5.8.2
Comment 10 Hermann Gundel 2003-12-21 11:35:25 UTC
same here, openldap-2.1.23 and perl 5.8.2-r1, but using the patch worked for me.
Interestingly, the bug only occured on 1 of 3 machines, the others compiled just fine. IIRC the 1st time the bug occured here, was after I upgraded from perl 5.8.0 to 5.8.1-r2 and after that tried to upgrade from openldap 2.0.xx to 2.1.23
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-27 20:25:00 UTC
perl 5.8.2-r1 and now upgrading to openldap 2.1.26, and I still can't reproduce this bug.

on a hunch, anybody with the problem still, try to emerge gcc again, then openldap (I think the duplicate header bug is hitting us).

if nobody has it anymore, then I'm going to close this bug.
Comment 12 Stephane Loeuillet 2004-01-28 07:03:21 UTC
perl+libperl 5.8.3 / openldap 2.1.26 / gcc 3.3.2-r5 / glibc 2.3.3_pre20040117 / kernel 2.4.24

 +berkdb +crypt -debug +gdbm +ipv6 -kerberos -odbc +perl +readline +samba +sasl -slp +ssl +tcpd 

gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I../../../include -I../../../include -I.. -I./.. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.3/i686-linux-thread-multi/CORE -c init.c  -fPIC -DPIC -o .libs/init.lo
init.c: In function `perl_back_initialize':
init.c:74: warning: passing arg 2 of `perl_parse' from incompatible pointer type
init.c: In function `perl_back_db_open':
init.c:147: error: `my_perl' undeclared (first use in this function)
init.c:147: error: (Each undeclared identifier is reported only once
init.c:147: error: for each function it appears in.)
init.c: In function `perl_back_xs_init':
init.c:182: error: `my_perl' undeclared (first use in this function)
init.c:182: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type
make[3]: *** [init.lo] Erreur 1
make[3]: Leaving directory `/usr/portage/tmp/portage/openldap-2.1.26/work/openldap-2.1.26/servers/slapd/back-perl'
make[2]: *** [.backend] Erreur 1
make[2]: Leaving directory `/usr/portage/tmp/portage/openldap-2.1.26/work/openldap-2.1.26/servers/slapd'
make[1]: *** [all-common] Erreur 1
make[1]: Leaving directory `/usr/portage/tmp/portage/openldap-2.1.26/work/openldap-2.1.26/servers'
make: *** [all-common] Erreur 1
 
!!! ERROR: net-nds/openldap-2.1.26 failed.
!!! Function src_compile, Line 115, Exitcode 2
!!! make failed

so, what should i do ?

i installed several versions of perl, gcc, glibc since the first bug with oldap 2.1.22
Comment 13 Hermann Gundel 2004-02-02 09:31:37 UTC
same here, perl+libperl 5.8.3 / openldap 2.1.26 / gcc 3.3.2-r5 / glibc 2.3.3_pre20040117
bug hit me again after openldap 2.1.23. I emerged gcc and glibc several times since then. Again using the patch helped for me.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-08 12:18:52 UTC
I still can't reproduce this bug guys.
Comment 15 David M. Andersen 2004-02-09 17:22:09 UTC
Someone on the forums ( http://forums.gentoo.org/viewtopic.php?t=131432 ) claimed it might be the "threads" use flag (on perl itself) being set.

Disabling this isn't an option for some of us.
Comment 16 Eric Sammer (RETIRED) gentoo-dev 2004-02-09 17:31:13 UTC
It's known that perl threads can cause problems with a number of different things. Can those who can reproduce the bug please provide 'emerge info' so we can try to find the common ground?

Unfortunately, if it does turn out to be threads in perl, there's little (read: nothing) we can do - some packages just don't take kindly to them. Per-package use flags should help with these situations, but I'm not sure if portage supports that yet.
Comment 17 David M. Andersen 2004-02-09 20:02:39 UTC
Don't know if it works, but it makes it compile.

http://www.openldap.org/its/index.cgi/Incoming?id=2946

--- perl_back.h 2003-03-12 20:09:09.000000000 -0500
+++ perl_back.h-fixed   2004-02-09 23:01:45.000000000 -0500
@@ -46,5 +46,5 @@
 LDAP_END_DECL

 #include "external.h"
-
+#include <XSUB.h>
 #endif

Comment 18 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-11 19:42:23 UTC
the more recent SuSE patch on the ITS system breaks the compile on my system, but the change by david anderson compiles fine, so i've commited it to cvs, and hopefully it will solve the problem for everybody.
Comment 19 Stephane Loeuillet 2004-02-13 06:03:41 UTC
tested. it compiles and installs well, thanks

marking as closed as 'fixed' isn't in the list