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

Regression: Hard coded paths in apxs tool prevent building custom modules

XMLWordPrintable

    • +
    • Hide

      [root@rhel7 httpd]# export JBCS_HOME=/tmp/1/jbcs-httpd24-2.4
      [root@rhel7 httpd]# ./.postinstall
      [root@rhel7 httpd]# sbin/apxs -n mod_test -g
      Creating [DIR] mod_test
      Creating [FILE] mod_test/Makefile
      Creating [FILE] mod_test/modules.mk
      Creating [FILE] mod_test/mod_mod_test.c
      Creating [FILE] mod_test/.deps
      [root@rhel7 httpd]# cd mod_test/
      [root@rhel7 mod_test]# make
      /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DAP_SERVER_SERVICE_PACK= -DAP_SERVER_RELEASE_NUMBER=-33 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I. -I/usr/include/apr-1 -I/opt/rh/jbcs-httpd24/root/usr/include -I/opt/rh/jbcs-httpd24/root/include -prefer-pic -c mod_mod_test.c && touch mod_mod_test.slo
      mod_mod_test.c:40:19: fatal error: httpd.h: No such file or directory
      #include "httpd.h"
      ^
      compilation terminated.
      make: *** [mod_mod_test.slo] Error 1

      When same steps executed for GA it passes.

      Show
      [root@rhel7 httpd] # export JBCS_HOME=/tmp/1/jbcs-httpd24-2.4 [root@rhel7 httpd] # ./.postinstall [root@rhel7 httpd] # sbin/apxs -n mod_test -g Creating [DIR] mod_test Creating [FILE] mod_test/Makefile Creating [FILE] mod_test/modules.mk Creating [FILE] mod_test/mod_mod_test.c Creating [FILE] mod_test/.deps [root@rhel7 httpd] # cd mod_test/ [root@rhel7 mod_test] # make /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DAP_SERVER_SERVICE_PACK= -DAP_SERVER_RELEASE_NUMBER=-33 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I. -I/usr/include/apr-1 -I/opt/rh/jbcs-httpd24/root/usr/include -I/opt/rh/jbcs-httpd24/root/include -prefer-pic -c mod_mod_test.c && touch mod_mod_test.slo mod_mod_test.c:40:19: fatal error: httpd.h: No such file or directory #include "httpd.h" ^ compilation terminated. make: *** [mod_mod_test.slo] Error 1 When same steps executed for GA it passes.

      It seems that we are again hit by JBCS: 446 Hard coded paths in apxs tool prevent building custom modules

      It seems that clearly the JBCS_HOME var is not used.

            pprokopi@redhat.com Petros Marios Prokopiou (Inactive)
            preichl@redhat.com Pavel Reichl
            Pavel Reichl Pavel Reichl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: