[ https://issues.apache.org/jira/browse/DAEMON-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436091#comment-13436091 ]
John Allison commented on DAEMON-255: ------------------------------------- Yes, adding the 64 bit locations seems to have worked: {{ static const char *libcap_locs[] = { "/lib64/libcap.so.2", "/lib64/libcap.so.1", "/lib64/libcap.so", "/lib/libcap.so.2", "/lib/libcap.so.1", "/lib/libcap.so", "/usr/lib64/libcap.so.2", "/usr/lib64/libcap.so.1", "/usr/lib64/libcap.so", "/usr/lib/libcap.so.2", "/usr/lib/libcap.so.1", "/usr/lib/libcap.so", NULL }; }} > jsvc cannot find libcap.so on rhel > ---------------------------------- > > Key: DAEMON-255 > URL: https://issues.apache.org/jira/browse/DAEMON-255 > Project: Commons Daemon > Issue Type: Bug > Components: Jsvc > Affects Versions: 1.0.10 > Environment: uname -a > Linux myhost 2.6.18-308.8.2.el5 #1 SMP Tue Jun 12 09:58:12 EDT 2012 x86_64 > x86_64 x86_64 GNU/Linux > cat /etc/redhat-release > CentOS release 5.8 (Final) > Reporter: John Allison > > Like DAEMON-242 , jsvc will not start: > {{ > Attemtping to load library /lib/libcap.so.2 > Attemtping to load library /lib/libcap.so.1 > Attemtping to load library /lib/libcap.so > Attemtping to load library /usr/lib/libcap.so.2 > Attemtping to load library /usr/lib/libcap.so.1 > Attemtping to load library /usr/lib/libcap.so > failed loading capabilities library -- /usr/lib/libcap.so: cannot open shared > object file: No such file or directory. > Cannot set group id for user 'tomcat' > set_user_group failed for user 'tomcat' > Service exit with a return value of 4 > }} > {{ > ls -l /lib*/libcap* /usr/*/libcap* > lrwxrwxrwx 1 root root 11 Sep 10 2007 /lib/libcap.so -> libcap.so.1 > lrwxrwxrwx 1 root root 14 Sep 10 2007 /lib/libcap.so.1 -> libcap.so.1.10 > -rwxr-xr-x 1 root root 11560 Mar 14 2007 /lib/libcap.so.1.10 > lrwxrwxrwx 1 root root 11 Sep 10 2007 /lib64/libcap.so -> libcap.so.1 > lrwxrwxrwx 1 root root 14 Sep 10 2007 /lib64/libcap.so.1 -> libcap.so.1.10 > -rwxr-xr-x 1 root root 17384 Mar 14 2007 /lib64/libcap.so.1.10 > }} > (formatting doesn't work: that's /usr/STAR/libcapSTAR in the ls) > If I symlink {{/usr/lib/libcap.so -> /lib64/libcap.so}} then it starts and > seems to work fine. This did not happen in 1.0.7 > Following issue links from DAEMON-242 I tried rerunning autoconf locally. But > there is no -lcap anywhere and ldd doesn't show it. > Perhaps you just need to add /lib64 into the dlopen loop? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira