ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  ColdFusion MX on Mac OS X, Part 4
Subject:   Building Apache Connector for JRun4 and CFMX
Date:   2004-09-20 12:43:59
From:   rodthomas
Hi, I found the articles really useful, and I've since looked around on the Macromedia site and installed the latest versions, with latest updates (JRun 4 Updater 4).


Everything seems fine on the JRun server (apart from not being able to change the contextroot to '/' successfully - CFMX Admin then doesn't work).


So...I'm trying to make things easier by using http://localhost/ via an Apache connector as suggested. This doesn't work - .cfm files not understood, where before a code source view was displayed by Safari.


The Apache error log contains the following line '... mod_jrun.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI).' Following Macromedia's own advice, this apparently requires manual creation of the connector to replace the one made using JRun GUI tools.


After installing GCC, stopping Apache, extracting the ApacheModule.zip from wsconfig.jar and renaming existing mod_jrun.so file, I ran the /usr/sbin/apxs command for Apache 1.3.x as instructed but still have errors as follows (summarised):



In file included from jrun_ssl.h:25, from mod_jrun.c:16:
/usr/include/netinet/in.h:255: error: parse error(s)
...
/usr/include/netinet/in.h:329: error: field XXX has incomplete type


In file included from /usr/include/netinet/in.h:518, from jrun_ssl.h:25, from mod_jrun.c:16:
/usr/include/netinet6/in6.h:123: error: parse error(s)
...
/usr/include/netinet6/in6.h:384: error: field XXX has incomplete type
...
/usr/include/netinet6/in6.h:617: error: parse error before "__P"


In file included from /usr/include/machine/ansi.h:33,
from /usr/include/stdlib.h:61,
from /usr/include/openssl/crypto.h:62,
from /usr/include/openssl/comp.h:5,
from /usr/include/openssl/ssl.h:171,
from jrun_ssl.h:28,
from mod_jrun.c:16:
/usr/include/ppc/ansi.h:93: error: syntax error before "typedef"


In file included from mod_jrun.h:34,
from mod_jrun.c:20:
/usr/include/httpd/httpd.h:907: error: field XXX has incomplete type


In file included from mod_jrun.c:21:
jrun_proxy.h:138: error: field `addr' has incomplete type
/usr/include/netinet/in.h:315: error: storage size of `sin_addr' isn't known
/usr/include/netinet6/in6.h:149: error: storage size of `sin6_addr' isn't known
apxs:Break: Command failed with rc=1


Any ideas/suggestions gratefully received! I'd rather not have to install Apache 2.0 as there are additional complexities there, apparently!


Thx