"Igor S. Livshits" wrote:

> Hello,
>
> I don't think I have ever successfully compiled mod_ssl using
> Apache's apxs; however, it compiles and works fine as a shared
> library otherwise. This is the compile error I get for version 2.4.3
> (2.4.2 running currently):
>
> gcc -c  -I/usr/local/apache/include -O3 -DLINUX=2 -DMOD_SSL=204102
> -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic
> -DSHARED_MODULE -I/usr/local/ssl/include -DMOD_SSL_VERSION=\"2.4.3\"
> ssl_engine_mutex.c && mv ssl_engine_mutex.o ssl_engine_mutex.lo
> ssl_engine_mutex.c: In function `ssl_mutex_sem_create':
> ssl_engine_mutex.c:288: storage size of `semctlarg' isn't known
> make[1]: *** [ssl_engine_mutex.lo] Error 1
> make[1]: Leaving directory
> `/usr/local/installations/mod_ssl-2.4.3-1.3.9/pkg.sslmod'
>
> Any ideas of what may be wrong before I start tracking all these
> dependencies by hand?

Apply this patch. I posted it to the list too.

>
>
> Thanks, igor
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
diff -u mod_ssl-2.4.3-1.3.9/pkg.sslmod/mod_ssl.h.orig 
mod_ssl-2.4.3-1.3.9/pkg.sslmod/mod_ssl.h
--- mod_ssl-2.4.3-1.3.9/pkg.sslmod/mod_ssl.h.orig       Mon Sep 27 17:28:15 1999
+++ mod_ssl-2.4.3-1.3.9/pkg.sslmod/mod_ssl.h    Mon Sep 27 17:29:03 1999
@@ -264,6 +264,17 @@
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>
+#ifdef _SEM_SEMUN_UNDEFINED
+union semun
+   {
+     int val;                           /* value for SETVAL */
+     struct semid_ds *buf;              /* buffer for IPC_STAT & IPC_SET */
+     unsigned short int *array;         /* array for GETALL & SETALL */
+     struct seminfo *__buf;             /* buffer for IPC_INFO */
+   };
+
+
+#endif
 #endif
 #ifdef WIN32
 #define SSL_CAN_USE_SEM

Reply via email to