PHP 4.0 Bug #8230 Updated: Library interdependency fix
| From: | sniper@php.net | Date: | Wed, 20 Dec 2000 02:22:54 +0000 |
| Subject: | PHP 4.0 Bug #8230 Updated: Library interdependency fix | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41885@lists.php.net to get a copy of this message | ||
ID: 8230
Updated by: sniper
Reported By: alex@unixdot.com
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Assigned To:
Comments:
See #8125.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-13 09:07:33] alex@unixdot.com
A certain person ``jakob'', who probably created the php4 port for OpenBSD 2.8 has found
the solution to an OpenBSD compilation and linking problem:
Used version:
php 4.0.3pl1
After:
./configure --with-apxs --with-mysql=/usr/local --with-config-file-path=/var/www/conf --disable-xml
--disable-pear --enable-bcmath
And then:
make
You get:
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
And in the logs:
--with-mysql:
/usr/libexec/ld.so: Undefined symbol "_floor" called from
httpd:/usr/lib/apache/modules/lib php4.so at 0x403075b8
--with-mysql=/usr/local:
/usr/libexec/ld.so: Undefined symbol "_mysql_init" called from
httpd:/usr/lib/apache/modules/libphp4.so at 0x402f428c
Now the fix:
[begin fix]
--- ltconfig.orig Wed Jun 28 18:37:22 2000
+++ ltconfig Tue Aug 8 23:39:23 2000
@@ -2028,6 +2028,7 @@ openbsd*)
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)
[end fix]
This patch works for both OpenBSD 2.7 and 2.8. Other versions might work as well.
``php4-latest'' Doesn't contain this fix.
I think this provides the final and real solution to:
- Bug id #6657
- Bug id #6828
- Bug id #7225
sincerely,
Alex de Haas
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8230