Estou tentando instalar o Tomcat 8.5 no RedHat Enterprise 7.2. Estou tendo problemas para compilar o Tomcat Native 1.2. O RedHat 7 envia o OpenSSL 1.01 e o Tomcat Native 1.2 precisa do OpenSSL 1.0.2, então eu tive que compilar o OpenSSL 1.0.2.
Então, quando eu corri o seguinte comando:
"./configure --with-ssl=/usr/local/ssl --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/java/default"
, recebo o seguinte erro ao tentar executar "make":
make[1]: Entering directory '/usr/local/tomcat/apache-tomcat-8.5.9/bin/tomcat-native-1.2.10-src/native'
/bin/sh /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP -I/usr/local/tomcat/apache-tomcat-8.5.9/bin/tomcat-native-1.2.10-src/native/include -I/usr/java/default/include -I/usr/java/default/include/linux -I/usr/local/ssl/include -I/usr/include/apr-1 -version-info 2:10:2 -Wl,-z,relro -o libtcnative-1.la -rpath /usr/local/apr/lib src/address.lo src/bb.lo src/dir.lo src/error.lo src/file.lo src/info.lo src/jnilib.lo src/lock.lo src/misc.lo src/mmap.lo src/multicast.lo src/network.lo src/os.lo src/poll.lo src/pool.lo src/proc.lo src/shm.lo src/ssl.lo src/sslcontext.lo src/sslinfo.lo src/sslnetwork.lo src/sslutils.lo src/stdlib.lo src/thread.lo src/user.lo os/unix/system.lo os/unix/uxpipe.lo -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib -lssl -lcrypto /usr/lib64/libapr-1.la -lpthread -ldl
/bin/ld: /usr/local/ssl/lib/libcrypto.a(ecp_nistz256.o): relocation R_X86_64_32 against '.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [libtcnative-1.la] Error 1
make[1]: Leaving directory '/usr/local/tomcat/apache-tomcat-8.5.9/bin/tomcat-native-1.2.10-src/native'
make: *** [all-recursive] Error 1
Eu tentei recompilar o OpenSSL 1.0.2 com -fPIC (./config -fPIC) Eu ainda estou recebendo o mesmo erro.
Alguém tem alguma ideia?
Obrigado!