Topic: Centos Build

I'm trying to compile/install wolfSSL embedded SSL on two systems running different versions of linux,
one is a old Red Hat i386 with gcc version 3.2.2 and second is Redhat CentOS 5.5 with
gcc version 4.1.2, this is the configure command on both systems:
./configure --enable-debug --enable-dtls --enable-opensslextra --enable-hugecache --enable-aesni --enable-static --prefix=/usr/local/

Output from that command (both systems) show:

Generating user options header...
option w/o begin -D is -g, not saving to wolfssl/options.h
option w/o begin -D is -pthread, not saving to wolfssl/options.h
option w/o begin -D is -maes, not saving to wolfssl/options.h
option w/o begin -D is -msse4, not saving to wolfssl/options.h
option w/o begin -D is -Wall, not saving to wolfssl/options.h
option w/o begin -D is -Wno-unused, not saving to wolfssl/options.h

and make stops immediately with:

[root@lunaserver wolfssl-2.8.0]# make
make -j3  all-am
make[1]: Entering directory `/root/wolfssl-2.8.0'
  CC       src/src_libwolfssl_la-internal.lo
  CC       src/src_libwolfssl_la-io.lo
  CC       src/src_libwolfssl_la-keys.lo
cc1: error: unrecognized command line option "-maes"
cc1: error: unrecognized command line option "-msse4"
make[1]: *** [src/src_libwolfssl_la-internal.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-maes"
cc1: error: unrecognized command line option "-msse4"
make[1]: *** [src/src_libwolfssl_la-io.lo] Error 1
cc1: error: unrecognized command line option "-maes"
cc1: error: unrecognized command line option "-msse4"
make[1]: *** [src/src_libwolfssl_la-keys.lo] Error 1
make[1]: Leaving directory `/root/wolfssl-2.8.0'
make: *** [all] Error 2


On this system -msse4 is illegal, i can use -msse2, but have not find yet
how to replace that when running configure.

I appreciate any pointers on how to fiix this.

raymundo

Share

Re: Centos Build

Please disregard, Got help out of the forum.

Thanks

Share

Re: Centos Build

Just in case somebody else has a similar problem, you have to disable
aes-ni, add the flag --disable-aesni to configure

raymundo

Share

Re: Centos Build

geek-mx wrote:

Just in case somebody else has a similar problem, you have to disable
aes-ni, add the flag --disable-aesni to configure

raymundo

Just to clarify, does it work if you leave out both --disable-aesni and --enable-aesni? AES-NI support is disabled by default.