here is what I added in openssl.patch to make it works on AIX 5.2 :
--- fips/rand/fips_rand.c.orig 2005-05-23 17:39:36.000000000 +0200
+++ fips/rand/fips_rand.c 2005-05-23 17:39:29.000000000 +0200
@@ -56,7 +56,9 @@
/* If we don't define _XOPEN_SOURCE_EXTENDED, struct timeval won't
be defined and gettimeofday() won't be declared with strict compilers
like DEC C in ANSI C mode. */
+#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED
+#endif
#include <openssl/des.h>
#include <openssl/rand.h>
--- config.orig 2005-05-23 17:43:46.000000000 +0200
+++ config 2005-05-23 16:35:35.000000000 +0200
@@ -469,6 +469,7 @@
if [ "${SYSTEM}" = "AIX" ]; then # favor vendor cc over gcc
(cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc
+ (gcc) 2>&1 | grep -iv "not found" > /dev/null && CC=gcc
fi
CCVER=${CCVER:-0}
2005/5/23, Henri Gomez <[EMAIL PROTECTED]>:
> Since Mr Ralf is one of the OpenSSL master, here is a patch to be
> included in future openssl releases.
>
> in fips/rand/fips_rand.c there is a #define _XOPEN_SOURCE_EXTENDED
>
> On AIX, this is allready defined and break compil, added the following :
>
> #ifndef _XOPEN_SOURCE_EXTENDED
> #define _XOPEN_SOURCE_EXTENDED
> #endif
>
> Also, it seems Config/config on aix prefer cc over gcc, even if we
> specify CC=gcc in the config line. As such it generated many warning
> in build since gcc didn't understand -qmaxmem=16384.
>
> Any way to allow gcc for AIX in future releases ?
>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [email protected]