#37269 [NEW]: error while compiling: dlopen
| From: | lin dot dave at gmail dot com | Date: | Tue, 02 May 2006 04:09:43 +0000 |
| Subject: | #37269 [NEW]: error while compiling: dlopen | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96463@lists.php.net to get a copy of this message | ||
From: lin dot dave at gmail dot com
Operating system: Red Hat Enterprise 3 (2.4.21)
PHP version: 5.1.3
PHP Bug Type: Compile Failure
Bug description: error while compiling: dlopen
Description:
------------
looks like some standard extensions were compiled with some static linking
to glibc shared libraries.
php-5.1.3/ext/standard/dl.c:140: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
Reproduce code:
---------------
(here's my configure file:)
./configure \
--with-mysql=/usr/local/mysql \
--with-apxs2=/etc/httpd/bin/apxs \
--enable-track-vars \
--with-xmlrpc \
--enable-soap \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/local \
--with-gd \
--with-ttf \
--with-freetype-dir=/usr \
--enable-force-cgi-redirect \
--with-gettext \
--with-zlib \
--with-libxml-dir=/usr/local \
&& make && make install 1> configure.messages
Expected result:
----------------
It should complete without errors
Actual result:
--------------
...Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo
Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo
Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo
Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_execute.lo
sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo
main/internal_functions_cli.lo -lcrypt -lcrypt -lrt -lmysqlclient
-lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
-lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2
-lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o sapi/cli/php
ext/standard/.libs/dl.o(.text+0x1c8): In function `php_dl':
/usr/local/src/php-5.1.3/ext/standard/dl.c:140: Using 'dlopen' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libdl.a(dlsym.o)(.text+0x23):
In function `dlsym':
: undefined reference to `_dl_load_lock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libdl.a(dlsym.o)(.text+0x4d):
In function `dlsym':
: undefined reference to `_dl_load_lock'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--
Edit bug report at http://bugs.php.net/?id=37269&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37269&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37269&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37269&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37269&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37269&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37269&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37269&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37269&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37269&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37269&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37269&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37269&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37269&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37269&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37269&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37269&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37269&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37269&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37269&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37269&r=mysqlcfg