Re: [PHP-INSTALL] 4.3.9 build problem - libphp4.so is not created - FreeBSD 4.6.2, Apache 1.3.26

[email protected] (Jesse Reynolds)
Newsgroups php.install
Message-ID <a06110420bdcecb838334@[129.94.41.148]>
At 9:43 +1100 28/11/04, Brad Kowalczyk wrote:
>Jesse Reynolds wrote:
>
>>Hello
>>
>>This seems odd... I am trying to upgrade to PHP 4.3.9 (by 
>>recompiling with the same options I used for 4.2.1) and it all 
>>looks OK, no errors etc, except that the libphp4.so file is simply 
>>not created. The libs dir looks like this after running 'make':
>>
>>root@cabernet /home/jesse/src/php/php-4.3.9 # ls -l libs
>>total 9826
>>-rw-r--r--  1 root  jesse  10039290 Nov 27 23:16 libphp4.a
>>-rw-r--r--  1 root  jesse      1144 Nov 27 23:16 libphp4.la
>>
>>
>>My configure options are:
>>
>>./configure --with-apxs=/usr/local/sbin/apxs \
>>     --with-config-file-path=/usr/local/etc \
>>     --enable-versioning \
>>     --with-regex=system \
>>     --without-gd \
>>     --without-mysql \
>>     --with-gd=/usr/local \
>>     --enable-gd-native-ttf \
>>     --with-freetype-dir=/usr/local \
>>     --with-jpeg-dir=/usr/local \
>>     --with-png-dir=/usr/local \
>>     --with-zlib \
>>     --with-mcrypt=/usr/local \
>>     --with-mhash=/usr/local \
>>     --with-imap=/usr/local \
>>     --with-mysql=/usr/local \
>>     --with-ldap=/usr/local \
>>     --with-expat-dir=/usr/local \
>>     --with-dom=/usr/local \
>>     --enable-ftp \
>>     --with-curl=/usr/local \
>>     --with-gettext=/usr/local \
>>     --with-pspell=/usr/local \
>>     --prefix=/usr/local \
>>     --with-imagick=/usr/local/imagemagick \
>>     i386-BuiltByJesseAtVA-freebsd4.6.2
>>
>>
>>(I've also tried removing those last two lines, make clean, make 
>>but still the same prob)
>>
>>
>>I get the following libtool warning when running make, towards the end:
>>
>>
>>/bin/sh /usr/home/jesse/src/php/php-4.3.9/libtool  ...  -o libphp4.la
>>
>>*** 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.
>>
>>
>>When I run make install I get an error, of course:
>>
>>root@cabernet /home/jesse/src/php/php-4.3.9 # make install
>>Installing PHP SAPI module:       apache
>>[activating module `php4' in /usr/local/etc/apache/httpd.conf]
>>cp libs/libphp4.so /usr/local/libexec/apache/libphp4.so
>>cp: libs/libphp4.so: No such file or directory
>>apxs:Break: Command failed with rc=1
>>*** Error code 1
>>
>>Stop in /usr/home/jesse/src/php/php-4.3.9.
>>
>>
>>Am I doing something wrong? Why is no libphp4.so being created?
>>
>>Thanks very much
>>
>>Jesse
>>
>Hi Jesse,
>
>I had what sounds like the same problem on my FreeBSD server, try 
>this solution:
>
>1. run your configure script as it is
>2. Open the libtool file that is created in the php source directory
>3. find the variable definition: deplibs_check_method=
>4. edit it to read: deplibs_check_method="pass_all"
>5. run make
>
>I'm almost 100% sure that solved my problem, give it a go anyhow.


So I changed:

# Method to check whether dependent libraries are shared objects.
deplibs_check_method="unknown"

to

# Method to check whether dependent libraries are shared objects.
deplibs_check_method="pass_all"

This has worked! Thanks Brad. I wonder what the cause of the problem is.

libs dir now looks like:

root@cabernet /home/jesse/src/php/php-4.3.9 # ls -l libs/
total 3554
-rw-r--r--  1 root  jesse     1177 Nov 28 10:58 libphp4.la
-rwxr-xr-x  1 root  jesse  3615533 Nov 28 10:58 libphp4.so

Great, after a 'make install' and 'apachectl stop ; apachectl 
startssl' all is good with the world (except that I've now broken 
IMP, which I see is because PEAR has dropped support for isWarning() 
... but you get that).

Cheers

Jesse


-- 

   ::: Jesse Reynolds +61 (0)414 669 790 ::: AIM - jessedreynolds :::
   ::: Virtual Artists Pty Ltd, Adelaide ::: http://www.va.com.au :::
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.