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

Joyce 
Systems Group
Email  [EMAIL PROTECTED]



-----Original Message-----
From: Mike Anderson [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 16:42
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
Novell, Inc., the leading provider of Net services software
www.novell.com

>>> [EMAIL PROTECTED] 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

Reply via email to