php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8230 Library interdependency fix
Submitted: 2000-12-13 09:07 UTC Modified: 2000-12-19 21:22 UTC
From: alex at unixdot dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: OpenBSD 2.7+
Private report: No CVE-ID: None
 [2000-12-13 09:07 UTC] alex at unixdot dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-19 21:22 UTC] sniper@php.net
See #8125.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 15:00:02 2026 UTC