PHP 4.0 Bug #8125 Updated: ltconfig out of date
| From: | anil at recoil dot org | Date: | Tue, 19 Dec 2000 22:19:13 +0000 |
| Subject: | PHP 4.0 Bug #8125 Updated: ltconfig out of date | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41855@lists.php.net to get a copy of this message | ||
ID: 8125
User Update by: anil@recoil.org
Old-Status: Open
Status: Closed
Bug Type: Dynamic loading
Description: ltconfig out of date
Sascha committed this to the php_4_0_4, but not the HEAD branch, so it will have to be reapplied, or
the relevant set of patches submitted to libtool-patches(espie@openbsd.org is working on this)
(note: if someone wants, the #8230 and #6657 bug reports can also be closed, as they are related to
this problem, and still open)
Previous Comments:
---------------------------------------------------------------------------
[2000-12-05 12:22:01] anil@recoil.org
The ltconfig seems to be somewhat out of date with regards to OpenBSD. On i386,it is unable to
detect shared libraries at runtime when compiled out of the box, and on OpenBSD 2.8 onwards, it
should use 'cc -shared' instead of the default.
Currently, this is what I get when trying to start Apache (with the --with-imap option specified):
[root@brick php4]# apachectl startssl
/usr/libexec/ld.so: Undefined symbol "_mail_string" in
httpd:/usr/lib/apache/modules/libphp4.so
OpenBSD includes a version of ltconfig that is up-to-date with respect to these changes, and I
merged them in here to enable CVS to compile 'out-of-the-box' on my OpenBSD box. It
should not affect previous OpenBSD revisions.
It has only been tested on i386 OpenBSD, and could really use testing on Sparc/PowerPC.
Here is the patch to ltconfig from latest CVS:
Index: ltconfig
===================================================================
RCS file: /repository/php4/ltconfig,v
retrieving revision 1.20
diff -u -r1.20 ltconfig
--- ltconfig 2000/11/04 02:42:10 1.20
+++ ltconfig 2000/12/05 17:11:47
@@ -1105,6 +1105,9 @@
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1402,10 +1405,18 @@
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd2.[01234567])
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
;;
os2*)
@@ -2019,13 +2030,10 @@
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
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*)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8125