php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18969 Conflicting types for mmap64 during sapi_apache.c compilation
Submitted: 2002-08-19 14:16 UTC Modified: 2002-10-27 19:06 UTC
From: spearson8872 at aol dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.0-dev OS: AIX 4.3.3
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: spearson8872 at aol dot com
New email:
PHP Version: OS:

 

 [2002-08-19 14:16 UTC] spearson8872 at aol dot com
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).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-19 17:21 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-08-20 15:48 UTC] spearson8872 at aol dot com
Thx sniper. I tried using that code but have got the same results.
 [2002-08-20 15:55 UTC] kalowsky@php.net
Just marking as open
 [2002-08-20 21:32 UTC] sniper@php.net
update version.
 [2002-10-08 22:32 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

If the problem still exists could you please include the defenition of mmap64 from /usr/include/sys/mman.h
 [2002-10-27 19:06 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 22:01:29 2024 UTC