You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by William Ho <wi...@alcatel.com> on 2001/06/15 00:31:54 UTC

Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9

Hi there,

My configuration is as follows:
Tomcat 3.2.1
Apache 1.3.9
Solaris 7
J2SE 1.3.0_02 (not used in this compilation)

I'm trying to compile mod_jk on Solaris 2.7. Here's what I did:

(1) cd to .../jakarta-tomcat-3.2.1-src/src/native/apache1.3
(2) make sure apxs aliased to the correct file, in this case is
.../apache/bin/apxs
(3) since the apxs script uses cc, I checked the cc version. It is "Workshop
Compilers 4.2"
(4) from the webpage
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html, I use the
following command to compile, using my own java 1.3 (j2se downloaded from sun):

apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include
-I/usr/j2se/include/solaris -c *.c ../jk/*.c

Warnings and Errors:

cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
-I/kitimat1/apache/include -I../jk -I/usr/j2se/include
-I/usr/j2se/include/solaris -DSOLARIS  -c
../jk/jk_jni_worker.c"../jk/jk_jni_worker.c", line 731: warning: assignment type
mismatch:                                                                              
pointer to function(pointer to pointer to pointer to const struct
JNIInvokeInterface_ {pointer to void reserved0, pointer to... "=" pointer to
void"../jk/jk_jni_worker.c", line 732: warning: assignment type
mismatch:                                                                              
pointer to function(pointer to void) returning long "=" pointer to void

cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
-I/kitimat1/apache/include -I../jk -I/usr/j2se/include
-I/usr/j2se/include/solaris -DSOLARIS  -c
../jk/jk_uri_worker_map.c"../jk/jk_uri_worker_map.c", line 349: warning:
initializer does not fit or is out of range: -1
"../jk/jk_uri_worker_map.c", line 438: warning: newline not last character in
file 

cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
-I/kitimat1/apache/include -I../jk -I/usr/j2se/include
-I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c"../jk/jk_util.c", line
211: missing operand"../jk/jk_util.c", line 223: missing operand cc: acomp
failed for ../jk/jk_util.c apxs:Break: Command failed with rc=131072

Do you have any ideas on this? Thanks a lot.
Also, do you know if anybody has uses the same apache, tomcat and solaris
versions and can make it work? Any help will be very much appreciated.

=====================================================================
Best regards,
Will.
Declaration: My postings are not related to my employer in any sense.
=====================================================================

AW: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9

Posted by Thomas Bezdicek <th...@engnetworld.com>.
its not a broken, its just the wrong one :) and when compiling
apache the apxs guesses the compiler, so if apache finds cc from
"Worshop Compilers 4.2" it will try to compile it with that
compiler not with gcc (which usually should be in /opt/sfw/bin).

regards, tom

> -----Ursprungliche Nachricht-----
> Von: John P. Dodge [mailto:dodge@cruciate.ca.boeing.com]
> Gesendet: Freitag, 15. Juni 2001 16:36
> An: tomcat-user@jakarta.apache.org
> Betreff: Re: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9
>
>
> You are using the broken Sun C compiler. Use GNU gcc from
> http://sunfreeware.com.
>
>
> On Thu, 14 Jun 2001, William Ho wrote:
>
> > Hi there,
> >
> > My configuration is as follows:
> > Tomcat 3.2.1
> > Apache 1.3.9
> > Solaris 7
> > J2SE 1.3.0_02 (not used in this compilation)
> >
> > I'm trying to compile mod_jk on Solaris 2.7. Here's what I did:
> >
> > (1) cd to .../jakarta-tomcat-3.2.1-src/src/native/apache1.3
> > (2) make sure apxs aliased to the correct file, in this case is
> > .../apache/bin/apxs
> > (3) since the apxs script uses cc, I checked the cc version. It
> is "Workshop
> > Compilers 4.2"
> > (4) from the webpage
> >
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html,
>  I use the
> > following command to compile, using my own java 1.3 (j2se
> downloaded from sun):
> >
> > apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include
> > -I/usr/j2se/include/solaris -c *.c ../jk/*.c
> >
> > Warnings and Errors:
> >
> > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> > -I/usr/j2se/include/solaris -DSOLARIS  -c
> > ../jk/jk_jni_worker.c"../jk/jk_jni_worker.c", line 731:
> warning: assignment type
> > mismatch:
>
> > pointer to function(pointer to pointer to pointer to const struct
> > JNIInvokeInterface_ {pointer to void reserved0, pointer to...
> "=" pointer to
> > void"../jk/jk_jni_worker.c", line 732: warning: assignment type
> > mismatch:
>
> > pointer to function(pointer to void) returning long "=" pointer to void
> >
> > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> > -I/usr/j2se/include/solaris -DSOLARIS  -c
> > ../jk/jk_uri_worker_map.c"../jk/jk_uri_worker_map.c", line 349: warning:
> > initializer does not fit or is out of range: -1
> > "../jk/jk_uri_worker_map.c", line 438: warning: newline not
> last character in
> > file
> >
> > cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> > -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> > -I/usr/j2se/include/solaris -DSOLARIS  -c
> ../jk/jk_util.c"../jk/jk_util.c", line
> > 211: missing operand"../jk/jk_util.c", line 223: missing
> operand cc: acomp
> > failed for ../jk/jk_util.c apxs:Break: Command failed with rc=131072
> >
> > Do you have any ideas on this? Thanks a lot.
> > Also, do you know if anybody has uses the same apache, tomcat
> and solaris
> > versions and can make it work? Any help will be very much appreciated.
> >
> > =====================================================================
> > Best regards,
> > Will.
> > Declaration: My postings are not related to my employer in any sense.
> > =====================================================================
> >
>
> ----------------------------------------
> "Mon aeroglisseur est plein d'anguilles"
> John P. Dodge
> Boeing Shared Services
>


Re: Compile mod_jk fails: tomcat 3.2.1 + apache 1.3.9

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
You are using the broken Sun C compiler. Use GNU gcc from
http://sunfreeware.com.


On Thu, 14 Jun 2001, William Ho wrote:

> Hi there,
> 
> My configuration is as follows:
> Tomcat 3.2.1
> Apache 1.3.9
> Solaris 7
> J2SE 1.3.0_02 (not used in this compilation)
> 
> I'm trying to compile mod_jk on Solaris 2.7. Here's what I did:
> 
> (1) cd to .../jakarta-tomcat-3.2.1-src/src/native/apache1.3
> (2) make sure apxs aliased to the correct file, in this case is
> .../apache/bin/apxs
> (3) since the apxs script uses cc, I checked the cc version. It is "Workshop
> Compilers 4.2"
> (4) from the webpage
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html, I use the
> following command to compile, using my own java 1.3 (j2se downloaded from sun):
> 
> apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include
> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
> 
> Warnings and Errors:
> 
> cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> -I/usr/j2se/include/solaris -DSOLARIS  -c
> ../jk/jk_jni_worker.c"../jk/jk_jni_worker.c", line 731: warning: assignment type
> mismatch:                                                                              
> pointer to function(pointer to pointer to pointer to const struct
> JNIInvokeInterface_ {pointer to void reserved0, pointer to... "=" pointer to
> void"../jk/jk_jni_worker.c", line 732: warning: assignment type
> mismatch:                                                                              
> pointer to function(pointer to void) returning long "=" pointer to void
> 
> cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> -I/usr/j2se/include/solaris -DSOLARIS  -c
> ../jk/jk_uri_worker_map.c"../jk/jk_uri_worker_map.c", line 349: warning:
> initializer does not fit or is out of range: -1
> "../jk/jk_uri_worker_map.c", line 438: warning: newline not last character in
> file 
> 
> cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE
> -I/kitimat1/apache/include -I../jk -I/usr/j2se/include
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c"../jk/jk_util.c", line
> 211: missing operand"../jk/jk_util.c", line 223: missing operand cc: acomp
> failed for ../jk/jk_util.c apxs:Break: Command failed with rc=131072
> 
> Do you have any ideas on this? Thanks a lot.
> Also, do you know if anybody has uses the same apache, tomcat and solaris
> versions and can make it work? Any help will be very much appreciated.
> 
> =====================================================================
> Best regards,
> Will.
> Declaration: My postings are not related to my employer in any sense.
> =====================================================================
> 

----------------------------------------
"Mon aeroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services