Tomcat
64bit
APR
tomcat-native

How to install tomcat native APR / tomcat 7.0.82 on Oracle Linux 7.x 64bit

install tomcat-native Tomcat 7.0.82

  • note : if 64 bit OS
./configure "CFLAGS=-m64" "CXXFLAGS=-m64" "LDFLAGS=-m64"

otherwise you may encounter java errors : hs_err_pidXXXX.log like

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 3145728 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2640), pid=4858, tid=0x00007f670c918700
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fca8d028b5e, pid=3136, tid=0x00007fca976d2700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libtcnative-1.so.0.2.14+0x16b5e]  Java_org_apache_tomcat_jni_Socket_sendbb+0x7e

install tomcat-native

# cd /usr/share/tomcat/bin

# tar zxvf tomcat-native.tar.gz 
tomcat-native-1.2.14-src/
tomcat-native-1.2.14-src/build.properties.default
tomcat-native-1.2.14-src/build.xml
tomcat-native-1.2.14-src/CHANGELOG.txt
tomcat-native-1.2.14-src/CMakeLists.txt
...
tomcat-native-1.2.14-src/xdocs/news/2017.xml
tomcat-native-1.2.14-src/xdocs/news/project.xml
tomcat-native-1.2.14-src/xdocs/project.xml
tomcat-native-1.2.14-src/xdocs/style.xsl

yum install (as needed)

# yum install apr-devel
# yum install openssl-devel
# yum install make gcc

configure with 64 bit option :ok: :heart_exclamation:


# cd tomcat-native-1.2.14-src/native

#./configure "CFLAGS=-m64" "CXXFLAGS=-m64" "LDFLAGS=-m64" 

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.2.14
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.4.8 detected.
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting LIBTOOL to "/usr/lib64/apr-1/build/libtool"
  adding "-I/usr/java/latest/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory...  linux
  adding "-I/usr/java/latest/include/linux" to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/${exec_prefix}/lib and /usr/include
checking OpenSSL library version >= 1.0.2... ok
checking for OpenSSL DSA support... yes
  setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
  adding "-DHAVE_OPENSSL" to CFLAGS
  setting TCNATIVE_LIBS to ""
  setting TCNATIVE_LIBS to " /usr/lib64/libapr-1.la  -lpthread -ldl"
  adding "-m64" to TCNATIVE_LDFLAGS
checking for apr_pollset_wakeup in -lapr-1... yes
  adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands

make

# make
make[1]: Entering directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch src/multicast.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslconf.lo -c src/sslconf.c && touch src/sslconf.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch src/sslcontext.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslnetwork.lo -c src/sslnetwork.c && touch src/sslnetwork.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslutils.lo -c src/sslutils.c && touch src/sslutils.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/stdlib.lo -c src/stdlib.c && touch src/stdlib.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/thread.lo -c src/thread.c && touch src/thread.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/user.lo -c src/user.c && touch src/user.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o os/unix/system.lo -c os/unix/system.c && touch os/unix/system.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o os/unix/uxpipe.lo -c os/unix/uxpipe.c && touch os/unix/uxpipe.lo
/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   -m64 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP   -I./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -version-info 2:14: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/sslconf.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 -lssl -lcrypto -m64  /usr/lib64/libapr-1.la  -lpthread -ldl
make[1]: Leaving directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'

make install


# make install

make[1]: Entering directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'
make[1]: Nothing to be done for `local-all'.
make[1]: Leaving directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'
/usr/lib64/apr-1/build/mkdir.sh /usr/local/apr/include/apr-1 /usr/local/apr/lib/pkgconfig \
         /usr/local/apr/lib /usr/local/apr/bin
/bin/install -c -m 644 tcnative.pc /usr/local/apr/lib/pkgconfig/tcnative-1.pc
list=''; for i in $list; do \
    ( cd $i ; make DESTDIR= install ); \
done
/usr/lib64/apr-1/build/libtool --mode=install /bin/install -c -m 755 libtcnative-1.la /usr/local/apr/lib
libtool: install: /bin/install -c -m 755 .libs/libtcnative-1.so.0.2.14 /usr/local/apr/lib/libtcnative-1.so.0.2.14
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libtcnative-1.so.0.2.14 libtcnative-1.so.0 || { rm -f libtcnative-1.so.0 && ln -s libtcnative-1.so.0.2.14 libtcnative-1.so.0; }; })
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libtcnative-1.so.0.2.14 libtcnative-1.so || { rm -f libtcnative-1.so && ln -s libtcnative-1.so.0.2.14 libtcnative-1.so; }; })
libtool: install: /bin/install -c -m 755 .libs/libtcnative-1.lai /usr/local/apr/lib/libtcnative-1.la
libtool: install: /bin/install -c -m 755 .libs/libtcnative-1.a /usr/local/apr/lib/libtcnative-1.a
libtool: install: chmod 644 /usr/local/apr/lib/libtcnative-1.a
libtool: install: ranlib /usr/local/apr/lib/libtcnative-1.a
libtool: finish: PATH="/usr/lib/oracle/11.2/client64/bin:/root/bin:/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/apr/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

edit tomcat.conf

LD_LIBRARY_PATH="/usr/lib/oracle/11.2/client64/lib:/usr/local/apr/lib:${LD_LIBRARY_PATH}"

before

woAPR.jpg

after

withAPR.jpg

cf. Apache Portable Runtime and Apache Tomcat® Native Troubleshooting https://rabamirezzan.blogspot.com/2017/11/apache-portable-runtime-and-apache.html

without "CFLAGS=-m64" "CXXFLAGS=-m64" "LDFLAGS=-m64" :ng: :cry:


# cd tomcat-native-1.2.14-src/native

# ./configure

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.2.14
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.4.8 detected.
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting LIBTOOL to "/usr/lib64/apr-1/build/libtool"
  adding "-I/usr/java/latest/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory...  linux
  adding "-I/usr/java/latest/include/linux" to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/${exec_prefix}/lib and /usr/include
checking OpenSSL library version >= 1.0.2... ok
checking for OpenSSL DSA support... yes
  setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
  adding "-DHAVE_OPENSSL" to CFLAGS
  setting TCNATIVE_LIBS to ""
  setting TCNATIVE_LIBS to " /usr/lib64/libapr-1.la  -lpthread -ldl"
checking for apr_pollset_wakeup in -lapr-1... yes
  adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands

make without "CFLAGS=-m64" "CXXFLAGS=-m64" "LDFLAGS=-m64" :ng: :cry:

# make
make[1]: Entering directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch src/multicast.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslconf.lo -c src/sslconf.c && touch src/sslconf.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch src/sslcontext.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslnetwork.lo -c src/sslnetwork.c && touch src/sslnetwork.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/sslutils.lo -c src/sslutils.c && touch src/sslutils.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/stdlib.lo -c src/stdlib.c && touch src/stdlib.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/thread.lo -c src/thread.c && touch src/thread.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o src/user.lo -c src/user.c && touch src/user.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o os/unix/system.lo -c os/unix/system.c && touch os/unix/system.lo
/usr/lib64/apr-1/build/libtool --silent --mode=compile 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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -o os/unix/uxpipe.lo -c os/unix/uxpipe.c && touch os/unix/uxpipe.lo
/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./include -I/usr/java/latest/include -I/usr/java/latest/include/linux  -I/usr/include/apr-1   -version-info 2:14: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/sslconf.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 -lssl -lcrypto  /usr/lib64/libapr-1.la  -lpthread -ldl
make[1]: Leaving directory `/usr/share/tomcat/bin/tomcat-native-1.2.14-src/native'