#30141 [Opn]: phpize patch so it works on FreeBSD
| From: | jurgen at shop dot fr | Date: | Sun, 19 Sep 2004 10:22:02 +0000 |
| Subject: | #30141 [Opn]: phpize patch so it works on FreeBSD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66406@lists.php.net to get a copy of this message | ||
ID: 30141
User updated by: jurgen at shop dot fr
Reported By: jurgen at shop dot fr
Status: Open
Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-09-19 12:11:28] jurgen at shop dot fr
Nope. I verified a 4.10 box. Same as 5.X
------------------------------------------------------------------------
[2004-09-18 19:26:15] rasmus@php.net
I think this is only applicable to FreeBSD5. Every FreeBSD4 box I have
checked has libtoolize.
------------------------------------------------------------------------
[2004-09-18 18:47:07] jurgen at shop dot fr
Bug #21216 should be solved either.
------------------------------------------------------------------------
[2004-09-18 18:46:04] 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 17:53:35] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30141&edit=1