Bug #67353 [Opn]: Compiling failing with LDAP flag
| From: | garrod dot alwood at gmail dot com | Date: | Thu, 29 May 2014 15:54:35 +0000 |
| Subject: | Bug #67353 [Opn]: Compiling failing with LDAP flag | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185971@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67353&edit=1
ID: 67353
User updated by: garrod dot alwood at gmail dot com
Reported by: garrod dot alwood at gmail dot com
Summary: Compiling failing with LDAP flag
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Debian 7.5.0
PHP Version: 5.6.0beta3
Block user comment: N
Private report: N
New Comment:
So it compiled just fine with the --disable --with-ldap. So now I guess I just need to find out
which flag is conflicting with the --with-ldap? Also, yes this is a 32-bit machine.
Previous Comments:
------------------------------------------------------------------------
[2014-05-29 06:48:41] levim@php.net
Can you try compiling with just
--disable-all --with-ldap? It probably will still fail
but it's always good to reduce it down.
The library it appears to be linking in is for a 32 bit architecture; is this a 32 bit build in
general or is that a mistake?
------------------------------------------------------------------------
[2014-05-28 16:43:21] garrod dot alwood at gmail dot com
Correcting the Name of the bug.
------------------------------------------------------------------------
[2014-05-28 16:37:07] garrod dot alwood at gmail dot com
Description:
------------
During compiling with the --with-ldap flag the compile fails when it gets to compiling the ldap
modules in debian 7.5.0.
Test script:
---------------
'./configure' '--disable-debug' '--enable-inline-optimization'
'--disable-all' '--enable-libxml' '--enable-session'
'--enable-xml' '--enable-hash' '--with-pear'
'--with-apxs2=/usr/local/apache2/bin/apxs' '--with-layout=GNU'
'--enable-filter' '--with-pcre-regex' '--with-zlib'
'--enable-simplexml' '--enable-xmlwriter' '--enable-dom'
'--with-openssl=/usr/local/ssl/' '--enable-pdo' '--with-pdo-sqlite'
'--with-readline' '--with-sqlite3' '--disable-phar'
'--with-libedit' '--enable-exif' '--with-bz2'
'--with-gettext' '--with-mcrypt' '--with-mhash' '--with-gd'
'--with-jpeg-dir' '--with-png-dir' '--with-zlib-dir'
'--with-xpm-dir' '--with-xsl' '--with-tidy'
'--with-freetype-dir' '--enable-gd-native-ttf' '--enable-mbstring'
'--enable-sockets' '--enable-dom' '--enable-xml'
'--enable-soap' '--enable-libxml' '--enable-session'
'--enable-simplexml' --with-kerberos --with-curl '--with-mysql-sock'
'--with-mysql=mysqlnd' '--with-mysqli=mysqlnd'
'--with-pdo-mysql=mysqlnd' '--with-config-file-p!
ath=/usr/local/etc' --with-ldap --enable-ctype --enable-bcmath --enable-fpm --enable-zip
--enable-fileinfo --enable-ftp --enable-opcache
Expected result:
----------------
The compile finishes with please run make test.
Actual result:
--------------
/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol
'ber_scanf@@OPENLDAP_2.4_2'
/usr/bin/ld: note: 'ber_scanf@@OPENLDAP_2.4_2' is defined in DSO
/usr/lib/i386-linux-gnu/liblber-2.4.so.2 so try adding it to the linker command line
/usr/lib/i386-linux-gnu/liblber-2.4.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67353&edit=1