I am using Tomcat with mod_jk in Apache+mod_ssl in Win32.   Upon receiving the warning :
 
 Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
 
I opened mod_jk.dsp into Visual C++, and added /D "EAPI".   Upon compiling, I got a "too many initializers" error.   Investigating the typedef for module, there was no preprocessor instruction to extend the def for module for EAPI.   Grabbing the typedef from the Apache source, I added
 
#ifdef EAPI
#ifdef ULTRIX_BRAIN_DEATH
    void  (*add_module) ();
    void  (*remove_module) ();
    char *(*rewrite_command) ();
    void  (*new_connection) ();
    void  (*close_connection) ();
#else
    void  (*add_module) (struct module_struct *);
    void  (*remove_module) (struct module_struct *);
    char *(*rewrite_command) (cmd_parms *, void *config, const char *);
    void  (*new_connection) (conn_rec *);
    void  (*close_connection) (conn_rec *);
#endif
The module then compiled without problem.   However, when I attempted to use it, the warning persisted!
 
Any help would be appreciated.
 
Bob.
 
 

Reply via email to