You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nikolai Vladychevski <ni...@isl.net.mx> on 2003/05/06 17:44:05 UTC

Compiling mod_jserv.so on redhat 9

Hi, 

I am trying to compile jakarta tomcat 3.2.4 (neither lastest 4.x.x version 
works) on Redhat 9 but I get this error: 

[niko@ arc]# apxs -c -o mod_jserv.so *.c
/usr/lib/httpd/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g 
 -pipe -march=i386 -mcpu=i686 -I/usr/kerberos/include 
 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -DNO_DBM_REWRITEMAP 
 -I/usr/include/httpd  -c -o autochange.lo autochange.c && touch 
autochange.slo
/usr/lib/httpd/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g 
 -pipe -march=i386 -mcpu=i686 -I/usr/kerberos/include 
 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -DNO_DBM_REWRITEMAP 
 -I/usr/include/httpd  -c -o jserv_ajpv11.lo jserv_ajpv11.c && touch 
jserv_ajpv11.slo
In file included from jserv_ajpv11.c:61:
jserv.h:180: parse error before "table"
jserv.h:180: warning: no semicolon at end of struct or union
jserv.h:185: parse error before '*' token
jserv.h:185: warning: data definition has no type or storage class
jserv.h:187: parse error before '}' token
jserv.h:328: parse error before "jserv_module"
jserv.h:328: warning: data definition has no type or storage class
jserv.h:332: parse error before '*' token
jserv.h:332: warning: data definition has no type or storage class
jserv.h:345: parse error before '*' token
jserv.h:348: parse error before '*' token
jserv.h:360: parse error before '*' token
jserv_ajpv11.c:73: parse error before "pool"
jserv_ajpv11.c: In function `ajpv11_open':
jserv_ajpv11.c:80: `address' undeclared (first use in this function)
jserv_ajpv11.c:80: (Each undeclared identifier is reported only once
jserv_ajpv11.c:80: for each function it appears in.)
jserv_ajpv11.c:81: `cfg' undeclared (first use in this function)
jserv_ajpv11.c:87: `port' undeclared (first use in this function)
jserv_ajpv11.c:98: `p' undeclared (first use in this function)
jserv_ajpv11.c: At top level:
jserv_ajpv11.c:128: parse error before "pool"
jserv_ajpv11.c: In function `ajpv11_sendpacket':
jserv_ajpv11.c:135: `type' undeclared (first use in this function)
jserv_ajpv11.c:137: `sock' undeclared (first use in this function)
jserv_ajpv11.c:146: `name' undeclared (first use in this function)
jserv_ajpv11.c:147: `value' undeclared (first use in this function)
jserv_ajpv11.c:147: `p' undeclared (first use in this function)
jserv_ajpv11.c:147: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c:148: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c:150: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c:151: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c:155: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c: At top level:
jserv_ajpv11.c:170: parse error before "pool"
jserv_ajpv11.c: In function `ajpv11_auth':
jserv_ajpv11.c:172: `AP_MD5_CTX' undeclared (first use in this function)
jserv_ajpv11.c:172: parse error before "md5context"
jserv_ajpv11.c:181: `secretsize' undeclared (first use in this function)
jserv_ajpv11.c:182: `cfg' undeclared (first use in this function)
jserv_ajpv11.c:187: `secret' undeclared (first use in this function)
jserv_ajpv11.c:194: `sock' undeclared (first use in this function)
jserv_ajpv11.c:203: `p' undeclared (first use in this function)
jserv_ajpv11.c:216: `md5context' undeclared (first use in this function)
jserv_ajpv11.c: In function `ajpv11_handler':
jserv_ajpv11.c:237: `BUFF' undeclared (first use in this function)
jserv_ajpv11.c:237: `buffsocket' undeclared (first use in this function)
jserv_ajpv11.c:244: `SERVER_ERROR' undeclared (first use in this function)
jserv_ajpv11.c:268: dereferencing pointer to incomplete type
jserv_ajpv11.c:271: dereferencing pointer to incomplete type
jserv_ajpv11.c:271: dereferencing pointer to incomplete type
jserv_ajpv11.c:282: dereferencing pointer to incomplete type
jserv_ajpv11.c:288: dereferencing pointer to incomplete type
jserv_ajpv11.c:307: dereferencing pointer to incomplete type
jserv_ajpv11.c:308: dereferencing pointer to incomplete type
jserv_ajpv11.c:339: dereferencing pointer to incomplete type
jserv_ajpv11.c:356: `array_header' undeclared (first use in this function)
jserv_ajpv11.c:356: `env_arr' undeclared (first use in this function)
jserv_ajpv11.c:357: `table_entry' undeclared (first use in this function)
jserv_ajpv11.c:357: `elts' undeclared (first use in this function)
jserv_ajpv11.c:357: parse error before ')' token
jserv_ajpv11.c:377: `hdr_arr' undeclared (first use in this function)
jserv_ajpv11.c:378: parse error before ')' token
jserv_ajpv11.c:406: `B_SOCKET' undeclared (first use in this function)
jserv_ajpv11.c:406: `B_RDWR' undeclared (first use in this function)
jserv_ajpv11.c:445: warning: assignment makes pointer from integer without a 
cast
jserv_ajpv11.c:472: `REDIRECT' undeclared (first use in this function)
jserv_ajpv11.c: In function `ajpv11_function':
jserv_ajpv11.c:489: `pool' undeclared (first use in this function)
jserv_ajpv11.c:489: `p' undeclared (first use in this function)
jserv_ajpv11.c:519: dereferencing pointer to incomplete type
jserv_ajpv11.c:519: dereferencing pointer to incomplete type
jserv_ajpv11.c:528: dereferencing pointer to incomplete type
jserv_ajpv11.c:528: dereferencing pointer to incomplete type
apxs:Error: Command failed with rc=65536
. 


I use apache 2.0.40, does anyone has any clue what is wrong? 

Thanks in advance.
Nikolai

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Compiling mod_jserv.so on redhat 9

Posted by Mark Eggers <it...@yahoo.com>.
Nikolai,

Not really, but what difficulties are you having with
Tomcat 4.0.x or 4.1.x on Redhat 9?  I haven't tried
running the 4.0.x series, but 4.1.24 seems to run fine
on my Redhat 9 development machine.

Someone just posted additions to the mod_jk2 brief
compilation how-to that I wrote.  The additional
command line switches for configure were given to get
mod_jk2 to compile using the Redhat 9 Apache rpms.

You'll need both the Apache and Apache-dev rpms
installed.

I have also found out that Redhat comes with GNU's
javac by default.  I'm currently using j2sdk
1.4.2-beta on my Redhat 9 development machine, since
there seem to be some serialization problems with
1.4.1 and Redhat 9.

I hope that's enough to get you started down the right
path.

/mde/
just my two cents . . . .


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


JNDI lookup fails inside HTTP 1.1 Connector socket factory

Posted by Fiel Cabral <un...@yahoo.com>.
I'm writing a socket factory class for the catalina http
1.1 connector and I need to be able to do:

Context ctx = (Context)
InitialContext().lookup("java:comp/env");

However, this code raises a NamingException:

"java:" is not bound in this context. 

The exception occurs while inside Catalina.start in
server.initialize, deep inside the http1.1 connector where
my socket factory is instantiated.

Is it possible to lookup resources in server.xml from
within a Connector or a socket factory for a connector?

I'm trying to lookup a resource. I've tried looking up the
resource name without "java:comp/env" but that failed. I've
also tried placing my resource inside a
GlobalNamingResources but that failed.

-Fiel

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org