Keyur February 2016

Unable to install openssl in AIX due to "cc: unrecognized option"

So I installed openssl in one of the 3 aix servers but it just wouldn't work in the other 2 servers.
I'm trying to install openssl-1.0.1h on AIX.

Step 1: I ran the config file -

./config -–prefix=/appl/peoplesoft/apache/openssl  

Output: a Makefile is generated.

Step 2: run the make command.
Output of command make:

$ make  
making all in crypto...
        ( echo "#ifndef MK1MF_BUILD";  echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */';  echo '  #define CFLAGS "cc -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE -DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM"';  echo '  #define PLATFORM "aix-cc"';  echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\"";  echo '#endif' ) >buildinf.h
        cc -I. -I.. -I../include  -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE -DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM -c cryptlib.c
cc: unrecognized option '-qthreaded'
cc: unrecognized option '-q32'
cc: unrecognized option '-qmaxmem=16384'
cc: unrecognized option '-qro'
cc: unrecognized option '-qroconst'  

I don't know what's wrong.
I'm using gcc version 4.2.0 and cc has a softlink to gcc.
Should I try copying the Makefile file from the server where it works?

Answers


Zsigmond Lőrinczy February 2016

I'll try the previous comments: gcc doesn't really understands xlc's options, use either this:

./Configure -–prefix=/appl/peoplesoft/apache/openssl -maix32 \
... aix-gcc

or

./Configure -–prefix=/appl/peoplesoft/apache/openssl -maix64 \
... aix64-gcc

Where ... is the set of compiler/linker options you can think of, eg:

-mtune=native -pthread -lpthreads -Wl,-brtl 

Post Status

Asked in February 2016
Viewed 1,564 times
Voted 12
Answered 1 times

Search




Leave an answer