#38851 [Com]: Failed to created Apache 2 shared library
| From: | martin at searchoptics dot com | Date: | Wed, 02 Sep 2009 16:46:55 +0000 |
| Subject: | #38851 [Com]: Failed to created Apache 2 shared library | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141866@lists.php.net to get a copy of this message | ||
ID: 38851
Comment by: martin at searchoptics dot com
Reported By: shorb at optonline dot net
Status: No Feedback
Bug Type: Compile Failure
Operating System: RedHat EL 4
PHP Version: 5.1.6
New Comment:
I've had a similar issue on Centos 5.3 x64 using the following
configure option on 5.2.12
CONFIGURE_COMMAND = './configure'
'--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysql=/usr/local/mysql' '--enable-ftp' '--with-gd'
'--with-png-dir=/usr' '--with-freetype-di
r=/usr/local' '--with-mcrypt=/usr/local' '--with-zlib=/usr'
'--with-openssl'
Apache was configured with:
./configure enable-rewrite=shared enable-status=shared
enable-ssl=shared
Please advise
Previous Comments:
------------------------------------------------------------------------
[2006-09-24 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-09-16 17:28:31] mike@php.net
Uhm right, because the actual name is --enable-versioning.
IIRC that may be cause by some library only available statically whne
you try to link. You need to identify it and either build a shared lib
or build withgout its support enabled.
------------------------------------------------------------------------
[2006-09-16 15:36:44] shorb at optonline dot net
Without that, compilation still fails
------------------------------------------------------------------------
[2006-09-16 10:52:37] mike@php.net
Please don't ever use --with-versioning.
------------------------------------------------------------------------
[2006-09-15 23:12:12] shorb at optonline dot net
Description:
------------
'make install' fails because shared lib (.so is not created)
mod_so is installed on apache
[root@steve php-5.1.6]# make install
Installing PHP SAPI module: apache2handler
/opt/httpd/build/instdso.sh SH_LIBTOOL='/opt/httpd/build/libtool'
libphp5.la /opt/httpd/modules /opt/httpd/build/libtool --mode=install cp
libphp5.la /opt/httpd/modules/ cp .libs/libphp5.lai
/opt/httpd/modules/libphp5.la cp .libs/libphp5.a
/opt/httpd/modules/libphp5.a ranlib /opt/httpd/modules/libphp5.a chmod
644 /opt/httpd/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/root/php-5.1.6/libs'
Warning! dlname not found in /opt/httpd/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /opt/httpd/modules/libphp5.so
chmod: cannot access `/opt/httpd/modules/libphp5.so': No such file or
directory
apxs:Error: Command failed with rc=65536 .
make: *** [install-sapi] Error 1
The compiler log from 'make' shows this:
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp5. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
Reproduce code:
---------------
./configure --with-apxs2=/opt/httpd/bin/apxs --prefix=/opt/httpd/php5
--sharedstatedir=/opt/httpd/php5/com --enable-discard-path
--disable-force-cgi-redirect --disable-debug --disable-rpath
--enable-inline-optimization --enable-memory-limit
--with-config-file-path=/opt/httpd/php5/etc
--with-peardir=/opt/httpd/php5/share/pear --enable-magic-quotes
--enable-debugger --enable-track-vars --with-exec-dir=/usr/bin
--with-versioning --with-regex=php --enable-trans-sid
--enable-safe-mode --enable-ctype --enable-ftp --with-gettext=/usr
--enable-posix --enable-session --enable-sysvsem --enable-sysvshm
--enable-yp --with-openssl=/usr --with-kerberos --with-ttf
--with-freetype-dir=/usr --with-zlib --with-mysql=/usr --with-sqlite
--with-gd --with-imap --with-imap-ssl --with-ldap --enable-bcmath
--enable-calendar --with-curl --enable-dba --with-gd --with-gmp
--with-ldap --with-mcal=/usr/local --with-mycrypt --with-mime-magic
--with-ncurses --with-unixODBC --enable-xml --with-jpeg-dir
--with-zlib-dir --with-tiff-dir --with-pspell --with-png-dir=/usr/lib
--with-mysql-sock=/var/lib/mysql --with-dom --with-mcrypt --with-iconv
--enable-mbstring --with-mbstring=all
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38851&edit=1