Compiling tomcat-native barfs

olli hauer ohauer at gmx.de
Mon May 16 20:13:37 UTC 2011


On 2011-05-16 21:04, Christer Solskogen wrote:
> loyal# make
> ===>  License check disabled, port has not defined LICENSE
> ===>  Extracting for tomcat-native-1.1.20_2
[...]
> /usr/obj/usr/ports/devel/apr1/work/apr-1.4.4/libtool: Can't open
> /usr/obj/usr/ports/devel/apr1/work/apr-1.4.4/libtool: No such file or
> directory
> *** Error code 2
> 
> Stop in /usr/obj/bjelle/usr/ports/www/tomcat-native/work/tomcat-native-1.1.20-src/jni/native.
> *** Error code 1
> 
> Stop in /usr/obj/bjelle/usr/ports/www/tomcat-native/work/tomcat-native-1.1.20-src/jni/native.
> *** Error code 1
> 
> Stop in /usr/ports/www/tomcat-native.
> 
> I wonder why apr wants to use libtool from its build directory.
> apr-ipv6-devrandom-gdbm-db42-1.4.4.1.3.11
> tomcat-native-1.1.20

The tomcat-native Makefile copies the old apr_rules.mk to the build/ directory.
In the file share/apr/build-1/apr_rules.mk a new variable was added and used
to construct paths during build time. In the install process this should be replaced
by the target dir but the new variable was forgotten to rewrite.

Quick fix for apr (just committed, copy to apr1/files)
This patch was send tu upstream
http://people.freebsd.org/~ohauer/diffs/patch-apr-1__Makefile.in


or change adjust in /usr/local/share/apr/build-1/apr_rules.mk

-top_builddir=/work/a/ports/devel/apr1/work/apr-1.4.4
+top_builddir=/usr/local/share/apr/build-1

(the old path will be different from yours)


Until now I haven't found any other port affected by this issue.


More information about the freebsd-ports mailing list