|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-04-08 07:25 UTC] joerg@php.net
Description:
------------
Compiling current apc 3.0.14 on IRIX 6.5.30 with the mips pro 7.4.4m compiler return the following error.
cc-1020 c99: ERROR File = /usr2/MIPS/APC-3.0.14/apc_mmap.c, Line = 55
The identifier "MAP_ANON" is undefined.
shmaddr = (void *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
^
It works when using the "--disable-apc-mmap" option.
regards
Joerg
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
AFAIK, IRIX doesn't support MAP_ANON or MAP_ANONYMOUS for mmapping anonymous pages. If you want to use APC with mmap, you can try to open /dev/zero and mmap that. Conceptionally something like: mfd = open('/dev/zero',O_RDWR); shmaddr = (void *)mmap(NULL,size,PROT_READ | PROT_WRITE, MAP_SHARED,mfd,0); Sorry, i can't help you with a patch because i have no IRIX system available, but maybe you could make a fixing patch yourself with this background information.