php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36960 Cannot create shared library when a static library is used
Submitted: 2006-04-03 14:58 UTC Modified: 2006-04-11 11:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mad at dactar dot ch Assigned:
Status: Not a bug Package: Compile Warning
PHP Version: 5.1.2 OS: HP-UX
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: mad at dactar dot ch
New email:
PHP Version: OS:

 

 [2006-04-03 14:58 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-10 11:08 UTC] 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-10 13:19 UTC] mad at dactar dot ch
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 ?
 [2006-04-10 21:27 UTC] sniper@php.net
It won't do any good, you still have to have all libraries as shared.
 [2006-04-11 08:07 UTC] mad at dactar dot ch
I can't have c-client (imap) as shared library
(cf FAQ c-client Why don't you make c-client a shared library? : http://www.washington.edu/imap/IMAP-FAQs/index.html#6.3)

So, if there's no solution, I think that a warning (You are going to compile php on HP-UX with imap support : No shared library can be build) in configuration step about this problem would not be an bad idea.

I change the category of this ticket from Compile Failure to Compile Warning

@++
JC
 [2006-04-11 11:00 UTC] sniper@php.net
Libtool still won't build stuff mixed like that.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 04 19:01:28 2024 UTC