I am in the initial stages of moving our application servers to Tomcat and 
eventually our OS to linux (instead of tru64). However, I am having a lot 
of trouble compliling the mod_jk2 connector on tru64 5.1a .

I installed cygnus's gcc, gmake, autoconf, automake and libtools, and I
put /usr/local/bin ahead of usr/bin/ to give the gcc binaries precedence,
but I still get the same error. It appears to be a simple C coding issue
but Im not familiar enough with C to know what to do at this point.

These are the steps Im taking

CC="gcc" ./configure --with-java-home=/usr/opt/java141 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-apache2=/install/httpd-2.0.48

creating cache ./config.cache
checking host system type... alphaev67-dec-osf5.1
checking target system type... alphaev67-dec-osf5.1
checking build system type... alphaev67-dec-osf5.1
checking for a BSD compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -Wall ) works... yes
checking whether the C compiler (gcc -Wall ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for ranlib... ranlib
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... none
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm output... failed
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... osf5.1 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... no
checking for dlopen... yes
checking for dlfcn.h... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for test... /usr/bin/test
checking for rm... /sbin/rm
checking for grep... /sbin/grep
checking for echo... /usr/bin/echo
checking for sed... /sbin/sed
checking for cp... /sbin/cp
checking for mkdir... /sbin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/local/bin/perl
building connector for "apache-2.0"
checking checking for apache13...... not provided
checking checking for apache20...... /install/httpd-2.0.48
checking checking for iis...... not provided
./configure: !: not found
updating cache ./config.cache
creating ./config.status
creating Makefile
creating server/apache13/Makefile
creating server/apache13/Makefile.apxs
creating server/apache2/Makefile
creating server/apache2/Makefile.apxs
creating ../build.properties
creating scripts/build/unix/dummy

then i run gmake:

there is a lot before the error that Im not including at this point
but it fails here:

gcc -g -O2 -DOSF1 -I../../include -I/install/httpd-2.0.48/include 
-I/install/httpd-2.0.48/os/[EMAIL PROTECTED]@%unix%g -g -O2 
-I/install/httpd-2.0.48/srclib/apr-util/include 
-I/install/httpd-2.0.48/srclib/apr/include -DCHUNK_SIZE=4096 
-DUSE_APACHE_MD5 -DHAS_APR -DHAS_AP_PCRE -c ../../common/jk_logger_file.c  
-DPIC -o ../../../build/jk2/apache2/.libs/jk_logger_file.lo
In file included from ../../include/jk_global.h:104,
                 from ../../include/jk_logger.h:27,
                 from ../../include/jk_env.h:25,
                 from ../../common/jk_logger_file.c:25:
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/unistd.h:609: 
warning: `cuserid' redefined
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/stdio.h:458: 
warning: this is the location of the previous definition
../../common/jk_logger_file.c: In function `jk2_logger_file_jkVLog':
../../common/jk_logger_file.c:197: wrong type argument to unary 
exclamation mark
gmake[1]: *** [../../../build/jk2/apache2/jk_logger_file.lo] Error 1
gmake[1]: Leaving directory 
`/tomcat/tomcat.5.0.19/src/jakarta-tomcat-connectors/jk/native2/server/apache2'
gmake: *** [jk2-build] Error 1


it appears to be failing here in the code

static int JK_METHOD jk2_logger_file_jkVLog(jk_env_t *env, jk_logger_t *l,
                                  const char *file,
                                  int line,
                                  int level,
                                  const char *fmt,
                                  va_list args)
{
    int rc = 0;
    char *buf;
    char *fmt1;
    apr_pool_t *aprPool = env->tmpPool->_private;
    char rfctime[APR_RFC822_DATE_LEN];
    apr_time_t time = apr_time_now();
                                                                                       
                                                                                       
                       
    if (!file || !args) ## this is line 197
        return -1;
*******

Can anyone offfer any advice?

Thanks
Bill



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to