Edit report at https://bugs.php.net/bug.php?id=60740&edit=1
ID: 60740
User updated by: lzsiga at freemail dot c3 dot hu
Reported by: lzsiga at freemail dot c3 dot hu
Summary: compilation of main/main.c stops: 'zend_stream' has
no member named 'mmap64'
Status: Open
Type: Bug
Package: Compile Failure
Operating System: AIX 6.1
PHP Version: 5.3.9
Block user comment: N
Private report: N
New Comment:
"Good" news: on AIX, compiling with large-file-support raises other problems,
too; for example there won't be function 'fopen' only function 'fopen64'
Previous Comments:
------------------------------------------------------------------------
[2012-01-15 16:57:45] lzsiga at freemail dot c3 dot hu
Or simply the inclusion of <sys/mman.h> could come before the inclusion of
"config.h"
------------------------------------------------------------------------
[2012-01-13 10:26:17] lzsiga at freemail dot c3 dot hu
Description:
------------
Compilation of main/main.c fails, the error message is:
/usr/local/src/php-5.3.9/main/main.c:1230: error: 'zend_stream' has no member
named 'mmap64'
/usr/local/src/php-5.3.9/main/main.c:1230: error: 'zend_stream' has no member
named 'mmap64'
/usr/local/src/php-5.3.9/main/main.c:1239: error: 'zend_stream' has no member
named 'mmap64'
/usr/local/src/php-5.3.9/main/main.c:1240: error: 'zend_stream' has no member
named 'mmap64'
The compilation went with largefile support (-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES), which caused sys/mman.h to define mmap
as mmap64; I suppose it would work, if
1. I compiled without largefile support (I don't like this idea)
2. The member 'mmap' of 'struct _zend_stream' had a less problematic name
('zmmap' for example)
3. Header 'zend_stream.h' included 'sys/mman.h'
4. I predefined 'mmap' as 'mmap64': -Dmmap=mmap64
5. I compiled in 64 bits (I'm afraid to do so, to be frank)
Platform: AIX 6.1 (oslevel -r = 6100-05); gcc (gcc --version = 4.4.5)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60740&edit=1