You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rainer Traut <tr...@gmx.de> on 2008/01/04 12:47:56 UTC

tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Hi,

I get many error msgs from this new thing; 1.1.10 was fine. I cut the 
rest of the lines with 'command not found'.

# ./configure --with-apr=/usr/local/apache2/ 
--with-ssl=/usr/include/openssl/
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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)... /opt/java from environment
checking Java platform... checking Java platform...
checking for sablevm... NONE
   adding "-I/opt/java/include" to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
   adding "-I/opt/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... 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/include/openssl//lib and /usr/include/openssl//include
checking OpenSSL library version... not compatible
checking for OpenSSL DSA support... no
   adding "-I/usr/include/openssl//include" to TCNATIVE_PRIV_INCLUDES
   setting TCNATIVE_LDFLAGS to "-L/usr/include/openssl//lib 
--Wl,-rpath,/usr/include/openssl//lib -lssl -lcrypto"
   adding "-DHAVE_OPENSSL" to CFLAGS
   setting TCNATIVE_LIBS to ""
   setting TCNATIVE_LIBS to " /usr/local/apache2/lib/libapr-1.la -luuid 
-lrt -lcrypt  -lpthread -ldl"
./configure: line 4315: APR_BUILD_DIR: command not found
./configure: line 4316: APR_INCLUDES: command not found
./configure: line 4317: APR_LIBS: command not found
./configure: line 4318: APR_LIB_TARGET: command not found
./configure: line 4319: APR_SO_EXT: command not found
./configure: line 4320: BASH: command not found
./configure: line 4321: BASH_ARGC: command not found
./configure: line 4322: BASH_ARGV: command not found
./configure: line 4323: BASH_LINENO: command not found
./configure: line 4324: BASH_SOURCE: command not found
...

Thx
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


Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Traut <tr...@gmx.de>.
Rainer Jung schrieb:
> Did you see my second post?
> 
Yes, but after I sent the reply.

---------------------------------------------------------------------
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: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Jung <ra...@kippdata.de>.
Did you see my second post?

Rainer Traut schrieb:
> Hi Rainer :)
> 
> Rainer Jung schrieb:
>> Hi Rainer,
>>
>> I can reproduce on Solaris.
>>
>> The first problem should be fixed by:
>>
>> --- configure.orig      2007-12-21 15:06:53.000000000 +0100
>> +++ configure   2008-01-04 14:16:13.000000000 +0100
> ...
> 
>>
>> --- build/tcnative.m4.orig      2008-01-04 14:18:10.000000000 +0100
>> +++ build/tcnative.m4   2008-01-04 14:16:05.000000000 +0100
> ...
> 
> First problem is fixed with your patch.
> 
> Second seems not; I'm no expert with this build stuff, here's what I did:
> - applied the second patch to tcnative.m4
> 
> - then:
> 
> # sh buildconf --with-apr=/usr/src/httpd-2.2.4
> 
> Looking for apr source in /usr/src/httpd-2.2.4
> Creating configure ...
> Generating 'make' outputs ...
> buildconf: line 76: /usr/src/httpd-2.2.4/build/gen-build.py: Datei oder
> Verzeichnis nicht gefunden
> rebuilding rpm spec file
> 
> - am I doing sth wrong here?
> 
> - again:
> 
> # ./configure --with-apr=/usr/local/apache2/
> --with-ssl=/usr/include/openssl/
> 
> - config.log:
> configure:3522: gcc -o conftest -g -O2 -I/usr/include/openssl/include
> conftest.c  -L/usr/include/openssl/lib
> --Wl,-rpath,/usr/include/openssl/lib -lssl -lcrypto >&5
> cc1: error: unrecognized command line option
> "-fWl,-rpath,/usr/include/openssl/lib"
> configure:3525: $? = 1
> configure: program exited with status 1
> 
> Thx
> 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


Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Traut <tr...@gmx.de>.
Hi Rainer :)

Rainer Jung schrieb:
> Hi Rainer,
> 
> I can reproduce on Solaris.
> 
> The first problem should be fixed by:
> 
> --- configure.orig      2007-12-21 15:06:53.000000000 +0100
> +++ configure   2008-01-04 14:16:13.000000000 +0100
...

> 
> --- build/tcnative.m4.orig      2008-01-04 14:18:10.000000000 +0100
> +++ build/tcnative.m4   2008-01-04 14:16:05.000000000 +0100
...

First problem is fixed with your patch.

Second seems not; I'm no expert with this build stuff, here's what I did:
- applied the second patch to tcnative.m4

- then:

# sh buildconf --with-apr=/usr/src/httpd-2.2.4

Looking for apr source in /usr/src/httpd-2.2.4
Creating configure ...
Generating 'make' outputs ...
buildconf: line 76: /usr/src/httpd-2.2.4/build/gen-build.py: Datei oder 
Verzeichnis nicht gefunden
rebuilding rpm spec file

- am I doing sth wrong here?

- again:

# ./configure --with-apr=/usr/local/apache2/ 
--with-ssl=/usr/include/openssl/

- config.log:
configure:3522: gcc -o conftest -g -O2 -I/usr/include/openssl/include 
conftest.c  -L/usr/include/openssl/lib 
--Wl,-rpath,/usr/include/openssl/lib -lssl -lcrypto >&5
cc1: error: unrecognized command line option 
"-fWl,-rpath,/usr/include/openssl/lib"
configure:3525: $? = 1
configure: program exited with status 1

Thx
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


Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Jung <ra...@kippdata.de>.
Hi Rainer,

I can reproduce on Solaris.

The first problem should be fixed by:

--- configure.orig      2007-12-21 15:06:53.000000000 +0100
+++ configure   2008-01-04 14:16:13.000000000 +0100
@@ -2490,7 +2490,7 @@
    { (exit 1); exit 1; }; }
   fi
   sapr_version="`echo $sapr_pversion|sed -e 's/\(a-z*\)$/.\1/'`"
-  IFS=.; set $sapr_version; IFS=' '
+  tc_save_IFS=$IFS; IFS=.; set $sapr_version; IFS=$tc_save_IFS
   if test "${1}" -lt "1"; then
     { { echo "$as_me:$LINENO: error: You need APR version 1.2.1 or
newer installed." >&5
 echo "$as_me: error: You need APR version 1.2.1 or newer installed." >&2;}

If you regenerate configure via buildconf, you need to also fix
build/tcnative.m4 analogously:

--- build/tcnative.m4.orig      2008-01-04 14:18:10.000000000 +0100
+++ build/tcnative.m4   2008-01-04 14:16:05.000000000 +0100
@@ -31,7 +31,7 @@
     AC_MSG_ERROR(APR config could not be located. Please use the
--with-apr option.)
   fi
   sapr_version="`echo $sapr_pversion|sed -e 's/\([a-z]*\)$/.\1/'`"
-  IFS=.; set $sapr_version; IFS=' '
+  tc_save_IFS=$IFS; IFS=.; set $sapr_version; IFS=$tc_save_IFS
   if test "${1}" -lt "1"; then
     AC_MSG_ERROR(You need APR version 1.2.1 or newer installed.)
   else

Does that also fix your second problem?

Regards,

Rainer (sic!)

Rainer Traut schrieb:
> Hi,
> 
> I get many error msgs from this new thing; 1.1.10 was fine. I cut the
> rest of the lines with 'command not found'.
> 
> # ./configure --with-apr=/usr/local/apache2/
> --with-ssl=/usr/include/openssl/
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-unknown-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)... /opt/java from environment
> checking Java platform... checking Java platform...
> checking for sablevm... NONE
>   adding "-I/opt/java/include" to TCNATIVE_PRIV_INCLUDES
> checking os_type directory...  linux
>   adding "-I/opt/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... 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/include/openssl//lib and /usr/include/openssl//include
> checking OpenSSL library version... not compatible
> checking for OpenSSL DSA support... no
>   adding "-I/usr/include/openssl//include" to TCNATIVE_PRIV_INCLUDES
>   setting TCNATIVE_LDFLAGS to "-L/usr/include/openssl//lib
> --Wl,-rpath,/usr/include/openssl//lib -lssl -lcrypto"
>   adding "-DHAVE_OPENSSL" to CFLAGS
>   setting TCNATIVE_LIBS to ""
>   setting TCNATIVE_LIBS to " /usr/local/apache2/lib/libapr-1.la -luuid
> -lrt -lcrypt  -lpthread -ldl"
> ./configure: line 4315: APR_BUILD_DIR: command not found
> ./configure: line 4316: APR_INCLUDES: command not found
> ./configure: line 4317: APR_LIBS: command not found
> ./configure: line 4318: APR_LIB_TARGET: command not found
> ./configure: line 4319: APR_SO_EXT: command not found
> ./configure: line 4320: BASH: command not found
> ./configure: line 4321: BASH_ARGC: command not found
> ./configure: line 4322: BASH_ARGV: command not found
> ./configure: line 4323: BASH_LINENO: command not found
> ./configure: line 4324: BASH_SOURCE: command not found
> ...
> 
> Thx
> 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: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Traut <tr...@gmx.de>.
Yes, this helps, everything fine now.

Thank you.
Rainer

Rainer Jung schrieb:
> Replace --Wl, by -Wl, in configure and build/tcnative.m4.
> 
> --- configure.orig      2007-12-21 15:06:53.000000000 +0100
> +++ configure   2008-01-04 14:41:51.000000000 +0100
> @@ -3936,7 +3936,7 @@
>                  TCN_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lssl
> -lcrypto"
>                  ;;
>              *linux*)
> -                TCN_OPENSSL_LIBS="-L$use_openssl/lib
> --Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
> +                TCN_OPENSSL_LIBS="-L$use_openssl/lib
> -Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
>                  ;;
>              *)
>                  TCN_OPENSSL_LIBS="-L$use_openssl/lib -lssl -lcrypto"
> 
> 
> --- build/tcnative.m4.orig      2008-01-04 14:18:10.000000000 +0100
> +++ build/tcnative.m4   2008-01-04 14:54:50.000000000 +0100
> @@ -336,7 +336,7 @@
>                  TCN_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lssl
> -lcrypto"
>                  ;;
>              *linux*)
> -                TCN_OPENSSL_LIBS="-L$use_openssl/lib
> --Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
> +                TCN_OPENSSL_LIBS="-L$use_openssl/lib
> -Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
>                  ;;
>              *)
>                  TCN_OPENSSL_LIBS="-L$use_openssl/lib -lssl -lcrypto"

---------------------------------------------------------------------
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: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Jung <ra...@kippdata.de>.
Replace --Wl, by -Wl, in configure and build/tcnative.m4.

--- configure.orig      2007-12-21 15:06:53.000000000 +0100
+++ configure   2008-01-04 14:41:51.000000000 +0100
@@ -3936,7 +3936,7 @@
                 TCN_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lssl
-lcrypto"
                 ;;
             *linux*)
-                TCN_OPENSSL_LIBS="-L$use_openssl/lib
--Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
+                TCN_OPENSSL_LIBS="-L$use_openssl/lib
-Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
                 ;;
             *)
                 TCN_OPENSSL_LIBS="-L$use_openssl/lib -lssl -lcrypto"


--- build/tcnative.m4.orig      2008-01-04 14:18:10.000000000 +0100
+++ build/tcnative.m4   2008-01-04 14:54:50.000000000 +0100
@@ -336,7 +336,7 @@
                 TCN_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lssl
-lcrypto"
                 ;;
             *linux*)
-                TCN_OPENSSL_LIBS="-L$use_openssl/lib
--Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
+                TCN_OPENSSL_LIBS="-L$use_openssl/lib
-Wl,-rpath,$use_openssl/lib -lssl -lcrypto"
                 ;;
             *)
                 TCN_OPENSSL_LIBS="-L$use_openssl/lib -lssl -lcrypto"

HTH

Rainer

Rainer Traut schrieb:
> Rainer Traut schrieb:
> 
>> I get many error msgs from this new thing; 1.1.10 was fine. I cut the
>> rest of the lines with 'command not found'.
>>
>> # ./configure --with-apr=/usr/local/apache2/
>> --with-ssl=/usr/include/openssl/
> ...
>> checking for OpenSSL library... using openssl from
>> /usr/include/openssl//lib and /usr/include/openssl//include
>> checking OpenSSL library version... not compatible
> ...
> 
>> ./configure: line 4316: APR_INCLUDES: command not found
>> ./configure: line 4317: APR_LIBS: command not found
>> ./configure: line 4318: APR_LIB_TARGET: command not found
>> ...
> 
> And even more in config.log regarding the openssl library problem.
> 
> configure:3961: checking OpenSSL library version
> configure:3995: gcc -o conftest -g -O2 -I/usr/include/openssl//include
>  conftest.c  -L/usr/include/openssl//lib
> --Wl,-rpath,/usr/include/openssl//lib -lssl -lcrypto >&5
> cc1: error: unrecognized command line option
> "-fWl,-rpath,/usr/include/openssl//lib"
> configure:3998: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | /* end confdefs.h.  */
> |
> | #include <stdio.h>
> | #include <openssl/opensslv.h>
> | int main() {
> |         if ((OPENSSL_VERSION_NUMBER >= 0x0090701fL &&
> |          OPENSSL_VERSION_NUMBER < 0x00908000L) ||
> |          OPENSSL_VERSION_NUMBER >= 0x0090802fL)
> |             return (0);
> |     printf("\n\nFound   OPENSSL_VERSION_NUMBER %#010x\n",
> |         OPENSSL_VERSION_NUMBER);
> |     printf("Require OPENSSL_VERSION_NUMBER 0x0090701f or greater
> (0.9.7a)\n"
> |            "Require OPENSSL_VERSION_NUMBER 0x0090802f or greater
> (0.9.8a)\n\n");
> |         return (1);
> | }

---------------------------------------------------------------------
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: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

Posted by Rainer Traut <tr...@gmx.de>.
Rainer Traut schrieb:

> I get many error msgs from this new thing; 1.1.10 was fine. I cut the 
> rest of the lines with 'command not found'.
> 
> # ./configure --with-apr=/usr/local/apache2/ 
> --with-ssl=/usr/include/openssl/
...
> checking for OpenSSL library... using openssl from 
> /usr/include/openssl//lib and /usr/include/openssl//include
> checking OpenSSL library version... not compatible
...

> ./configure: line 4316: APR_INCLUDES: command not found
> ./configure: line 4317: APR_LIBS: command not found
> ./configure: line 4318: APR_LIB_TARGET: command not found
> ...

And even more in config.log regarding the openssl library problem.

configure:3961: checking OpenSSL library version
configure:3995: gcc -o conftest -g -O2 -I/usr/include/openssl//include 
  conftest.c  -L/usr/include/openssl//lib 
--Wl,-rpath,/usr/include/openssl//lib -lssl -lcrypto >&5
cc1: error: unrecognized command line option 
"-fWl,-rpath,/usr/include/openssl//lib"
configure:3998: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| #include <stdio.h>
| #include <openssl/opensslv.h>
| int main() {
|         if ((OPENSSL_VERSION_NUMBER >= 0x0090701fL &&
|          OPENSSL_VERSION_NUMBER < 0x00908000L) ||
|          OPENSSL_VERSION_NUMBER >= 0x0090802fL)
|             return (0);
|     printf("\n\nFound   OPENSSL_VERSION_NUMBER %#010x\n",
|         OPENSSL_VERSION_NUMBER);
|     printf("Require OPENSSL_VERSION_NUMBER 0x0090701f or greater 
(0.9.7a)\n"
|            "Require OPENSSL_VERSION_NUMBER 0x0090802f or greater 
(0.9.8a)\n\n");
|         return (1);
| }



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