From:             [EMAIL PROTECTED]
Operating system: AIX 4.2
PHP version:      4.0.6
PHP Bug Type:     Compile Failure
Bug description:  Compiling fails with Apache 1.3.20 and 1.3.9

Configure: ./configure --prefix=/opt/php-4.0.6 --with-apache=/opt/apache_1.3.20 
--with-mysql=/opt/mysql-3.22.30 --disable-shared 

Compiling with gcc (v. 2.8.0):
gcc  -I. -I/opt/php-4.0.6/sapi/apache -I/opt/php-4.0.6/main -I/opt/php-4.0.6 ... ... 
... -I/opt/php-4.0.6/TSRM ...  -I/opt/apache_1.3.20/src/os/unix -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -O2  -c sapi_apache.c && touch sapi_apache.lo
In file included from /opt/apache_1.3.20/src/include/ap_config.h:114,
 from /opt/apache_1.3.20/src/include/httpd.h:72,
 from sapi_apache.c:32:
/opt/apache_1.3.20/src/os/unix/os.h:123: conflicting types for `dlerror'
/usr/include/dlfcn.h:36: previous declaration of `dlerror'  

I have found the declarations in _apache_/src/os/unix/os.h:
#ifdef AIX | #if AIX < 43 | #undef HAVE_DLFCN_H
#endif | #endif
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#else
void *dlopen(const char *, int);
int dlclose(void *);
void *dlsym(void *, const char *);
const char *dlerror(void);
#endif 

It looks like the compiler includes dlfcn.h nevertheless!
What can I do to fix it?                                                               
           


-- 
Edit Bug report at: http://bugs.php.net/?id=11691&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to