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

apxs or apr-1-config seems to be misconfigured and/or containing unexpected script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • httpd 2.4.37 ER3
    • httpd 2.4.37 ER2
    • httpd
    • ER3
    • +

      I needed to get httpd version from apxs, so I did what I used to do with 2.4.29:

      $ JBCS_HOME=/home/karm/JBCS/2.4.29.SP1/jbcs-httpd24-2.4 ./apxs -q HTTPD_VERSION
      
      2.4.29
      

      With our 2.4.37 ER2, the output is also the version, but then follows a strange garbage:

      $ JBCS_HOME=/home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4 ./apxs -q HTTPD_VERSION
      
      2.4.37
      /home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4/httpd/bin/apr-1-config: line 48: $'install: alter with care!\nlocation=installed\n\nshow_usage()\n{\n    cat << EOF\nUsage: apr-$APR_MAJOR_VERSION-config [OPTION]\n\nKnown values for OPTION are:\n  --prefix[=DIR]    change prefix to DIR\n  --bindir          print location where binaries are installed\n  --includedir      print location where headers are installed\n  --cc              print C compiler name\n  --cpp             print C preprocessor name and any required options\n  --cflags          print C compiler flags\n  --cppflags        print C preprocessor flags\n  --includes        print include information\n  --ldflags         print linker flags\n  --libs            print additional libraries to link against\n  --srcdir          print APR source directory\n  --installbuilddir print APR build helper directory\n  --link-ld         print link switch(es) for linking to APR\n  --link-libtool    print the libtool inputs for linking to APR\n  --shlib-path-var  print the name of the shared library path env var\n  --apr-la-file     print the path to the .la file, if available\n  --apr-so-ext      print the extensions of shared objects on this platform\n  --apr-lib-target  print the libtool target information\n  --apr-libtool     print the path to APRs': command not found
      /home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4/httpd/bin/apr-1-config: line 76: --version: command not found
      /home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4/httpd/bin/apr-1-config: line 192: syntax error near unexpected token `fi'
      /home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4/httpd/bin/apr-1-config: line 192: `    fi'
      Use of uninitialized value $apr_major_version in numeric lt (<) at ./apxs line 348.
      Use of uninitialized value $apr_major_version in numeric lt (<) at ./apxs line 363.
      

      I am leaving this as Major for the time being.

              pprokopi@redhat.com Petros Marios Prokopiou (Inactive)
              mbabacek1@redhat.com Karm Karm
              Karm Karm Karm Karm
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: