Openssl 1.1.1l compilation issue for aix64-cc

Michael Wojcik Michael.Wojcik at microfocus.com
Thu Oct 28 15:02:54 UTC 2021


> From: openssl-users <openssl-users-bounces at openssl.org> On Behalf Of Thiagu Mohan
> Sent: Thursday, 28 October, 2021 07:31

> Openssl  Version 1.1.1l

> I am trying to compile openssl in Aix 7.2 OS ( ./Configure aix64-cc   )

I don't recall seeing these, but I think the latest version of AIX we're building on is 7.1. And it looks like we're still using 1.1.1k (must not have needed the fixes from 1.1.1l). Also, I'm no longer the person doing our UNIX builds.

> While running make, receiving error 

> "Undeclared identifier RTLD_MEMBER" 

This appears to be because _ALL_SOURCE isn't defined.

>            and  
> "ldinfo_next" is not a member of "struct ld_info". 

The ldinfo_next error is a cascade from the earlier errors reported against sys/ldr.h. I have no idea at the moment why you're getting those; it's not obvious from a quick look at the header. And at least the one on the AIX 7.1 box I checked hasn't changed since 2014.

> ...

> cc  -I. -Iinclude -qpic -q64 -qmaxmem=16384 -qro -qroconst -qthreaded -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/mohant2/aix/openssl_1.1.1l_aix\"" -DENGINESDIR="\"/usr/mohant2/aix/openssl_1.1.1l_aix/lib/engines-1.1\"" -D_THREAD_SAFE -DNDEBUG -D_REENTRANT -D_XOPEN_SOURCE=700  -c -o crypto/dso/dso_dlfcn.o crypto/dso/dso_dlfcn.c
> "crypto/dso/dso_dlfcn.c", line 114.18: 1506-045 (S) Undeclared identifier RTLD_MEMBER.
> "/usr/include/sys/ldr.h", line 168.9: 1506-046 (S) Syntax error.
> "/usr/include/sys/ldr.h", line 205.5: 1506-046 (S) Syntax error.
> "/usr/include/sys/ldr.h", line 218.5: 1506-046 (S) Syntax error.
> "/usr/include/sys/ldr.h", line 225.5: 1506-046 (S) Syntax error.
> "/usr/include/sys/ldr.h", line 265.45: 1506-046 (S) Syntax error.
> "crypto/dso/dso_dlfcn.c", line 398.53: 1506-022 (S) "ldinfo_next" is not a member of "struct ld_info".
> "crypto/dso/dso_dlfcn.c", line 400.24: 1506-022 (S) "ldinfo_next" is not a member of "struct ld_info".

Try editing the Makefile and adding -D_ALL_SOURCE to see if that fixes the RTLD_MEMBER error. It might also have an effect on the ldr.h errors. If so, the Configure entry for aix-cc might need an update.

-- 
Michael Wojcik


More information about the openssl-users mailing list