The generated makefile contains:
CC=cc
CFLAGS1= -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCE
SSOR -qnogenpcomp -qnousepcomp -DMOD_SSL=208101 -DUSE_HSREGEX -DEAPI -DUSE_E
XPAT -I$(SRCDIR)/lib/expat-lite
cc defaults to clx (IBM C Compiler). To have semaphores support on mod_ssl,
some of this combinations is required:
USE_SYSVSEM_SERIALIZED_ACCEPT (mod_ssl.h line 289)
Or
defined(__FreeBSD__) && defined(__FreeBSD_version) && __FreeBSD_version >=
300000
Or
defined(LINUX) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && LINUX
>= 2 && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
Or
defined(SOLARIS2)
Or
defined(__hpux)
For AIX (if you see ap_config.h) you get
#if !defined(USE_PTHREAD_SERIALIZED_ACCEPT) (line 282 ap_config.h)
#define USE_FCNTL_SERIALIZED_ACCEPT
#endif
If you take a look at configure in /src directory you have (for AIX 4.3):
CFLAGS="$CFLAGS -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__" (line
324 of /src/configure)
so USE_PTHREAD_SERIALIZED_ACCEPT gets only defined for AIX 4.3,
Resuming, for AIX 4.3 USE_PTHREAD_SERIALIZED_ACCEPT is defined and
USE_FCNTL_SERIALIZED_ACCEPT for other
versions.
Anyway, the only way for mod_ssl under an AIX system to include semaphores
support would be that USE_SYSVSEM_SERIALIZED_ACCEPT
were defined somewhere, but I can't see how can this happen.
I ran OpensSSL, mod_ssl and Apache configuration and compile carefully, and
everything went fine.
If you look carefully, my system is behaving as it should (unless I'm
missing something) -> no semaphores support for mod_ssl.
Anyway.. if you do "SSLMutex sem" in httpd conf, you get "SSLMutex:
Semaphores not available on this platform".
Can you do "SSLMutex sem" with no prob??? If you do.. I cant figure how,
from the 'code' point of view.
I really must be screwing something.
I know semaphores are available under AIX, but what I didn't catch is "Are
they available for mod_ssl?"
I'm really lost here. Any enlightment is really really appreciated.
Thanks for your response.
Diego
----- Original Message -----
From: "Jack Gostl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 8:54 AM
Subject: Re: Semaphores on AIX
> On Sun, 3 Jun 2001, Diego Tartara wrote:
>
> > Maybe I'm wrong, but when compiling mod_ssl on AIX support for
> > semaphores is not available, and only file locking is enabled (using
> > fcntl). I'm working on a 4.3 AIX system and it has support for ipc
> > semaphores. Please, I'd really like to know why semaphores are not
> > enabled under AIX (or correct me if I'm wrong). If this is because the
> > file locking method is the preferred way, why is it so? I'm sorry if I
> > missed something, this is my first time on a AIX system and maybe my
> > question seems dumb. Any comment will be really appreciated
>
> I haven't tried mod_ssl on AIX 4.3 yet, but it runs fine under 4.2. And I
> can tell you that semaphores are definitely available under AIX.
>
> I have no idea why mod_ssl doesn't like it. I think its pretty standard
> semaphore support.
>
> --
>
> Jack Gostl [EMAIL PROTECTED]
>
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl) www.modssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]