php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38851 Failed to created Apache 2 shared library
Submitted: 2006-09-15 23:12 UTC Modified: 2006-09-24 01:00 UTC
Votes:6
Avg. Score:4.8 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: shorb at optonline dot net Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.1.6 OS: RedHat EL 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shorb at optonline dot net
New email:
PHP Version: OS:

 

 [2006-09-15 23:12 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-16 10:52 UTC] mike@php.net
Please don't ever use --with-versioning.
 [2006-09-16 15:36 UTC] shorb at optonline dot net
Without that, compilation still fails
 [2006-09-16 17:28 UTC] 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-24 01:00 UTC] 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".
 [2009-09-02 16:46 UTC] martin at searchoptics dot com
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
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 05:00:03 2025 UTC