php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22394 No libphp4.so module for Apache 2.0.44
Submitted: 2003-02-24 09:23 UTC Modified: 2003-06-11 19:11 UTC
Votes:29
Avg. Score:4.1 ± 1.0
Reproduced:26 of 26 (100.0%)
Same Version:9 (34.6%)
Same OS:5 (19.2%)
From: apiotr at itm dot pcz dot czest dot pl Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.2-dev OS: UnixWare 7.1.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-02-24 09:23 UTC] apiotr at itm dot pcz dot czest dot pl
I have big problem with PHP 4.3.1 on UnixWare 7.1.1. After compilation source version of PHP 4.3.1 I don't have the libphp4.so module for Apache 2.0.43. I have only library files libphp4.a and libphp4.la. During compilation I don't 
have any errors messages.

My configuration options:
./configure \
--with-mysql=/usr/local/mysql --with-zlib --with-openssl \
--enable-sysvmsg --enable-sysvsem --enable-sysvshm \
--with-java=/opt/java2-1.2.2 --enable-ftp --enable-dba \
--with-dom=/usr/local/lib --with-gd --with-jpeg-dir --with-png-dir \
--enable-filepro --enable-safe-mode --with-exec-dir --with-bz2 \
--enable-track-vars --enable-force-cgi-redirect --with-gettext \
--with-gdbm --enable-cgi --enable-cli \
--with-apxs2=/usr/local/apache2/bin/apxs

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-26 08:35 UTC] apiotr at itm dot pcz dot czest dot pl
In this CVS version is the same problem.
 [2003-03-06 05:35 UTC] apiotr at itm dot pcz dot czest dot pl
OK. This compile problem is fixed now. But I have the same problem - no libphp4.so module. After make install I have this error messages:
Warning! dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming instaling a .so rather than a libtool archive.
WARNING: Cannot access /usr/local/apache2/modules/libphp4.so : No such file or directory.
apxs:Error: Command failed with rc=65536
Now I have Apache 2.0.44, but the same problem is in 2.0.43 version.
 [2003-03-07 02:25 UTC] sniper@php.net
Do you get any errors during 'make' ?

 [2003-03-07 02:31 UTC] sniper@php.net
Also, when you use that minimalistic configure line,
what is the last link line like?

 [2003-03-07 02:59 UTC] sniper@php.net
I did mean the one that has the "-o libphp4.la" part.
And don't paste all the .lo's..just say, 2 first ones.

btw. Have you tried this with Apache 1.3.27 ??

 [2003-03-07 03:45 UTC] apiotr at itm dot pcz dot czest dot pl
OK! I find this. The first line is:
/bin/sh /7/libtool --silent --preserve-dup-deps --mode=link gcc -g -O2 -prefer-pic  -rpath /7/libs -avoid-version -module -L/usr/ucblib  -R /usr/ucblib (....)
and the last:
(....)  main/internal_functions.lo -lresolv -lm -lsocket  -o libphp4.la
After this line I have warning message:
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 libphp4.  Therefore, libtool will create a static module, that should work as long as the dlopening application is linked with the -dlopen flag.
In Apache 1.0.37 is the same problem as in 2.0.44 version. During compile I have error message about '_shutdown'.
 [2003-03-07 03:54 UTC] sniper@php.net
Using what version of PHP do you get that error?
Have you or have you not been testing these using
the latest snapshot or not?

 [2003-03-07 03:54 UTC] sniper@php.net
Above comment was about PHP + Apache 1.3.27

 [2003-03-07 04:09 UTC] apiotr at itm dot pcz dot czest dot pl
I have testing these using the latest snapshot.
Sorry my mistake, in this version during compile for Apache 1.3.27 I have any errors message expect warning message:
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 libphp4.  Therefore, libtool will create a static module, that should work as long as the dlopening application is linked 
with the -dlopen flag.
 [2003-03-10 21:36 UTC] sniper@php.net
Using the latest stable snapshot, run your configure line
and send me the generated Makefile and libphp4.la files to sniper@php.net

 [2003-03-26 05:38 UTC] apiotr at itm dot pcz dot czest dot pl
Sorry, I was in two weekly conferences. Now I return to job. I send the secend e-mail with Makefile and libphp4.la. I you don't receive this mail I put the files in ftp://itm.pcz.czest.pl/pub/php/makefile.tar.gz
Sincerely Apiotr.
 [2003-03-26 05:54 UTC] apiotr at itm dot pcz dot czest dot pl
I have testing the latest snapshot 200303261030.
The compilation process has fail with messages:
ld: INFO: text relocations referenced from files:
libmysqlclient.a (libmysql.o)
libintl.a (dcgettext.o)
UX: ld: ERROR: relocations remain against non-writeable, allocatable section .rodata
collect2: ld returned 1 exit status
gmake: ***[libphp4.la] Error 1
 [2003-06-11 19:11 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-09-15 09:55 UTC] codedv at sccode dot com
I experience this exact problem too. I am on the verge of given up compiling PHP completely. My configure line is:

$./configure --with-apxs2=/usr/local/apache2/bin/apxs

I am attempting to compile PHP 4.3.3 on Redhat Linux 9. Before "make install" falls over it creates two files in my
/usr/local/apache2/modules directory:
libphp4.la
libphp4.a

However no trace of libphp4.so anywhere on my system.
 [2003-12-10 14:29 UTC] x-itec at freenet dot de
I have no .so library, too. Using Suse 8.1

PI.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lsablot -lexpat -lexpat -lexpat -lcrypt -lhistory -lreadline -lncurses -lpq -lmysqlclient -lming -lm -lmhash -lmcrypt -lltdl -liconv -lgmp -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lxml2 -lxslt -lz -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -liconv -lm -lcrypt -lcrypt  -o sapi/cli/php

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

# make install
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp4.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp4.la /usr/local/apache/modules/
cp .libs/libphp4.lai /usr/local/apache/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache/modules/libphp4.a
ranlib /usr/local/apache/modules/libphp4.a
chmod 644 /usr/local/apache/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /home/bk/dl/php-4.3.4/libs'
Warning!  dlname not found in /usr/local/apache/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp4.so
chmod: failed to get attributes of `/usr/local/apache/modules/libphp4.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
 [2003-12-30 16:22 UTC] eldy at users dot sourceforge dot net
I got the same problem, this is how i solved it:
When running the ./configure, the "libtool" script built contained the line
deplibs_check_method="unknown"
instead of
deplibs_check_method="pass_all"
Since i use a linux os and on linux the check for lib dependencies is not required, the value should be "pass_all".
I don't know why the script ./configure put the wrong value because after removing the config.cache file and runing again the ./configure, the libtools script was edited correctly... and make compiled correctly the libphp4.so
 [2004-01-01 01:44 UTC] msiemc at rogers dot com
i have same problem on my Slackware 9, i have Apache 2.0.48 and trying to install PHP 4.3.4

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-zlib --with-bz2 --enable-ftp --with-mime-magic --with-mysql=/usr/local/mysql --enable-sockets

compiling goes smooth, but make install doesn't:
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /root/php-4.3.4/libs'
Warning!  dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: /usr/local/apache2/modules/libphp4.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

Any ideas? I tried latest CVS and latest STABLE, but they didnt work either.
 [2004-01-03 13:35 UTC] msiemc at rogers dot com
i fixed dlname error, by installing libtool package, but .so is still not compiled in .libs

Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.so /usr/local/apache2/modules/libphp4.so
cp: .libs/libphp4.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

ls -lA .libs
total 10308
-rw-r--r--   1 root     root     10532728 Jan  3 13:09 libphp4.a
lrwxrwxrwx   1 root     root           13 Jan  3 13:09 libphp4.la -> ../libphp4.la
-rw-r--r--   1 root     root          848 Jan  3 13:09 libphp4.lai
 [2004-01-16 04:48 UTC] crispula78 at hotmail dot com
Compila apache sin la opcion --enable-so y luego php con la opci?n --with-apxs2=/ruta del apache/bin/apxs (si es la versi?n 1 de apache ser?a --with-apxs=/ruta del apache/bin/apxs)

To compile apache without configuration option --enable-so and php with configuration option --with-apxs2=/usr/local/apache2/bin/apxs
 [2004-01-18 15:30 UTC] sebastien at lignedirecte dot ca
I have exactly the same prob of libphp4.so not found


Apache 2.0.28
./configure --with-apxs --enable-so --prefix=/usr/local/apache2048

PHP 4.3.4
./configure --prefix=/usr/local/apache2048/php --with-apxs2=/usr/local/apache2048/bin/apxs --with-config-file-path=/usr/local/apache2048/php --with-pgsql=/usr/local/pgsql

The apache is installed and work perfectly but I can make the make install of the PHP without getting this error:


myserver# make install
Installing PHP CLI binary:        /usr/local/apache2048/php/bin/
Installing PHP CLI man page:      /usr/local/apache2048/php/man/man1/
Installing PHP SAPI module:       apache2handler
/usr/local/apache2048/build/instdso.sh SH_LIBTOOL='/usr/local/apache2048/build/libtool' libphp4.la /usr/local/apache2048/modules
/usr/local/apache2048/build/libtool --mode=install cp libphp4.la /usr/local/apache2048/modules/
cp .libs/libphp4.lai /usr/local/apache2048/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2048/modules/libphp4.a
ranlib /usr/local/apache2048/modules/libphp4.a
chmod 644 /usr/local/apache2048/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /usr/home/work/php-4.3.4/libs'
Warning!  dlname not found in /usr/local/apache2048/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2048/modules/libphp4.so
chmod: /usr/local/apache2048/modules/libphp4.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/home/work/php-4.3.4.
 [2004-01-19 10:23 UTC] crispula78 at hotmail dot com
Compile apache without configuration option --enable-so and php with configuration option 
--with-apxs2=/usr/local/apache2/bin/apxs
 [2004-11-27 05:50 UTC] sjungels at adelphia dot net
I have tracked this down to a faulty version of GNU grep.  You may have the same problem.  See my comment in bug 28496.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 23:01:32 2024 UTC