php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50190 need libtool >=1.5.26
Submitted: 2009-11-16 14:49 UTC Modified: 2009-11-27 12:33 UTC
From: ralphdoncaster at gmail dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.11 OS: AIX 5.3
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: ralphdoncaster at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-16 14:49 UTC] ralphdoncaster at gmail dot com
Description:
------------
libtool 1.5.20 is bundled with PHP.  This version does not copy libphp5.so on make install.
libtool 1.5.26 works properly

This seems to have already been reported as bug #48427, but was closed as bogus (nobody realized the problem is with libtool, not gnu ld)


Reproduce code:
---------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make install


Expected result:
----------------
libphp5.so should get copied to apache2 modules dir


Actual result:
--------------
it fails

I replaced libtool 1.5.20 with 1.5.26 from the apache2 build, then make install works fine.

bash-3.2# ./libtool --version
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

Copyright (C) 2008  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-3.2# ./libtool.old/libtool --version
ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-16 16:12 UTC] jani@php.net
Exactly how did you replace it? If you have a patch, feel free to provide one. See build/libtool.m4 for more..
 [2009-11-16 17:11 UTC] ralphdoncaster at gmail dot com
configure generates the libtool script, so after running configure I replaced it with the newer version that comes with apache2.
lrwxrwxrwx    1 root     system           32 Nov 13 13:19 libtool -> /usr/local/apache2/build/libtool

I have no experience with autoconf, and my only m4 experience is from a bit of sendmail twiddling.  When I searched the bugs db I saw some references to libtool getting included with autoconf, so whoever did that would probably be able to create a patch much easier than I could.
 [2009-11-17 09:14 UTC] jani@php.net
How about a 'diff -u' between the PHP libtool and Apache libtool?
 [2009-11-20 13:02 UTC] ralphdoncaster at gmail dot com
I don't have gnu diff installed, but I think the diff is a red herring anyway; we know it's the difference between 1.5.20 & 1.5.26.

I think the issue may be the version of autoconf used to build the distribution configure script(if libtool is included as part of autoconf, which I'm not so sure it is).  Since the date stamp for 1.5.26 is 2008/01/30, if autoconf 2.61 or earlier was used to build configure, it can't have included libtool 1.5.26.  build/buildcheck.sh only requires autoconf 2.13 or newer.

If autoconf just uses the version of libtool installed on the distribution build box, then maybe changing libtool.m4:1236 might work:
need_version=no
to:
need_version=1.5.26
might work.

I tried rebuilding configure (I have autoconf 2.59 and no libtool installed).  The libtool that was created after running configure was still 1.5.20. here's what I ran:
autoconf
./configure
./libtool --version
 [2009-11-20 13:10 UTC] ralphdoncaster at gmail dot com
I tried it again with need_version=1.5.26 and it makes no difference.
 [2009-11-20 14:01 UTC] jani@php.net
Yes, I know all this. I really need the diff between the libtool that gets generated with stock PHP (which didn't work for you) and the libtool your replaced it with. Can you do this or not? If you can, put it to pastebin.com and submit the url here..
 [2009-11-20 19:48 UTC] jani@php.net
I should have been more verbose I guess: I need diff -u (unified diff) and do NOT paste it here but in http://pastebin.com/ and provide the URL to the paste in this bug report. DO NOT EMAIL anything to me!
 [2009-11-20 20:06 UTC] ralphdoncaster at gmail dot com
I guess you missed the part where I said I don't have gnu diff.
 [2009-11-23 21:53 UTC] jani@php.net
Fixed in SVN. 
 [2009-11-27 12:33 UTC] ralphdoncaster at gmail dot com
The build instructions might need to be updated about the required version of libtool.
http://php.net/svn.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC