[PHP-DEV] PHP 4.0 Bug #8230: Library interdependency fix From: alex <email protected>
Date: 12/13/00

From: alex <email protected>
Operating system: OpenBSD 2.7+
PHP version: 4.0.3pl1
PHP Bug Type: Compile Failure
Bug description: Library interdependency fix

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

-- 
Edit Bug report at: http://bugs.php.net/?id=8230&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>