Hi,
I compiled mod_ssl-2.4.3-1.3.9 on a RedHat6.0 Linux and I got an error
because union semun is not defined. /usr/include/bits/sem.h contains
this on the subject:
------------------------------------------------------
/* The user should define a union like the following to use it for
arguments
for `semctl'.
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
};
Previous versions of this file used to define this union but this is
incorrect. One can test the macro _SEM_SEMUN_UNDEFINED to see
whether
one must define the union or not. */
#define _SEM_SEMUN_UNDEFINED 1
-----------------------------------------------------
The semctl manpage says about this union that:
-----------------------------------------------------
/* according to X/OPEN we have to define it ourselves */
-----------------------------------------------------
I defined it in mod_ssl and that worked for me. The patch is below.
Cheers!
Cristi
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
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]