You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/08/12 14:45:17 UTC

[Bug 59996] New: tcnative.m4 always refers to lib directory

https://bz.apache.org/bugzilla/show_bug.cgi?id=59996

            Bug ID: 59996
           Summary: tcnative.m4 always refers to lib directory
           Product: Tomcat Native
           Version: 1.2.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Library
          Assignee: dev@tomcat.apache.org
          Reporter: csutherl@redhat.com

When building tomcat-native on a 64-bit system and using a 64-bit openssl
distribution that isn't the in the /usr directory tcnative always generates a
configure script that references /lib instead of /lib64.

To reproduce:

1) Build openssl locally (for example, /tmp/openssl) or you can just point to a
random directory like /tmp/test that has a lib64 subdirectory (you don't need
to build to reproduce)
2) Run buildconf to generate `configure`
3) Execute configure and observe output:

$ ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=$JAVA_HOME
--with-ssl=/tmp/openssl --prefix=/dist | grep "using openssl from"
checking for OpenSSL library... using openssl from /tmp/openssl/lib and
/tmp/openssl/include

This causes an invalid path to be configured into rpath for 64-bit machines and
prevents 64-bit distributions of tcnative that install in openssl non-standard
locations from working as expected (which is referencing the correct openssl
distribution).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59996] tcnative.m4 always refers to lib directory

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59996

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Fixed for 1.2.11 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59996] tcnative.m4 always refers to lib directory

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59996

--- Comment #1 from Coty Sutherland <cs...@redhat.com> ---
Created attachment 34143
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34143&action=edit
patch proposal

This patch adds a test for $use_openssl/lib64 and if it succeeds, updates the
lib directory in use to be lib64 instead of lib. It defaults to lib if lib64 is
not present.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org