Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280210 - =dev-libs/xmlsec-1.2.12 sed delete AC_LIB_LTDL breaks php-xmlsec
Summary: =dev-libs/xmlsec-1.2.12 sed delete AC_LIB_LTDL breaks php-xmlsec
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 242250
  Show dependency tree
 
Reported: 2009-08-03 20:31 UTC by Matthew Schultz
Modified: 2009-09-17 13:39 UTC (History)
0 users

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 Matthew Schultz 2009-08-03 20:31:02 UTC
It appears a new addition to the xmlsec ebuild has caused php-xmlsec to malfunction.  Apparently there is a single sed line that was added to the ebuild that is causing this problem: /^AC_LIB_LTDL$/d

What exactly was the reason for adding this line?  No other package in portage appears to do this.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
php cannot load the xmlsec module and errors out: 

php -v
func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=xmlsec_lt_dlopen:subj=unknown:error=7:io function failed:filename=libxmlsec1-openssl.so
func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=453:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec library function failed:crypto=openssl
func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=404:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec library function failed:
PHP Warning:  PHP Startup: Error: unable to load default xmlsec-crypto library. Check the LD_LIBRARY_PATH envornment variable
   in Unknown on line 0
PHP Fatal error:  Unable to start xmlsec module in Unknown on line 0

Expected Results:  
php loads the xmlsec module

emerge -pv php-xmlsec

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-php5/php-xmlsec-0_p20061020  0 kB [1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/sunrise

emerge -pv xmlsec

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/xmlsec-1.2.12  USE="gnutls ssl -mozilla" 0 kB


emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.0
Timestamp of tree: Mon, 03 Aug 2009 13:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://portage.home http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns ads alsa apache2 async audiofile automount avi bcmath bdf berkdb bzip2 cairo calendar caps cddb cdparanoia cdr cjk clamav cli cracklib crypt ctype cups curl curlwrappers dbi dbus directfb djvu dri dts dvb dvd dvdnav dvdread encode exif fam fbcon ffmpeg flac foomaticdb fortran ftp gd gdbm gif git glib gmp gnutls gpm gstreamer gtk gtk2 hal hash iconv imagemagick imap imlib innodb ipv6 isdnlog java javascript jpeg jpeg2k json kde kipi kson lcms ldap ldap-sasl live logrotate lzo mad matroska mcal mhash mime mjpeg mmap mmx mmxext mng mp2 mp3 mp4 mpeg mplayer msession msn mssql mudflap mysql mysqli ncurses network nls nptl nptlonly nsplugin nss offensive ofx ogg openal opengl openmp osc oss pam passwordsave pch pcntl pcre pdf pdo perl php png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection resolvconf rtc samba sasl sdl seamonkey session simplexml soap sockets spell spl sqlite sse sse2 ssl subversion suexec suhosin svg swat sysfs syslog tcpd theora threads tidy tiff tokenizer transcode truetype unicode usb v4l v4l2 vcd vorbis wddx win32codecs winbind wxwindows x264 x86 xcomposite xforms xinerama xml xorg xpm xsl xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="intel i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-04 00:15:17 UTC
Install sys-devel/libtool-2.2.6a, reinstall dev-libs/xmlsec and try again.
Comment 2 Matthew Schultz 2009-08-04 15:00:00 UTC
Ok, I emerged libtool 2.2.6a and after running revdep-rebuild, I rebuilt xmlsec and php-xmlsec.  The problem was exactly the same.  After I removed /^AC_LIB_LTDL$/d again from xmlsec and rebuilt xmlsec, the problem with php-xmlsec went away.  So it functions fine with either libtool 1.5 or libtool 2.2.6a without deleting AC_LIB_LTDL.
Comment 3 Matthew Schultz 2009-08-04 15:01:32 UTC
(In reply to comment #2)
> Ok, I emerged libtool 2.2.6a and after running revdep-rebuild, I rebuilt xmlsec
> and php-xmlsec.  The problem was exactly the same.  After I removed
> /^AC_LIB_LTDL$/d again from xmlsec and rebuilt xmlsec, the problem with
> php-xmlsec went away.  So it functions fine with either libtool 1.5 or libtool
> 2.2.6a without deleting AC_LIB_LTDL.
> 

I mean it functions by removing the sed line /^AC_LIB_LTDL$/d in the ebuild.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-17 13:39:50 UTC
Fixed in dev-libs/xmlsec-1.2.13.

(In reply to comment #0)
> What exactly was the reason for adding this line?

It was avoiding a `configure` warning (after eautoreconf with =sys-devel/libtool-2*).