|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-13 10:26 UTC] 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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 11:00:01 2025 UTC |
Sorry, I couldn't tell: I have moved onto 64-bit years ago, that eliminated the Large-File-Problem. But I've just checked the source of zend_stream.h in 7.1.9 -- the field's name is still 'mmap', so it still might cause problem on systems where large-file-support is solved via '#define mmap mmap64' Note: gcc-based systems use __asm__("mmap64"), so thex don't face this problem.