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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 12 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 08:03:38 2021 UTC