php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8559 dlerror previously defined
Submitted: 2001-01-04 19:57 UTC Modified: 2001-06-03 04:34 UTC
From: fang-pin dot chang at cyberdude dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4 OS: AIX 4.2.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fang-pin dot chang at cyberdude dot com
New email:
PHP Version: OS:

 

 [2001-01-04 19:57 UTC] fang-pin dot chang at cyberdude dot com
The config line is

    ./configure --with-apxs=/usr/local/apache/bin/apxs \
                --with-mysql

I am using apache 1.3.14

This has been reported before, as a search on the string "dlfcn" in the bug database turns up several reports.  However, none of them have been with PHP 4.0.4.  Basically, when .../php-4.0.4/sapi/apache/sapi_apache.c is being compiled, you get the following:

In file included from /usr/local/apache/include/ap_config.h:116,
                 from /usr/local/apache/include/httpd.h:71,
                 from sapi_apache.c:32:
/usr/local/apache/include/os.h:122: conflicting types for `dlerror'
/usr/include/dlfcn.h:51: previous declaration of `dlerror'

I tried to trace down where dlfcn.h is being included prior to line 113

    #undef HAVE_DLFCN_H

in .../apache/include/os.h, but so far to no avail.  As a workaround, commenting out line 123 where it says

    const char *dlerror(void);

got the compile to work.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 04:34 UTC] sniper@php.net
This should be fixed with PHP 4.0.6, please try the 
latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

-Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC