php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2287 Conflicting type for dlerror
Submitted: 1999-09-13 09:52 UTC Modified: 1999-09-16 04:48 UTC
From: fmal at fmal dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 2 OS: AIX 4.3.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fmal at fmal dot com
New email:
PHP Version: OS:

 

 [1999-09-13 09:52 UTC] fmal at fmal dot com
During make I have this error :

make[2]: Entering directory `/usr2/php-4.0b2/ext/apache'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/usr2/apache_
1.3.9/src/include -I/usr2/apache_1.3.9/src/os/unix  -I/usr/local/include -I/usr2
/mysql/include/mysql   -I../.. -I../../libzend    -O2  -O2 -c apache.c
In file included from /usr2/apache_1.3.9/src/include/ap_config.h:115,
                 from ../../php.h:170,
                 from apache.c:22:
/usr2/apache_1.3.9/src/os/unix/os.h:117: conflicting types for `dlerror'
/usr/include/dlfcn.h:57: previous declaration of `dlerror'
make[2]: *** [apache.o] Error 1
make[2]: Leaving directory `/usr2/php-4.0b2/ext/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr2/php-4.0b2/ext'
make: *** [all-recursive] Error 1

The configure script is :
./configure        \
   --disable-debug           \
   --enable-track-vars       \
   --enable-magic-quotes     \
   --with-apache=/usr2/apache_1.3.9 \
   --with-mysql=/usr2/mysql

NB : I have already patched in apache/src/os/unix/os-aix-dso.c the dlerror declarations, following
Apache bug #3073






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-13 11:16 UTC] fmal at fmal dot com
It seems to compile if corrected also os/unix/os.h in
apache tree :

the declaration
 const char *dlerror(void)
must become
 char *dlerror(void)

NB : same thing in os-aix-dso.c


 [1999-09-16 04:48 UTC] sas at cvs dot php dot net
We cannot fix Apache bugs. Configuring with

CFLAGS=-Dconst ./configure

might help.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 16:01:28 2024 UTC