Ack.  No one tested this code on a system w/o mmap -- if you look at line
386 of jserv_mmap.c, you'll see a function prototype which does not match
the function prototype in jserv.h.

I'm commiting a fix to this to CVS ... btw, _POSIX_MAPPED_FILES is
probably not the best define to use -- Apache has a define for MMAP
support (USE_MMAP_FILES), which I'd be more inclined to trust than the
vendor-supplied define.

ummm ... huh?  Why does the installer (configure) put symlinks in, rather
than copying the files into the apache dir?  I thought we'd discussed this
and decided that actually copying the files was the way to go (since
people may well nuke the Apache-JServ source directory after it's
installed & all).

Fyi, Jack, you can fix this simply by editing line 386 of jserv_mmap.c and
removing the 'request_req' argument to the jserv_setdead function.  But
I can offer you no guarantees as to how well JServ will run on your
system, as it seems unlikely that it's been QA'ed recently on any system
w/o mmap.  What OS are you running?

thanks for the bug report --

Ed

On Fri, 30 Apr 1999, Jack T. Hsieh wrote:

> Hello,
> I downloaded JServ 1.0b4 and decompressed it.
> Then I copied all file from jserv1.0b4/src/c/*.* to
> ../apache/src/modules/extra/ 
> 
> at the directory ../apache/src/ I ran :
> ./configure --prefix=/usr/local/apache
> --add-module=src/modules/extra/mod_jserv.c --enable-shared=jserv
> --enable-module=jserv --enable-module=so --enable-rule=SHARED_CORE
> 
> when I try to do a make it gives me error:
> .......
> r cr libstandard.a mod_env.o mod_log_config.o mod_mime.o
> mod_negotiation.o mod_status.o mod_includo
> ranlib libstandard.a
> <=== src/modules/standard
> ===> src/modules/extra
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> gcc -c  -I../../os/unix -I../../include   -funsigned-char -fpic
> -DSHARED_CORE `../../apaci` -DSHAREo
> jserv_mmap.c:386: conflicting types for `jserv_setdead'
> jserv.h:266: previous declaration of `jserv_setdead'
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> 
> My question is how do I fix this, and What did I do wrong?
> system conf:
> FreeBSD 3.1-stable
> Apache 1.3.6
> jdk 1.1.7
> jsdk 2.0
> jserv 1.0b4
> 
> Thanks !
> 
> J.H
> 
> 
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]
> 




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to