You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2020/01/09 06:56:43 UTC

[GitHub] [tomcat-native] martin-g opened a new pull request #6: Install libtcnative** files in $prefix/bin folder

martin-g opened a new pull request #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6
 
 
   $prefix == $CATALINA_HOME
   
   As explained by Remy Maucherat at https://markmail.org/message/3fb7o7xljawktilr the native libraries should be installed at $CATALINA_HOME/bin instead of $CATALINA_HOME/lib folder.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572435443
 
 
   @michael-o Care to explain why ? 
   Do you have a better solution ? 
   I didn't pushed directly the change but created PR because I am also not sure whether this is the right solution.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572466523
 
 
   @rmaucher If it is not useful, we should rather delete it than spreding FUD.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g closed pull request #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g closed pull request #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572474389
 
 
   > 
   > 
   > https://github.com/apache/tomcat-native/blob/66c8296137a80b35e24bda542bb2abb8d8dbae39/native/BUILDING#L76
   > explains how to build them but not how to make use of them in Tomcat.
   
   Do you consider this to be part of tcnative or Tomat itself? Strictly speaking, one can use tcnative ot access OpenSSL w/o Tomcat.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572428506
 
 
   Absolutely not fond of that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572902043
 
 
   Closing this PR since it is obvious the proposed change is wrong.
   The discussion will continue in the Bugzilla ticket.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572756670
 
 
   @martin-g, I will continue discussion on the BZ issue because it is not related to the change itself.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572462581
 
 
   I will into the issue more indepth this afternoon and get back to you.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572472341
 
 
   https://github.com/apache/tomcat-native/blob/66c8296137a80b35e24bda542bb2abb8d8dbae39/native/BUILDING#L76 explains how to build them but not how to make use of them in Tomcat.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572460792
 
 
   @michael-o The goal of the suggested change is to make libtcnative available for Tomcat.
   At the moment the documentation at https://tomcat.apache.org/native-doc/ suggests to use `--prefix=$CATALINA_HOME` and this installs the native library in $CATALINA_HOME/lib. Starting Tomcat without any additional work does not load APR because it does not check in `lib` folder.
   In the linked mailing list discussion Remy suggested to copy the files from `lib` to `bin` or to a folder that is in LD_LIBRARY_PATH.
   
   Your snippet above shows the libtcnative is properly linked to its dependencies but unless `/opt/ports/lib/hpux32` is in your library path it won't be visible for Tomcat.
   
   As I said in Bugzilla: if this change is wrong then we should probably improve the documentation.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o edited a comment on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o edited a comment on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572455786
 
 
   > 
   > 
   > @michael-o Care to explain why ?
   > Do you have a better solution ?
   > I didn't pushed directly the change but created PR because I am also not sure whether this is the right solution.
   
   I haven't looked into the scripts itself, but `./configure --libdir=...` should always do. If it does not, it needs to be fixed.
   
   This is how I compile `libtcnative` and it perfectly works:
   
   ```
   export PREFIX=/opt/ports
   export LIBDIR=$PREFIX/lib/hpux32
   ./configure --prefix=$PREFIX --libdir=$LIBDIR --with-ssl=/opt/openssl --with-apr=$PREFIX --with-java-home=/opt/java8
   ```
   
   ```
   $ ldd /opt/ports/lib/hpux32/libtcnative-1.so
   
   /opt/ports/lib/hpux32/libtcnative-1.so:
           libssl.so.1.0.0 =>      /usr/lib/hpux32/libssl.so.1.0.0
           libcrypto.so.1.0.0 =>   /usr/lib/hpux32/libcrypto.so.1.0.0
           libapr.so.6 =>  /opt/ports/lib/hpux32/libapr.so.6
           librt.so.1 =>   /usr/lib/hpux32/librt.so.1
           libm.so.1 =>    /usr/lib/hpux32/libm.so.1
           libpthread.so.1 =>      /usr/lib/hpux32/libpthread.so.1
           libc.so.1 =>    /usr/lib/hpux32/libc.so.1
           libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
           librt.so.1 =>   /usr/lib/hpux32/librt.so.1
           libm.so.1 =>    /usr/lib/hpux32/libm.so.1
           libpthread.so.1 =>      /usr/lib/hpux32/libpthread.so.1
           libc.so.1 =>    /usr/lib/hpux32/libc.so.1
           libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572455786
 
 
   > 
   > 
   > @michael-o Care to explain why ?
   > Do you have a better solution ?
   > I didn't pushed directly the change but created PR because I am also not sure whether this is the right solution.
   
   I haven't looked into the scripts itself, but `./configure --libdir=...` should always do. If it does not, it needs to be fixed.
   
   This is how I compile `libtcnative` and it perfectly works:
   
   ```
   export PREFIX=/opt/ports
   export LIBDIR=$PREFIX/lib/hpux32
   ./configure --prefix=$PREFIX --libdir=$LIBDIR --with-ssl=/opt/openssl --with-apr=$PREFIX --with-java-home=/opt/java8
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] rmaucher commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
rmaucher commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572464613
 
 
   This website doc is not very useful and less up to date, I have never actually read it and you should look at BUILDING instead. I find the ability to build directly into a Tomcat folder to be useless (I have to use multiple Tomcats) but if it makes you happy then I don't mind.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [tomcat-native] martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder

Posted by GitBox <gi...@apache.org>.
martin-g commented on issue #6: Install libtcnative** files in $prefix/bin folder
URL: https://github.com/apache/tomcat-native/pull/6#issuecomment-572436295
 
 
   I see now your comment in Bugzilla

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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