#36960 [Bgs->Opn]: Cannot create shared library when a static library is used
ID: 36960
User updated by: mad at dactar dot ch
Reported By: mad at dactar dot ch
-Status: Bogus
+Status: Open
Bug Type: Compile Failure
Operating System: HP-UX
PHP Version: 5.1.2
New Comment:
It's seems that I don't have libtool installed on my system :
ksh: libtool: not found
There's a file called libtool who is placed in php source root
directory. This file seems be created during php ./configure.
Should I report a bug to libtool's authors about this file ?
Previous Comments:
------------------------------------------------------------------------
[2006-04-10 11:08:19] sniper@php.net
Just go blame the libtool authors. They decided that you have to have
everything either static or shared on your system.
Not a PHP bug.
------------------------------------------------------------------------
[2006-04-03 14:58:34] mad at dactar dot ch
Description:
------------
Cannot create shared library when a static library is used.
When one package (c-client (imap) in my case) is build as an static
library, the final php library is build on HP-UX as an static library.
It's not the case with Linux.
Reproduce code:
---------------
./configure \
--with-config-file-path=/PKl01h01/soft/web/cfg \
--with-mysql=/PKl01h01/soft/mysql \
--with-pgsql=/PKl01h01/soft/postgresql \
--with-sybase-ct=/PKl01hd2/soft/ase12.5/OCS-12_5 \
--with-pdflib=/PKl01h01/soft/web \
--with-zlib-dir=/PKl01h01/soft/web \
--with-png-dir=/PKl01h01/soft/web \
--with-ttf=/PKl01h01/soft/web \
--with-jpeg-dir=/PKl01h01/soft/web \
--with-imap=/PKl01h01/soft/src/imap \
--with-imap-ssl=/PKl01h01/soft/web/ \
--with-libxml-dir=/PKl01h01/soft/web \
--without-iconv \
--with-gd \
--prefix=/PKl01h01/soft/web \
--with-apxs=/PKl01h01/soft/web/apache/bin/apxs \
--enable-gd-native-ttf
make
look at libs directory
total 60588
-rw-r--r-- 1 xxxxxx yyyyyy 31010182 Apr 3 14:39 libphp5.a
-rw-r----- 1 xxxxxx yyyyyy 1518 Apr 3 14:39 libphp5.la
Expected result:
----------------
an .sl (shared library) and not a static library (.a)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36960&edit=1
Thread (6 messages)