You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ab...@accenture.com on 2001/09/06 13:50:20 UTC

Help trying to compile nsapi_redirector.so

Help!

We are trying to use the iPlanet 4.1 as a front end Web Server that is
passing through to Tomcat 3.2 servlet engine as part of the backend.  Both
servers are sitting on the Solaris 2.6 OS.  The problem I have been having
is that Makefile.solaris is not allowing me to compile successfully.

First, I was wondering if anyone was able to compile on this plateform
successfully with the latest version of *.c as well as the
Makefile.solaris?

Second, has anyone complied the code with the files in the native/jk
directory (where the jk*.c and jk*.h files exist) for Tomcat 3.2.2? or
should I be using another version of those c and header files?

Third, I am getting the following message in the stdout when I run the make
-f Makefile.solaris file:

gcc -DNET_SSL -DSOLARIS -D_REENTRANT -D_LP64 -DMCC_HTTPD -DXP_UNIX
-DSPAPI20 -DSOLARIS -Wall -I/opt/iplanet/webserver/plugins/include
-I/opt/iplanet/webserver/plugins/include/base
-I/opt/iplanet/webserver/plugins/include/frame -I/usr/java/include
-I/usr/java/include/solaris -I/export/home/arashid/nsapi_plugin/jk -c
jk_ajp12_worker.c
In file included from /usr/include/sys/turnstile.h:12,
                 from /usr/include/sys/t_lock.h:20,
                 from /usr/include/sys/vnode.h:37,
                 from /usr/include/sys/stream.h:21,
                 from /usr/include/netinet/in.h:38,
                 from /usr/include/netdb.h:96,
                 from jk_global.h:82,
                 from jk_logger.h:65,
                 from jk_ajp12_worker.h:65,
                 from jk_ajp12_worker.c:63:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.7.2.3/include/sys/param.h:175:


warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:21,
                 from /usr/include/netinet/in.h:38,
                 from /usr/include/netdb.h:96,
                 from jk_global.h:83,
                 from jk_logger.h:65,
                 from jk_ajp12_worker.h:65,
                 from jk_ajp12_worker.c:63:
/usr/include/sys/vnode.h:162: parse error before `u_offset_t'
/usr/include/sys/vnode.h:162: warning: no semicolon at end of struct or
union
/usr/include/sys/vnode.h:170: parse error before `}'
/usr/include/sys/vnode.h:170: warning: data definition has no type or
storage class
/usr/include/sys/vnode.h:278: parse error before `intptr_t'
/usr/include/sys/vnode.h:331: parse error before `u_offset_t'
In file included from /usr/include/netdb.h:96,
                 from jk_global.h:83,
                 from jk_logger.h:65,
                 from jk_ajp12_worker.h:65,
                 from jk_ajp12_worker.c:63:
/usr/include/netinet/in.h:156: parse error before `uint32_t'
/usr/include/netinet/in.h:156: warning: no semicolon at end of struct or
union
/usr/include/netinet/in.h:156: warning: no semicolon at end of struct or
union
/usr/include/netinet/in.h:160: warning: data definition has no type or
storage class
/usr/include/netinet/in.h:167: parse error before `}'
/usr/include/netinet/in.h:226: field `sin_addr' has incomplete type
/usr/include/netinet/in.h:286: field `imr_multiaddr' has incomplete type
/usr/include/netinet/in.h:287: field `imr_interface' has incomplete type
In file included from jk_global.h:89,
                 from jk_logger.h:65,
                 from jk_ajp12_worker.h:65,
                 from jk_ajp12_worker.c:63:
/usr/include/arpa/inet.h:53: warning: parameter has incomplete type
/usr/include/arpa/inet.h:55: warning: parameter has incomplete type
/usr/include/arpa/inet.h:57: warning: parameter has incomplete type
*** Error code 1
make: Fatal error: Command failed for target `jk_ajp12_worker.o'

Any guidance on what I might be doing wrong would greatly appreciated.
Please not that I did have to add the -D_LP64 line because for some reason
defined constant in the /usr/include/sys/ folder was not set correctly.

Fourth if I cannot still overcome the error that I am getting from above is
there anywhere that I can get a complied version of the binary *.so or does
anyone have a better suggestion?


Abdul


PS Thank you ahead of time for anyone that can give me some direction on
this issue.
This message is for the designated recipient only and may contain
privileged or confidential information.  If you have received it in error,
please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.
This message is for the designated recipient only and may contain
privileged or confidential information.  If you have received it in error,
please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.