apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: configure option to specify mmap/shm
Date Thu, 07 Feb 2002 18:50:45 GMT
On Thu, Feb 07, 2002 at 01:30:15PM -0500, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote:
> From: Aaron Bannert [mailto:aaron@clove.org]
> >Is there anything else we could test to see if it's not working? Is it
> >possible that MMAP_ZERO's implementation is simple broken? Send me
> >the error you are seeing, and optionally a truss output also.
> 
> I'm not sure if that's the case (will check it out).. It so happens that on
> my HPUX 11.0 system, there's no /dev/zero, and hence the configure does not
> detect it.. But on the 11i system, we do have a /dev/zero, but mmap does not
> support it :-(..

> open("/dev/zero", O_RDWR, 0666)                            = 3
> mmap(NULL, 256000, PROT_READ|PROT_WRITE, MAP_SHARED, 3, NULL) ERR#19 ENODEV

Yup, I'll agree that it's probably not supported by the OS. I'm thinking
we're going to have to make an exception for this platform the same way
we do it for linux 2.3 and earlier.

Try this and let me know (untested):

Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.404
diff -u -u -r1.404 configure.in
--- configure.in	5 Feb 2002 14:39:45 -0000	1.404
+++ configure.in	7 Feb 2002 18:47:44 -0000
@@ -531,6 +531,9 @@
             APR_DECISION_OVERRIDE(USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON)
         fi
         ;;
+    *hpux11* ) 
+        APR_DECISION_OVERRIDE(USE_SHMEM_SHMGET_ANON)
+        ;;
 esac
 APR_END_DECISION
 AC_DEFINE_UNQUOTED($ac_decision)

-aaron

Mime
View raw message