Bug #10417: os.h:137: conflicting types for `dlopen' `dlsym' `dlerror'
| From: | thierry dot salmon at just dot fgov dot be | Date: | Fri, 20 Apr 2001 08:39:03 +0000 |
| Subject: | Bug #10417: os.h:137: conflicting types for `dlopen' `dlsym' `dlerror' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52039@lists.php.net to get a copy of this message | ||
From: thierry.salmon@just.fgov.be
Operating system: AIX 4.3.2
PHP version: 4.0.4pl1
PHP Bug Type: Apache related
Bug description: os.h:137: conflicting types for
dlopen' dlsym'
`dlerror'
with apache 1.3.9
----> php configure
./configure \
-with-informix=/usr/informix \
-without-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
>configure.log 2>&1
----> error
Making all in apache
/bin/sh /software/SOFTWARE/php-4.0.4pl1/libtool --silent --mode=compile gcc -I.
-I/software/SOFTWARE/php-4.0.4p
l1/sapi/apache -I/software/SOFTWARE/php-4.0.4pl1/main -I/software/SOFTWARE/php-4.0.4pl1
-I/usr/local/apache/include -I/s
oftware/SOFTWARE/php-4.0.4pl1/Zend -I/usr/informix/incl/esql
-I/software/SOFTWARE/php-4.0.4pl1/ext/xml/expat/xmltok -I/s
oftware/SOFTWARE/php-4.0.4pl1/ext/xml/expat/xmlparse -I/software/SOFTWARE/php-4.0.4pl1/TSRM
-DAIX=43 -DAIX_BIND_PROCESS
OR -DUSE_HSREGEX -DUSE_EXPAT -D__H_LOCALEDEF -DXML_BYTE_ORDER=21 -O2 -I/usr/informix/incl/esql -c
sapi_apache.c
In file included from /usr/local/apache/include/ap_config.h:115,
from /usr/local/apache/include/httpd.h:71,
from sapi_apache.c:32:
/usr/local/apache/include/os.h:137: conflicting types for `dlopen'
/usr/include/dlfcn.h:27: previous declaration of `dlopen'
/usr/local/apache/include/os.h:139: conflicting types for `dlsym'
/usr/include/dlfcn.h:28: previous declaration of `dlsym'
/usr/local/apache/include/os.h:140: conflicting types for `dlerror'
/usr/include/dlfcn.h:30: previous declaration of `dlerror'
In file included from /usr/local/apache/include/ap_config.h:1055,
from /usr/local/apache/include/httpd.h:71,
from sapi_apache.c:32:
/usr/include/arpa/inet.h:152: warning: `struct ether_addr' declared inside parameter list
/usr/include/arpa/inet.h:152: warning: its scope is only this definition or declaration, which is
probably not what you
want.
/usr/include/arpa/inet.h:153: warning: `struct ether_addr' declared inside parameter list
/usr/include/arpa/inet.h:154: warning: `struct ether_addr' declared inside parameter list
/usr/include/arpa/inet.h:159: warning: `struct sockaddr_dl' declared inside parameter list
/usr/include/arpa/inet.h:160: warning: `struct sockaddr_dl' declared inside parameter list
/usr/include/arpa/inet.h:161: warning: `struct sockaddr_dl' declared inside parameter list
make: 1254-004 The error code from the last command is 1.
Stop.
----->Turnover:
modify php-4.0.4pl1/Zend/zend.h
/* tsa
* #ifdef HAVE_DLFCN_H
* # include <dlfcn.h>
* #endif
*/
void *dlopen(const char *, int);
int dlclose(void *);
void *dlsym(void *, const char *);
const char *dlerror(void);
/* tsa
*/
modify apache_1.3.9/src/os/unix/os.h
#ifdef AIX
/* tsa
* #if AIX < 43
*/
#undef HAVE_DLFCN_H
/* tsa
* #endif
*/
#endif
--
Edit Bug report at: http://bugs.php.net/?id=10417&edit=1