tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: Installing APR on Fedora
Date Thu, 16 Aug 2007 02:04:30 GMT
Hi Hassan and Stephen,

Thanks for all the tips :-)

I have a lot more progress now!  I get the following (The only important part is the bottom
i think):

[root@ole native]# ./configure --with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/ && make
&& make install
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.10
checking for chosen layout... tcnative
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/lib/jvm/java from environment
checking Java platform... checking Java platform...
checking for sablevm... NONE
  adding "-I/usr/lib/jvm/java/include" to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
  adding "-I/usr/lib/jvm/java/include/linux" to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether gcc accepts -g... no
checking for gcc option to accept ANSI C... none needed
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
  setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
  setting CFLAGS to "-DHAVE_OPENSSL"
  setting TCNATIVE_LIBS to ""
  setting TCNATIVE_LIBS to " /home/ole/rpmbuild/BUILD/apr-1.2.8/libapr-1.la -luuid -lcrypt
 -lpthread -ldl"
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands
make[1]: Entering directory `/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native'
make[1]: Nothing to be done for `local-all'.
make[1]: Leaving directory `/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native'
make[1]: Entering directory `/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native'
make[1]: Nothing to be done for `local-all'.
make[1]: Leaving directory `/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native'
/home/ole/rpmbuild/BUILD/apr-1.2.8/build/mkdir.sh /usr/local/apr/include/apr-1 /usr/local/apr/lib/pkgconfig
\
                     /usr/local/apr/lib /usr/local/apr/bin
/usr/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
/bin/sh /home/ole/rpmbuild/BUILD/apr-1.2.8/libtool --mode=install /usr/bin/install -c -m 755
libtcnative-1.la /usr/local/apr/lib
libtool: install: warning: relinking `libtcnative-1.la'

>>>>>..I'm chiming in here.  I think it's talking about this command at the
bottom...

(cd /home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native; /bin/sh /home/ole/rpmbuild/BUILD/apr-1.2.8/libtool
 --silent --mode=relink gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
-DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_OPENSSL
-I/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native/include -I/usr/lib/jvm/java/include
-I/usr/lib/jvm/java/include/linux -I/home/ole/rpmbuild/BUILD/apr-1.2.8/include -version-info
1:10:1 -o libtcnative-1.la -rpath /usr/local/apr/lib src/user.lo src/sslinfo.lo src/ssl.lo
src/stdlib.lo src/os.lo src/file.lo src/thread.lo src/poll.lo src/sslcontext.lo src/ss
etwork.lo src/lock.lo src/misc.lo src/shm.lo src/proc.lo src/sslutils.lo src/address.lo src/network.lo
src/info.lo src/jnilib.lo src/multicast.lo src/error.lo src/dir.lo src/pool.lo src/mmap.lo
os/unix/uxpipe.lo os/unix/system.lo -lssl -lcrypto /home/ole/rpmbuild/BUILD/apr-1.2.8/libapr-1.la
-luuid -lcrypt -lpthread -ldl )
/usr/bin/ld: cannot find -lapr-1
collect2: ld returned 1 exit status
libtool: install: error: relink `libtcnative-1.la' with the above command before installing
it
make: *** [install] Error 1

Any idea what this means?

I tried running this part again by itself:

(cd /home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native; /bin/sh /home/ole/rpmbuild/BUILD/apr-1.2.8/libtool
 --silent --mode=relink gcc -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
-DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_OPENSSL
-I/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native/include -I/usr/lib/jvm/java/include
-I/usr/lib/jvm/java/include/linux -I/home/ole/rpmbuild/BUILD/apr-1.2.8/include -version-info
1:10:1 -o libtcnative-1.la -rpath /usr/local/apr/lib src/user.lo src/sslinfo.lo src/ssl.lo
src/stdlib.lo src/os.lo src/file.lo src/thread.lo src/poll.lo src/sslcontext.lo src/ss
etwork.lo src/lock.lo src/misc.lo src/shm.lo src/proc.lo src/sslutils.lo src/address.lo src/network.lo
src/info.lo src/jnilib.lo src/multicast.lo src/error.lo src/dir.lo src/pool.lo src/mmap.lo
os/unix/uxpipe.lo os/unix/system.lo -lssl -lcrypto /home/ole/rpmbuild/BUILD/apr-1.2.8/libapr-1.la
-luuid -lcrypt -lpthread -ldl )

But I get:

bash: etwork.lo: command not found.  I thought maybe it was supposed to be network.lo, so
I tried that as well, but it just gives me network.lo not found.  So I tried src/network.lo
and this works (I had to make network.lo executable).  But when I now run make install I get
this:

/usr/bin/ld: cannot find -lapr-1
collect2: ld returned 1 exit status
libtool: install: error: relink `libtcnative-1.la' with the above command before installing
it
make: *** [install] Error 1

Yes!  The hamster made it all the way around.

Thoughts?  

Thanks again for all the help,
- Ole






Stephen.Morris@nab.com.au wrote:
> Hi Ole,
>         I may be wrong but I think the command, based on what you have 
> listed below, should have been:
> 
>                  ./configure --with-apr=/usr/lib/ && make && make install
> 
>         The other problem that I think you have is that given you are 
> compiling, I think it is looking for the source & header for apr, hence 
> depending on how your distribution does things you may need the apr-devel 
> packages. The naming conventions that my distribution uses indicates that 
> the apr packages you have indicated are the binary files. Assuming you are 
> compiling Tomcat all that may be necessary is to copy the .so files that 
> provide the apr api's into the appropriate Tomcat lib directory depending 
> on which version of Tomcat you are trying to use.
> 
> Stephen Morris 
> Security Technician, IT Security Access Management 
> Technology Security & Risk, National Australia Bank 
> 
> Level 8, 800 Bourke St, Melbourne VIC 3000 
> Tel: +61 (0) 3 8634 1755   |  Mob: 0438 537 569 
> Email: Stephen.Morris@nab.com.au 
> 
> 
> 
> 
> Ole Ersoy <ole.ersoy@gmail.com> 
> 16/08/2007 08:02 AM
> Please respond to
> "Tomcat Users List" <users@tomcat.apache.org>
> 
> 
> To
> users@tomcat.apache.org
> cc
> 
> Subject
> Installing APR on Fedora
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I'm trying to get the APR native capabilities working on Fedora.  I first 
> checked that apr and opensll was installed like this:
> 
> [ole@ole ~]$ rpm -qa | grep apr
> apr-util-1.2.8-7
> apr-1.2.8-6
> 
> [root@ole native]# rpm -qa | grep openssl
> openssl-0.9.8b-12.fc7
> openssl-devel-0.9.8b-12.fc7
> 
> 
> Then I try to compile like this:
> 
> [root@ole native]# ./configure && make && make install 
> --with-apr=/usr/lib/
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for working mkdir -p... yes
> Tomcat Native Version: 1.1.10
> checking for chosen layout... tcnative
> checking for APR... no
> configure: error: APR could not be located. Please use the --with-apr 
> option.
> [root@ole native]# 
> 
> And like this:
> 
> [root@ole native]# ./configure && make && make install 
> --with-apr=/usr/lib/apr-util-1/
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for working mkdir -p... yes
> Tomcat Native Version: 1.1.10
> checking for chosen layout... tcnative
> checking for APR... no
> configure: error: APR could not be located. Please use the --with-apr 
> option.
> [root@ole native]# 
> 
> Anyone have any ideas on how to fix this?
> 
> Thanks,
> - Ole
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 
> National Australia Bank Ltd - ABN 12 004 044 937
> This email may contain confidential information. If you are not the intended recipient,
please immediately notify us at postmaster@nab.com.au or by replying to the sender, and then
destroy all copies of this email. Except where this email indicates otherwise, views expressed
in this email are those of the sender and not of National Australia Bank Ltd. Advice in this
email does not take account of your objectives, financial situation, or needs. It is important
for you to consider these matters and, if the e-mail refers to a product(s), you should read
the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any
decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe"
in the subject line to Unsubscriptions@nab.com.au in order to stop marketing emails from this
sender. National Australia Bank Ltd does not represent that this email is free of errors,
viruses or interference.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message