php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16500 DL_ERROR() instead of dlerror() in ext/standard/dl.c 1.68 breaks build
Submitted: 2002-04-08 17:11 UTC Modified: 2002-04-08 20:52 UTC
From: web-php-bugs at sklar dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-04-08 OS: Red Hat Linux 7.1 / kernel 2.4.4
Private report: No CVE-ID: None
 [2002-04-08 17:11 UTC] web-php-bugs at sklar dot com
dl.c version 1.68 line 48 defines GET_DL_ERROR() as DL_ERROR() instead of (as in previous versions of dl.c) dlerror().

When building, that gives me the following error when gcc tries to link together all of the various object files and libraries to make the php binary:

ext/standard/dl.o: In function `php_dl':
/store/cvs/php/php4/ext/standard/dl.c:137: undefined reference to `DL_ERROR'

If I change dl.c back to using dlerror() instead of DL_ERROR(), it builds fine. Here is my configure command line:

./configure \
 --disable-short-tags \
 --enable-magic-quotes \
 --with-openssl \
 --with-zlib-dir=/usr/lib \
 --enable-calendar \
 --with-curl \
 --with-dom=/usr/local/lib \
 --with-gettext \
 --with-mcrypt \
 --with-mysql=/usr/local/mysql \
 --with-pgsql \
 --with-oci8=/store/oracle \
 --with-ncurses \
 --with-readline=/usr/local/lib \
 --with-mm=../mm-1.1.3 \
 --enable-sockets \
 --enable-sysvsem --enable-sysvshm \
 --with-iconv \
 --with-xmlrpc \
 --with-zip=/usr/local/lib \
 --enable-inline-optimization \
 --enable-dba \
 --with-gdbm \
 --with-ndbm \
 --with-db2 \
 --with-db3 \
 --with-shmop

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-08 17:59 UTC] sniper@php.net
Did you get PHP from CVS or did you download a snapshot.
If the former, you just haven't updated Zend module.
If the latter, it might be some problem in the snapshot creation.

 [2002-04-08 18:10 UTC] web-php-bugs at sklar dot com
I got it from CVS. I will update Zend and see what happens.
 [2002-04-08 20:52 UTC] web-php-bugs at sklar dot com
Updating Zend fixed it as recommended. Thanks for the help. I will be sure to update both php and Zend (and TSRM, I suppose, just to be safe) before rebuilding now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 08 01:00:03 2025 UTC