php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #30141 phpize patch so it works on FreeBSD
Submitted: 2004-09-18 17:53 UTC Modified: 2010-11-18 23:53 UTC
From: jurgen at shop dot fr Assigned: jani (profile)
Status: Closed Package: Compile Failure
PHP Version: Irrelevant OS: FreeBSD
Private report: No CVE-ID: None
 [2004-09-18 17:53 UTC] jurgen at shop dot fr
Description:
------------
phpize relies on shtool to find libtoolize.

libtoolize=`$builddir/build/shtool path glibtoolize libtoolize`
$libtoolize -f -c || exit 1

However, on FreeBSD there is no libtoolize.  Instead there is libtoolize13, libtoolize14 and/or libtoolize15.

Solution: 

-libtoolize=`$builddir/build/shtool path glibtoolize gibtoolize`
+if test $HOSTTYPE = "FreeBSD"; then
+        libtoolize=`$builddir/build/shtool path glibtoolize
libtoolize15`    
+else
+        libtoolize=`$builddir/build/shtool path glibtoolize
libtoolize`
+fi

Optionally update old version shtool:
#cd /usr/local/lib/php/build
#mv shtool shtool.old
#ln -s /usr/local/bin/shtool


Reproduce code:
---------------
#phpize --clean
#phpize
autoheader: `config.h.in' is created
-f: not found

Expected result:
----------------
phpize fails to do it's job and You can't compile modules
afterwards.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-18 18:46 UTC] jurgen at shop dot fr
1) Seems some modules needs libtoolize13 to compile !
   (Like xdebug2.so)

2) Bug #21216 phpize passes --no-verify to ltconfig without   
   specifying host
   quote Derick: PHP requires libtool 1.4 anyway
 [2004-09-18 18:47 UTC] jurgen at shop dot fr
Bug #21216 should be solved either.
 [2004-09-18 19:26 UTC] rasmus@php.net
I think this is only applicable to FreeBSD5.  Every FreeBSD4 box I have checked has libtoolize.
 [2004-09-19 12:11 UTC] jurgen at shop dot fr
Nope.  I verified a 4.10 box.  Same as 5.X
 [2004-09-19 12:21 UTC] jurgen at shop dot fr
You known some modules are important, like the one of Xdebug2.so to debug Your code, maybe others to.
It was a hassle to compile it on FreeBSD due to phpize.

phpize is using an old shtool and old libtools.  It should
include 'if or case' for different OS (see my patch), or 
the  package/port maintainer need to known all patches at 
hand or they need to be written anyway in a README

On FreeBSD You can choose which libtoolize You use. v1.3
v1.4 or v15 and this is /usr/local/bin/libtoolizeXX
Of course You can create a symlink, but this has his consequences for other programs which rely on libtoolize,
so You can link to the wrong version.
 [2004-09-19 18:04 UTC] rasmus@php.net
On FreeBSD 4.10 /usr/local/bin/libtoolize is definitely there:

12:03pm as2:~> pkg_info -L libtool-1.3.4_2
Information for libtool-1.3.4_2:

Files:
/usr/local/bin/libtool
/usr/local/bin/libtoolize
/usr/local/include/ltdl.h
/usr/local/info/libtool.info
/usr/local/lib/libltdl.a
/usr/local/lib/libltdl.so
/usr/local/lib/libltdl.so.1
/usr/local/share/aclocal/libtool.m4
/usr/local/share/libtool/config.guess
/usr/local/share/libtool/config.sub
/usr/local/share/libtool/libltdl/COPYING.LIB
/usr/local/share/libtool/libltdl/Makefile.am
/usr/local/share/libtool/libltdl/Makefile.in
/usr/local/share/libtool/libltdl/README
/usr/local/share/libtool/libltdl/acconfig.h
/usr/local/share/libtool/libltdl/acinclude.m4
/usr/local/share/libtool/libltdl/aclocal.m4
/usr/local/share/libtool/libltdl/config.h.in
/usr/local/share/libtool/libltdl/configure
/usr/local/share/libtool/libltdl/configure.in
/usr/local/share/libtool/libltdl/ltdl.c
/usr/local/share/libtool/libltdl/ltdl.h
/usr/local/share/libtool/libltdl/stamp-h.in
/usr/local/share/libtool/ltconfig
/usr/local/share/libtool/ltmain.sh

The same is true for FreeBSD 4.3.  Which are the two versions I have access to.
 [2004-09-19 19:39 UTC] jurgen at person dot be
Well seems in Your setup it is the case, maybe due to his elder version libtool-1.3.4_2.  It isn't there on mine 
5.2.1 on version 1.3.5_1 and on the 4.X box with libtool-1.3.5_2

(But libtoolize or not, the comments are still valid in this thread.)

# pkg_info -L libtool-1.3.5_1 
Information for libtool-1.3.5_1:
 
Files:
/usr/local/bin/libtool13
/usr/local/bin/libtoolize13
/usr/local/libexec/libtool13/libtool
/usr/local/libexec/libtool13/libtoolize
/usr/local/info/libtool13.info
/usr/local/share/aclocal/libtool13.m4
/usr/local/share/libtool13/config.guess
/usr/local/share/libtool13/config.sub
/usr/local/share/libtool13/libltdl/README
/usr/local/share/libtool13/libltdl/stamp-h.in
/usr/local/share/libtool13/libltdl/COPYING.LIB
/usr/local/share/libtool13/libltdl/Makefile.am
/usr/local/share/libtool13/libltdl/Makefile.in
/usr/local/share/libtool13/libltdl/acconfig.h
/usr/local/share/libtool13/libltdl/acinclude.m4
/usr/local/share/libtool13/libltdl/aclocal.m4
/usr/local/share/libtool13/libltdl/config.h.in
/usr/local/share/libtool13/libltdl/configure
/usr/local/share/libtool13/libltdl/configure.in
/usr/local/share/libtool13/libltdl/ltdl.c
/usr/local/share/libtool13/libltdl/ltdl.h
/usr/local/share/libtool13/ltconfig
/usr/local/share/libtool13/ltconfig13
/usr/local/share/libtool13/ltmain.sh
 [2010-11-18 23:53 UTC] jani@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: Compile Failure -Assigned To: +Assigned To: jani
 [2010-11-18 23:53 UTC] jani@php.net
External libtool has not been used for a long time now..upgrade if you still have problem with this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 07:01:28 2024 UTC