Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-252

httpd fails to start if apr/apr-util is installed prior to installing jbcs-httpd24-httpd

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • httpd 2.4.23 GA
    • httpd, rpm
    • Release Notes
    • Hide

      yum install jbcs-httpd24-httpd-devel

      Show
      yum install jbcs-httpd24-httpd-devel
    • Hide

      1) Install apr and apr-util:

      $ yum install apr apr-util -y
      

      2) Install jbcs-httpd24-httpd:

      $ yum install jbcs-httpd24-httpd -y
      

      3) Try to start the service (this is rhel-6 output, but the problem affects rhel-7 too it just manifests a bit differently):

      Starting httpd: /opt/rh/jbcs-httpd24/root/usr/sbin/httpd: symbol lookup error: /opt/rh/jbcs-httpd24/root/usr/sbin/httpd: undefined symbol: apr_crypto_init
                                                                 [FAILED]
      

      4) (Optional) You can verify that the linkages in the httpd binary are incorrect with ldd:

      # ldd /opt/rh/jbcs-httpd24/root/usr/sbin/httpd | grep apr
      	libaprutil-1.so.0 => /lib64/libaprutil-1.so.0 (0x00007fa5b5147000)
      	libapr-1.so.0 => /lib64/libapr-1.so.0 (0x00007fa5b492f000)
      

      The ldd output should look like this:

      # ldd /opt/rh/jbcs-httpd24/root/usr/sbin/httpd | grep apr
      	libaprutil-1.so.0 => /opt/rh/jbcs-httpd24/root/usr/lib64/libaprutil-1.so.0 (0x00007fe11191d000)
      	libapr-1.so.0 => /opt/rh/jbcs-httpd24/root/usr/lib64/libapr-1.so.0 (0x00007fe111100000)
      
      Show
      1) Install apr and apr-util: $ yum install apr apr-util -y 2) Install jbcs-httpd24-httpd: $ yum install jbcs-httpd24-httpd -y 3) Try to start the service (this is rhel-6 output, but the problem affects rhel-7 too it just manifests a bit differently): Starting httpd: /opt/rh/jbcs-httpd24/root/usr/sbin/httpd: symbol lookup error: /opt/rh/jbcs-httpd24/root/usr/sbin/httpd: undefined symbol: apr_crypto_init [FAILED] 4) (Optional) You can verify that the linkages in the httpd binary are incorrect with ldd: # ldd /opt/rh/jbcs-httpd24/root/usr/sbin/httpd | grep apr libaprutil-1.so.0 => /lib64/libaprutil-1.so.0 (0x00007fa5b5147000) libapr-1.so.0 => /lib64/libapr-1.so.0 (0x00007fa5b492f000) The ldd output should look like this: # ldd /opt/rh/jbcs-httpd24/root/usr/sbin/httpd | grep apr libaprutil-1.so.0 => /opt/rh/jbcs-httpd24/root/usr/lib64/libaprutil-1.so.0 (0x00007fe11191d000) libapr-1.so.0 => /opt/rh/jbcs-httpd24/root/usr/lib64/libapr-1.so.0 (0x00007fe111100000)

    Description

      The httpd service will not start if a user installs JBCS httpd on a system that already has apr and apr-util.

      Attachments

        Issue Links

          Activity

            People

              gzaronik@redhat.com George Zaronikas
              rhn-support-csutherl Coty Sutherland
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: