[Mark Frost via RT wrote]
> I'm trying to compile openssl 0.9.7e on an AIX 5.2 system.
>
> ...
> 
> A look at the file that's being compiled
> (openssl-0.9.7e/fips/rand/fips_rand.c) shows the following at line 56:
> 
> /* 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.  */
> #define _XOPEN_SOURCE_EXTENDED
> 
> 
> 
> If I simply change that line in fips_rand.c to
> 
> #define _XOPEN_SOURCE_EXTENDED 1
> 
> the code will compile and run fine.

Mark,

I have the same problem (though with the native AIX compiler). I chose the
following slightly different patch:

    --- openssl-0.9.7e/fips/rand/fips_rand.c.original   Wed Nov 17 09:51:50 2004
    +++ openssl-0.9.7e/fips/rand/fips_rand.c    Wed Nov 17 09:52:30 2004
    @@ -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>


I'll send another email with a "[PATCH]" subject line as per "HOW TO CONTRIBUTE
TO OpenSSL" in the main README.

Cheers,
Trent

-- 
Trent Mick
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to