#18969 [NEW]: Conflicting types for mmap64 during sapi_apache.c compilation
| From: | spearson8872 at aol dot com | Date: | Mon, 19 Aug 2002 18:16:05 +0000 |
| Subject: | #18969 [NEW]: Conflicting types for mmap64 during sapi_apache.c compilation | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17217@lists.php.net to get a copy of this message | ||
From: spearson8872@aol.com
Operating system: AIX 4.3.3
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: Conflicting types for mmap64 during sapi_apache.c compilation
Using the following code (generated by Make)
=============================
gcc -I. -I/home/spearson/dev/apache13/php-4.2.2/sapi/apache
-I/home/spearson/dev/apache13/php-4.2.2/main
-I/home/spearson/dev/apache13/php-4.2.2
-I/home/spearson/dev/apache13/apache_1.3.26/src/include
-I/home/spearson/dev/apache13/apache_1.3.26/src/os/unix
-I/home/spearson/dev/apache13/php-4.2.2/Zend
-I/home/spearson/dev/apache13/php-4.2.2/ext/mysql/libmysql
-I/home/spearson/dev/apache13/php-4.2.2/ext/xml/expat
-I/home/spearson/dev/apache13/apache_1.3.26/src/include
-I/home/spearson/dev/apache13/apache_1.3.26/src/os/unix
-I/home/spearson/dev/apache13/php-4.2.2/TSRM -O2 -c sapi_apache.c &&
touch sapi_apache.lo
=============================
resulted in several warnings and 2 errors when run on
AIX 4.3.3
Apache 1.3.26
mod_perl 1.26
php 4.2.2
The 2 errors are:-
/usr/include/sys/mman.h:114: conflicting types for `mmap64'
/usr/include/sys/mman.h:109: previous declaration of `mmap64'
sapi_apache.c: In function `apache_php_module_main':
sapi_apache.c:93: `in_request' undeclared (first use in this function)
I was able to circumvent the first by commenting out the _LARGE_FILES
definition in ap_config_auto.h (from mod_perl).
The second error is a duplicate of Bug #15209 (I have added a comment
there to indicate the AIX compilation failure).
--
Edit bug report at http://bugs.php.net/?id=18969&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18969&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18969&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18969&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18969&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18969&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18969&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18969&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18969&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18969&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18969&r=globals