You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nicholas Schuetz <ni...@thelinuxshack.com> on 2008/09/10 22:57:58 UTC

Problems Configuring APR Based Native Libraries for Tomcat

I am trying to compile APR native library for Tomcat. When I run the
configure I get messages like this:

# ./configure --prefix=/opt/tomcat/apr-connector
--with-apr=/usr/bin/apr-1-config --with-ssl=/usr
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.12
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/java/latest from environment
checking Java platform... checking Java platform...
checking for sablevm... NONE
 adding "-I/usr/java/latest/include" to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
 adding "-I/usr/java/latest/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... 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/lib and /usr/include
checking OpenSSL library version... 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/lib/libapr-1.la  -lpthread -ldl"
./configure: line 4315: APR_INCLUDES: command not found
./configure: line 4316: APR_LIBS: command not found
./configure: line 4317: APR_LIB_TARGET: command not found
./configure: line 4318: APR_SO_EXT: command not found
./configure: line 4319: BASH: command not found
./configure: line 4320: BASH_ARGC: command not found
./configure: line 4321: BASH_ARGV: command not found
./configure: line 4322: BASH_LINENO: command not found
--- SNIP ---

In http://tomcat.apache.org/tomcat-6.0-doc/apr.html  I see the
following requirement:

   * JNI headers from Java compatible JDK 1.4+

Where do I get those JNI headers? I'm using Sun JDK 1.6.0_06 and I
don't see them in the include/linux dir.

Is anyone out there using the APR based Native library for Tomcat?
Will it change my life?

---------------------------------------------------------------------
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


Re: Problems Configuring APR Based Native Libraries for Tomcat

Posted by Nicholas Schuetz <ni...@thelinuxshack.com>.
Thanks for the info, Rainer. So will it change my life? :)

On Wed, Sep 10, 2008 at 4:31 PM, Rainer Jung <ra...@kippdata.de> wrote:
> Nicholas Schuetz schrieb:
>> I am trying to compile APR native library for Tomcat. When I run the
>> configure I get messages like this:
>>
>> # ./configure --prefix=/opt/tomcat/apr-connector
>> --with-apr=/usr/bin/apr-1-config --with-ssl=/usr
>> 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.12
>> 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/java/latest from environment
>> checking Java platform... checking Java platform...
>> checking for sablevm... NONE
>>  adding "-I/usr/java/latest/include" to TCNATIVE_PRIV_INCLUDES
>> checking os_type directory...  linux
>>  adding "-I/usr/java/latest/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... 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/lib and /usr/include
>> checking OpenSSL library version... 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/lib/libapr-1.la  -lpthread -ldl"
>> ./configure: line 4315: APR_INCLUDES: command not found
>> ./configure: line 4316: APR_LIBS: command not found
>> ./configure: line 4317: APR_LIB_TARGET: command not found
>> ./configure: line 4318: APR_SO_EXT: command not found
>> ./configure: line 4319: BASH: command not found
>> ./configure: line 4320: BASH_ARGC: command not found
>> ./configure: line 4321: BASH_ARGV: command not found
>> ./configure: line 4322: BASH_LINENO: command not found
>> --- SNIP ---
>>
>> In http://tomcat.apache.org/tomcat-6.0-doc/apr.html  I see the
>> following requirement:
>>
>>    * JNI headers from Java compatible JDK 1.4+
>>
>> Where do I get those JNI headers? I'm using Sun JDK 1.6.0_06 and I
>> don't see them in the include/linux dir.
>>
>> Is anyone out there using the APR based Native library for Tomcat?
>> Will it change my life?
>
> See:
>
> http://marc.info/?t=120171192500012&r=1&w=2
>
> Should be fixed in 1.1.13+. 1.1.14 is available for download, 1.1.15
> will be there very soon.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> 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
>
>

---------------------------------------------------------------------
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


Re: Problems Configuring APR Based Native Libraries for Tomcat

Posted by Rainer Jung <ra...@kippdata.de>.
Nicholas Schuetz schrieb:
> I am trying to compile APR native library for Tomcat. When I run the
> configure I get messages like this:
> 
> # ./configure --prefix=/opt/tomcat/apr-connector
> --with-apr=/usr/bin/apr-1-config --with-ssl=/usr
> 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.12
> 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/java/latest from environment
> checking Java platform... checking Java platform...
> checking for sablevm... NONE
>  adding "-I/usr/java/latest/include" to TCNATIVE_PRIV_INCLUDES
> checking os_type directory...  linux
>  adding "-I/usr/java/latest/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... 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/lib and /usr/include
> checking OpenSSL library version... 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/lib/libapr-1.la  -lpthread -ldl"
> ./configure: line 4315: APR_INCLUDES: command not found
> ./configure: line 4316: APR_LIBS: command not found
> ./configure: line 4317: APR_LIB_TARGET: command not found
> ./configure: line 4318: APR_SO_EXT: command not found
> ./configure: line 4319: BASH: command not found
> ./configure: line 4320: BASH_ARGC: command not found
> ./configure: line 4321: BASH_ARGV: command not found
> ./configure: line 4322: BASH_LINENO: command not found
> --- SNIP ---
> 
> In http://tomcat.apache.org/tomcat-6.0-doc/apr.html  I see the
> following requirement:
> 
>    * JNI headers from Java compatible JDK 1.4+
> 
> Where do I get those JNI headers? I'm using Sun JDK 1.6.0_06 and I
> don't see them in the include/linux dir.
> 
> Is anyone out there using the APR based Native library for Tomcat?
> Will it change my life?

See:

http://marc.info/?t=120171192500012&r=1&w=2

Should be fixed in 1.1.13+. 1.1.14 is available for download, 1.1.15
will be there very soon.

Regards,

Rainer

---------------------------------------------------------------------
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