Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-255

jsvc cannot find libcap.so on rhel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.10
    • 1.0.11
    • Jsvc
    • None
    • 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)

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jja@ucar.edu John Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: