commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DAEMON-255) jsvc cannot find libcap.so on rhel
Date Wed, 21 Nov 2012 08:17:59 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mladen Turk resolved DAEMON-255.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.11

Fixed in the trunk and will be part of 1.0.11
Now we favor search for /lib64/libcap.* /usr/lib64/libcap.* in case the jsvc is compiled as
64-bit
                
> 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
>             Fix For: 1.0.11
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message