PHP 4.0 Bug #8125: ltconfig out of date

From: Date: Tue, 05 Dec 2000 17:22:02 +0000
Subject: PHP 4.0 Bug #8125: ltconfig out of date
Groups: php.dev 
Request: Send a blank email to php-dev+get-40149@lists.php.net to get a copy of this message
From: anil@recoil.org Operating system: OpenBSD 2.8 PHP version: 4.0 Latest CVS (05/12/2000) PHP Bug Type: Dynamic loading Bug description: ltconfig out of date 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*) -- Edit Bug report at: http://bugs.php.net/?id=8125&edit=1

« previous php.dev (#40149) next »