php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10417 os.h:137: conflicting types for `dlopen' `dlsym' `dlerror'
Submitted: 2001-04-20 04:39 UTC Modified: 2001-05-27 23:24 UTC
From: thierry dot salmon at just dot fgov dot be Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: AIX 4.3.2
Private report: No CVE-ID: None
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:
11 + 42 = ?
Subscribe to this entry?

 
 [2001-04-20 04:39 UTC] thierry dot salmon at just dot fgov dot be
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

 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 23:24 UTC] sniper@php.net
This is a bug in Apache not in PHP.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 01:01:27 2024 UTC