You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/23 20:00:32 UTC

DO NOT REPLY [Bug 19255] New: - connectors/jk/build.properties does not accept relative paths for apache2.home

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19255>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19255

connectors/jk/build.properties does not accept relative paths for apache2.home

           Summary: connectors/jk/build.properties does not accept relative
                    paths for apache2.home
           Product: Tomcat 4
           Version: 4.1.24
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Other
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: marcs@znep.com


if you use a relative path for apache2.home, things end up failing.  This is
despite the fact that relative paths are used in the example for other
properties.  It is not nice to have to hardcode full paths in properties files.

Example:

marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ grep
^apache2.home build.properties
apache2.home=/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/../../../httpd/httpd-2.0.45/
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ ant clean-native
 # using fixed target to actually clean
Buildfile: build.xml

clean-native:

clean:
   [delete] Deleting directory
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/build/jk

clean:
   [delete] Deleting 170 files from
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/build/jk2

BUILD SUCCESSFUL
Total time: 1 second
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ ant native
Buildfile: build.xml
[...]
BUILD SUCCESSFUL

marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ # change
build.properties
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ grep
^apache2.home build.properties
apache2.home=../../../httpd/httpd-2.0.45/
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ ls -ld
../../../httpd/httpd-2.0.45/
drwxr-xr-x   15 marcs    users        4096 Apr 22 18:31 ../../../httpd/httpd-2.0.45/
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ ant clean-native
 # using fixed target to actually clean
Buildfile: build.xml

clean-native:

clean:
   [delete] Deleting directory
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/build/jk

clean:
   [delete] Deleting 170 files from
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/build/jk2

BUILD SUCCESSFUL
Total time: 1 second
marcs@sideswipe:~/work/vendor-src/jakarta-tomcat-connectors/jk$ ant native
Buildfile: build.xml

[...]
       [so] cc -c
-I/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/native/common
-I/export/home/marcs/work/vendor-src/httpd/httpd-2.0.45/include
-I/export/jdk/jdk1.4.1/jre/../include
-I/export/jdk/jdk1.4.1/jre/../include/linux -g -W -D_REENTRANT -DCHUNK_SIZE=4096
-DREUSE_WORKER -DUSE_APACHE_MD5
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
 -fPIC -DPIC -o
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/.libs/mod_jk.lo
       [so] StdErr:
       [so]
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c:70:24:
apu_compat.h: No such file or directory

[...]

BUILD FAILED
file:/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/native/build.xml:153:
Compile failed
/export/home/marcs/work/vendor-src/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org