www/mod_jk2 fails to build (Maintainer fix enclosed!)

www/mod_jk2 fails to build (Maintainer fix enclosed!)

Post by Larry Lansi » Wed, 02 Jul 2003 09:51:33

Quote:>Submitter-Id:       current-users
>Originator: Larry Lansing
>Organization:       AgileView Software Inc.
>Confidential:       no
>Synopsis:   www/mod_jk2 fails to build (Maintainer fix enclosed!)
>Severity:   non-critical
>Priority:   medium
>Category:   ports
>Class:              maintainer-update
>Release:    FreeBSD 5.0-CURRENT i386


Attempting to build mod_jk2 yields the following:

libtool: link: `../common/jk_ajp12_worker.lo' is not a valid libtool object


I could not reproduce this bug on 5.x, I received one report from
someone who did.  I wasn't aware of the problem until I started
receiving bug reports from people running 4.7 and 4.8.  If you attempt
to build mod_jk2 on 4.x, you should be able to repeat this bug 100% of
the time.


I found a one-line fix that seems to eliminate this problem for me.
Thanks go to the apache folks, who rolled this into one of the later
mod_jk versions.  I'll update the port to the latest version in the
near future.  Until then, please commit this fix.

Fix: replace the contents of www/mod_jk2/files/patch-configure.in with
the following:

--- configure.in.orig   Tue Dec 17 05:20:55 2002

                APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS`"
                APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
-                APACHE_CONFIG_VARS=${apache_dir}/build/config_vars.mk
+                APACHE_CONFIG_VARS=${prefix}/share/apache2/build/config_vars.mk
+                LIBTOOL=`$APXS -q LIBTOOL`
             AC_MSG_RESULT([building connector for \"$WEBSERVER\"])




1. mod_jk2 build error Tomcat+Apache

Solaris 8 or 9
Apache 2.0.50
Tomcat 5
jk2 2.0.4

Has anyone encountered this error when building the mod_jk2.so
Apache+Tomcat connector on Solaris 8 or 9?  How did you get around it?

***After ./configure when using make:
make: Fatal error in reader: Makefile, line 21: Unexpected end of line seen
make: Fatal error: Command failed for target `jk2-build'

****OR after ./configure when using gmake:
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1
*** Error code 1
make: Fatal error: Command failed for target `jk2-build'

It was suggested in a posting that the "end of line" error could be
solved by using gmake instead, but as seen above, I only introduce a
different error.

I was able to build the connector on my Linux boxes, but am stuck on the
Solaris machines.  Does this look familiar to anyone?


p.s.  I am following either of these steps:


2. I only can start msql2d at boot time or clicking twice in X environement

3. LLC fix (was 2.5 token ring build fails)

4. HELP:AIX 3.2 NFS problems

5. Maintainer update: www/orion (was: java/orion)

6. shared memory problem

7. Maintainer update: www/orion 1.4.5_7

8. Paul Vixie on BINDv9 and Internet Security

9. Maintainer update: www/orion (1.4.5_7)

10. help pls - fsck fail on boot; fixed, fsck still fails on boot

11. WWW Diamond Disgruntled Users Site: Fixes, Stories, etc.

12. WWW page building/management apps for Linux?

13. How to build WWW server and EMAIL server?