I get following error:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libtcnative-1.la'
Current working directory /yogeshk/tomcat-native-1.1.16-src/jni/native
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive | sed s/-recursive//`; \
list='src os/unix '; \
for i in $list; do \
if test -f "$i/Makefile"; then \
target="$otarget"; \
echo "Making $target in $i"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-$target"; \
fi; \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test "$otarget" = "all" && test -z "libtcnative-1.la"; then \
made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
I have downloaded and compiled APR and OpenSSL libraries. And following ./configure command ran successfully.
./configure --with-java-home=/yogeshk/jdk64build/jdk --with-apr=/yogeshk/apr --with-ssl=/yogeshk/openssl