tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joyce.F...@statcan.ca
Subject RE: Help with Code in jk_nwmain.c.
Date Tue, 12 Jun 2001 17:09:49 GMT

Ok... but obviously something calls on it for it to run so I am trying to
modify the code.....

Joyce 
Systems Group
Email  joyce.fung@statcan.ca



-----Original Message-----
From: Mike Anderson [mailto:MMANDERS@novell.com]
Sent: Monday, June 11, 2001 16:42
To: tomcat-dev@jakarta.apache.org
Subject: Re: Help with Code in jk_nwmain.c.


You don't need jk_nwmain if you are building on HPUX11.00.  This file is
only
for the NetWare platform.  That is why there is an #ifdef NETWARE around 
the whole thing.


Mike Anderson
Senior Software Engineer
Platform Services Group
mmanders@novell.com
Novell, Inc., the leading provider of Net services software
www.novell.com

>>> Joyce.Fung@statcan.ca 06/08/01 02:01PM >>>




I am trying to compile mod_jk in HPUX11.00 in 32 bit mode. I am using
Tomcat3.2.1
I am getting these error messages saying: 

./jk/jk_nwmain.c line 62 -unexpected void
./jk/jk_nwmain.c  line 64 TSR_THREAD undefined.


What am I doing wrong???

Thanks,

Joyce


Code from jk_nwmain.c
==============================



static void main();
#ifdef NETWARE
/*
 * NATIVE_MAIN
 */

/*
 * INCLUDES
 */

#include <stdio.h>
#include <nwthread.h>
#include <netdb.h>

NETDB_DEFINE_CONTEXT

/*
 * main ()
 *
 * Main entry point -- don't do much more than I've provided
 *
 * Entry:
 *
 * Exit:
 *    Nothing
 */

void main ()
{
   ExitThread (TSR_THREAD, 0); 
}

#elif HPUX11
/*
 * NATIVE_MAIN
 */

  /*
   * INCLUDES
   */

    #include <stdio.h>
    #include <pthread.h>
    #include <netdb.h>

    NETDB_DEFINE_CONTEXT

  /*  # Can I generate an error  --- yes if not remmed out */
    

    /*
     * main ()
     *
     * Main entry point -- don't do much more than I've provided
     *
     * Entry:
     *
     * Exit:
     *    Nothing
     */

     void main()
     {
        ExitThread (TSR_THREAD, 0);
     }
#endif

Mime
View raw message