Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151444 - dev-lang/php-5.x fails to configure with --as-needed
Summary: dev-lang/php-5.x fails to configure with --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
: 187540 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-10-15 02:58 UTC by Michael Cramer
Modified: 2007-09-09 22:15 UTC (History)
1 user (show)

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

config.log (config.log,263.91 KB, text/plain)
2006-10-15 02:59 UTC, Michael Cramer
patch to m4 macros fixing this problem (php-5.2.2-as-needed.patch,7.13 KB, patch)
2007-07-06 23:19 UTC, Rafał Mużyło
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2006-10-15 02:58:09 UTC
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... yes
checking for 3 arg ldap_set_rebind_proc... yes
checking for ldap_parse_result... yes
checking for ldap_parse_reference... yes
checking for ldap_start_tls_s... yes
checking for sasl_version in -lldap... no
configure: error: LDAP SASL check failed. Please check config.log for more information.

!!! ERROR: dev-lang/php-5.1.6-r6 failed.
Call stack:, line 1564:   Called dyn_compile, line 937:   Called src_compile
  php-5.1.6-r6.ebuild, line 173:   Called src_compile_normal
  php-5.1.6-r6.ebuild, line 323:   Called php5_1-sapi_src_compile
  php5_1-sapi.eclass, line 575:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Portage 2.1.2_pre3-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-2006.0 i686)
System uname: 2.6.18-gentoo-2006.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Sun, 15 Oct 2006 03:30:08 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.18
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="x86 7zip X Xaw3d a52 aac aalib accessibility acl acpi akode alsa amr ao apache2 arts artswrappersuid audiofile authfile bcmath bcp berkdb bitmap-fonts bjam bluetooth bzip2 cairo calendar caps cdb cdr cgi cjk clamav cli crypt css ctype cups curl curlwrappers cvs dbus dcraw dga directfb djbfft dlloader dmi dmx doc dri dts dv dvd dvdr dvdread ecc eds elf elibc_glibc emacs emboss encode esd examples exif expat extraengine extrafilters faad fam fame fbcon ffmpeg fftw filepro firebird firefox flac flatfile fontconfig fortran fpx ft ftp gcj gd gdbm ggi gif glep glibc-omitfp glitz gmp gnokii gnutls gphoto2 gpm graphviz gs gstreamer gtk guile hal hash hpn ical iconv idea idled idn ifsession imagemagick imap imlib immqt inifile input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irda isdnlog ithreads jack jack-tmpfs java javascript jbig jce jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdrive kerberos kernel_linux kig-scripting latex lcms ldap leim libcaca libg++ linguas_de linguas_en lm_sensors lua lzo mad mbrola memlimit mhash mikmod mime ming mjpeg mmap mmx mng mono motif mp3 mp4 mpeg mpm-prefork mssql mudflap musepack musicbrainz mysql mysqli nas ncurses neXt netjack netpbm network nfs nis nls no-old-linux nptl nptlonly nsplugin objc objc++ objc-gc ocaml odbc ogg openct openexr opengl opensslcrypt oss overlays pam pam_chroot pam_console pam_timestamp pcntl pcre pcsc-lite pda pdf pdo pear perl php physfs pic pike png portaudio posix postgres povray ppds pppd pwdb pyste python qt3 qt4 quicktime rdesktop readline reflection rewrite rle rpm rrdcgi ruby samba sametime sasl scanner script sdl sensord session shaper sharedmem simplexml sitemisc skey slp smartcard smbkrb5passwd sms sndfile snmp soap sockets socks5 softquota speex spell spl sql sqlite sqlite3 sse ssl subversion svg svga swat symlink sysfs sysvipc tcl tcltk tcpd test tetex theora threads tidy tiff timidity tk tokenizer toolbar tools truetype truetype-fonts type1-fonts ucs2 udev unicode unzip usb userland_GNU vcd video_cards_r128 video_cards_vesa vorbis vroot wddx wifi win32codecs wmf wxwindows x264 xcomposite xinerama xinetd xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xmms xorg xpm xprint xscreensaver xsl xv xvid yaz yv12 zeroconf zip zlib"
Comment 1 Michael Cramer 2006-10-15 02:59:04 UTC
Created attachment 99712 [details]
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-15 03:38:19 UTC
Which cyrus-sasl version you have installed?
Comment 3 Michael Cramer 2006-10-15 05:44:47 UTC
[ebuild   R   ] dev-libs/cyrus-sasl-2.1.22  USE="berkdb crypt java kerberos ldap mysql pam postgres ssl -authdaemond -gdbm -ntlm_unsupported_patch -sample -srp -urandom" 0 kB
Comment 4 Michael Cramer 2006-10-15 10:52:40 UTC
have tried recompiling cyrus-sasl and openldap nothing changes
Comment 5 Rafał Mużyło 2007-07-06 23:19:57 UTC
Created attachment 124104 [details, diff]
patch to m4 macros fixing this problem

Please refer to bug #144896, this patch is for php-5.2.2, but it's nearly the same as the patch attached there. It seems to work for me.
Comment 6 Rafał Mużyło 2007-07-06 23:23:30 UTC
Please change description to indicate that this bug affects php-5.2.2-r1 too.
Comment 7 Steve Yin 2007-07-23 15:09:10 UTC
well, this also affect all ebuild version of php-5.2.3, I did not test the patches from
Comment 8 Rafał Mużyło 2007-07-25 09:32:26 UTC
The patch for php-5.2.2-r1 seems to work for php-5.2.3-r3 too.
Of course, it's an upstream bug, so till somebody bother upstream to fix their autoconf macros, it will resurface with every release.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-02 21:01:11 UTC
*** Bug 187540 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 18:14:00 UTC
This was supposedly fixed in upstream CVS:

If the above upstream patch doesn't solve this, you should rant on the upstream bug:
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-09-09 22:15:46 UTC
Should be fixed in 5.2.4. Please test and reopen if not.