I'm having a little difficulty with the current Project Wonder
release of the Apache2 adaptor. It isn't hard to get the files to
compile once you realise gmake is needed with these makefiles, but I
get the following warnings at the end:
cc -O2 -Wall -I/usr/local/include/apache22 -I../Adaptor -I/usr/local/
include -I/usr/local/include/apr-1 -DSINGLE_THREADED_ADAPTOR -
DFREEBSD -DFORKING_WEBSERVER -DAPACHE -DEAPI -I/usr/local/include/
apache22 -c ../Adaptor/xmlctokenizer.c
../Adaptor/xmlctokenizer.c: In function `xmlcTokenizerNextToken':
../Adaptor/xmlctokenizer.c:265: warning: comparison is always false
due to limited range of data type
../Adaptor/xmlctokenizer.c:321: warning: comparison is always false
due to limited range of data type
cc -O2 -Wall -I/usr/local/include/apache22 -I../Adaptor -I/usr/local/
include -I/usr/local/include/apr-1 -DSINGLE_THREADED_ADAPTOR -
DFREEBSD -DFORKING_WEBSERVER -DAPACHE -DEAPI -I/usr/local/include/
apache22 -c ../Adaptor/xmlparse.c
cc -c -O2 -Wall -I/usr/local/include/apache22 -I../Adaptor -I/usr/
local/include -I/usr/local/include/apr-1 -DSINGLE_THREADED_ADAPTOR -
DFREEBSD -DFORKING_WEBSERVER -DAPACHE -DEAPI -I/usr/local/include/
apache22 mod_WebObjects.c MoreURLCUtilities.o Platform.o
WOURLCUtilities.o WOURLCUtilities_3.o appcfg.o cfgparse.o
config.o hostlookup.o list.o listing.o loadaverage.o
loadbalancing.o log.o nbsocket.o random.o request.o response.o
roundrobin.o shmem.o strdict.o strtbl.o transaction.o
transport.o wastring.o womalloc.o xmlcparser.o xmlctokenizer.o
xmlparse.o
mod_WebObjects.c: In function `copyHeaders':
mod_WebObjects.c:360: warning: implicit declaration of function
`ap_snprintf'
mod_WebObjects.c: At top level:
mod_WebObjects.c:229: warning: 'setOption3' defined but not used
cc: MoreURLCUtilities.o: linker input file unused because linking not
done
cc: Platform.o: linker input file unused because linking not done
cc: WOURLCUtilities.o: linker input file unused because linking not done
cc: WOURLCUtilities_3.o: linker input file unused because linking not
done
cc: appcfg.o: linker input file unused because linking not done
cc: cfgparse.o: linker input file unused because linking not done
cc: config.o: linker input file unused because linking not done
cc: hostlookup.o: linker input file unused because linking not done
cc: list.o: linker input file unused because linking not done
cc: listing.o: linker input file unused because linking not done
cc: loadaverage.o: linker input file unused because linking not done
cc: loadbalancing.o: linker input file unused because linking not done
cc: log.o: linker input file unused because linking not done
cc: nbsocket.o: linker input file unused because linking not done
cc: random.o: linker input file unused because linking not done
cc: request.o: linker input file unused because linking not done
cc: response.o: linker input file unused because linking not done
cc: roundrobin.o: linker input file unused because linking not done
cc: shmem.o: linker input file unused because linking not done
cc: strdict.o: linker input file unused because linking not done
cc: strtbl.o: linker input file unused because linking not done
cc: transaction.o: linker input file unused because linking not done
cc: transport.o: linker input file unused because linking not done
cc: wastring.o: linker input file unused because linking not done
cc: womalloc.o: linker input file unused because linking not done
cc: xmlcparser.o: linker input file unused because linking not done
cc: xmlctokenizer.o: linker input file unused because linking not done
cc: xmlparse.o: linker input file unused because linking not done
ld -G -L/usr/lib -lm mod_WebObjects.o MoreURLCUtilities.o
Platform.o WOURLCUtilities.o WOURLCUtilities_3.o appcfg.o
cfgparse.o config.o hostlookup.o list.o listing.o loadaverage.o
loadbalancing.o log.o nbsocket.o random.o request.o response.o
roundrobin.o shmem.o strdict.o strtbl.o transaction.o
transport.o wastring.o womalloc.o xmlcparser.o xmlctokenizer.o
xmlparse.o -o mod_WebObjects.so
/usr/local/sbin/apxs -c -S CC=cc -Wc,"-O2 -Wall -I/usr/local/include/
apache22 -I../Adaptor -I/usr/local/include -I/usr/local/include/
apr-1 -DSINGLE_THREADED_ADAPTOR -DFREEBSD -DFORKING_WEBSERVER -
DAPACHE -DEAPI -I/usr/local/include/apache22" -Wl,"-G -L/usr/lib -lm
" mod_WebObjects.so
/usr/local/build-1/libtool --silent --mode=link cc -o
mod_WebObjects.la -G -L/usr/lib -lm -rpath /usr/local/libexec/
apache22 -module -avoid-version mod_WebObjects.so
But its still builds the .so file. When I install this with apxs and
try to restart apache, I get an error:
httpd: Syntax error on line 110 of /usr/local/etc/apache22/
httpd.conf: Syntax error on line 1 of /usr/local/etc/apache/
webobjects.conf: Can't locate API module structure
`WebObjects_module' in file /usr/local/libexec/apache22/
mod_WebObjects.so: Undefined symbol "WebObjects_module"
This error is on the line where I try to load the WebObjects adaptor
module.
The problem looks like it relates to "ap_snprintf" which is a legacy
function from Apache 1.3 but should not be used any more. Is this a
problem in the Project Wonder adaptor code?
Any thoughts?
Ari Maniatis
-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001 fax +61 2 9550 4001
PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]