From: "jean-frederic clere" <[EMAIL PROTECTED]> > Henri Gomez wrote: > > If Jean-Frederic, Mladen, Kurt (commiters) agreed, > > and if Gueunter, NorW and users didn't complain, I think > > I could tag tomorrow and prepare the 2.0.4 release > > I have a new problem on (one) FreeBSD: > +++ > if [ ! -d /usr/local/apr/include/apr-0 ]; then > /home/com5/jfc/tmp/apr-0.9.4/build/mkdir.sh /usr/local/apr/include/apr-0; fi; > mkdir /usr/local/apr > mkdir: /usr/local/apr: Permission denied > mkdir /usr/local/apr/include > mkdir: /usr/local/apr: No such file or directory > mkdir /usr/local/apr/include/apr-0 > mkdir: /usr/local/apr/include: No such file or directory > *** Error code 1 > > Stop in /home/com5/jfc/tmp/apr-0.9.4. > gmake: *** [apr-build] Error 1 > +++
It seems like you don't have the most recent support/jk_apr.m4. The current version sets the prefix to the --with-apr dir. > The make install of APR is not a good idea. A DESTDIR=...../build probably helps. > OK. I was trying to avoid hardcoding the location of libapr-0.a for the apache13 apxs build. It doesn't use libtool and needs to link to it. When apr is not installed, apr-config --link-ld doesn't generate the correct location for the library (it is missing the .libs). > Cheers > > Jean-Fredreric > The following patch doesn't install apr (and apr-util). It appends the /.libs to the --link-ld using sed. You or I can commit this or something like it tomorrow if you prefer not to install apr. Index: native2/Makefile.in =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/Makefile.in,v retrieving revision 1.6 diff -u -r1.6 Makefile.in --- native2/Makefile.in 10 Mar 2004 09:47:34 -0000 1.6 +++ native2/Makefile.in 18 Mar 2004 04:22:47 -0000 @@ -57,7 +57,6 @@ apr-build: ( cd @APR_DIR@ && make && cd @APR_UTIL_DIR@ && make ) - ( cd @APR_DIR@ && make install && cd @APR_UTIL_DIR@ && make install ) apr-clean: ( cd @APR_DIR@ && make clean && cd @APR_UTIL_DIR@ && make clean ) Index: native2/server/apache13/Makefile.apxs.in =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache13/Makefile.apxs.in,v retrieving revision 1.10 diff -u -r1.10 Makefile.apxs.in --- native2/server/apache13/Makefile.apxs.in 13 Feb 2004 21:38:26 -0000 1.10 +++ native2/server/apache13/Makefile.apxs.in 18 Mar 2004 04:22:47 -0000 @@ -7,8 +7,8 @@ [EMAIL PROTECTED]@ C_FILES=jk_service_apache13.c mod_jk2.c [EMAIL PROTECTED]@ [EMAIL PROTECTED]@/bin/apr-config --link-ld` [EMAIL PROTECTED]@/bin/apu-config --link-ld` [EMAIL PROTECTED]@/apr-config --link-ld | sed 's|@APR_DIR@|@APR_DIR@/.libs|'` [EMAIL PROTECTED]@/apu-config --link-ld | sed 's|@APR_UTIL_DIR@|@APR_UTIL_DIR@/.libs|'` ifneq ($(strip $(JAVA_HOME)),) JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS} @HAVE_JNI@ Index: support/jk_apr.m4 =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/support/jk_apr.m4,v retrieving revision 1.13 diff -u -r1.13 jk_apr.m4 --- support/jk_apr.m4 24 Feb 2004 08:41:40 -0000 1.13 +++ support/jk_apr.m4 18 Mar 2004 04:22:47 -0000 @@ -88,7 +88,7 @@ tempret="0" JK_EXEC( [tempret], - [${SHELL} ./configure --prefix=${APR_DIR} --with-installbuilddir=${APR_DIR}/instbuild --disable-shared ${APR_CONFIGURE_ARGS}], + [${SHELL} ./configure --disable-shared ${APR_CONFIGURE_ARGS}], [apr], [${APR_DIR}]) if ${TEST} "${tempret}" = "0"; then @@ -97,7 +97,7 @@ AC_MSG_ERROR(apr configure failed with ${tempret}) fi JK_APR_LIBNAME(apr_libname,${APR_DIR}) - APR_LDFLAGS="${APR_DIR}/lib/${apr_libname}" + APR_LDFLAGS="${APR_DIR}/${apr_libname}" APR_LIBDIR="" use_apr=true COMMON_APR_OBJECTS="\${COMMON_APR_OBJECTS}" @@ -154,7 +154,7 @@ tempret="0" JK_EXEC( [tempret], - [${SHELL} ./configure --prefix=${APR_UTIL_DIR} --with-apr=${APR_DIR}], + [${SHELL} ./configure --with-apr=${APR_DIR}], [apr-util], [${APR_UTIL_DIR}]) if ${TEST} "${tempret}" = "0"; then @@ -163,7 +163,7 @@ AC_MSG_ERROR(apr-util configure failed with ${tempret}) fi JK_APR_UTIL_LIBNAME(apr_util_libname,${APR_UTIL_DIR}) - APR_LDFLAGS="${APR_LDFLAGS} ${APR_UTIL_DIR}/lib/${apr_util_libname}" + APR_LDFLAGS="${APR_LDFLAGS} ${APR_UTIL_DIR}/${apr_util_libname}" APR_UTIL_LIBDIR="" use_apr=true COMMON_APR_OBJECTS="\${COMMON_APR_OBJECTS}"
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]