I'm trying to compile a JK2 connector on Tru64 :
Hello, "blood brother" :-) I compiled it on Tru64 UNIX 4.0D
I cd to /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make
I get this :
/bin/ksh /usr/local/apache2/build/libtool --silent --mode=compile cc -g -pthread -DOSF1 -I../../include -I/usr/local/apache2/include -I/usr/local/src/httpd-2.0.44/srclib/apr-util/include -I/usr/local/src/httpd-2.0.44/srclib/apr/include -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -c ../../common/jk_logger_file.c -o ../../../build/jk2/apache2/jk_logger_file.lo
cc: Error: ../../common/jk_logger_file.c, line 196: In this statement, "args" has a struct type, which is not scalar. (needscalar)
if (!file || !args)
-----------------^
make[1]: *** [../../../build/jk2/apache2/jk_logger_file.lo] Error 1
make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1
What I'm missing?
You're not missing anything. The JK2 code is making an assumption of what "va*" (variable argument list) implementation looks like. It could be that on most other systems (or should I say, C compiler environments) it is a pointer.
On DEC CC it is not - it is a structure.
The correction I have found to work or, at least, looks good - havent tested mod_jk2, yet - is:
if (!file || !(args._a0))
Everything else should slide smoothly. If you have any more problems, call.
Nix.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
