Hi Dane,
Thanks for looking into this for me. I applied your patch and
attempted to build mod_tile but am getting a compilation error (see
below). I'm not so familiar with building C applications from source
so could well have overlooked something obvious.
[a...@guiwsm0k mod_tile]$ make
/usr/share/httpd/build/libtool --silent --mode=compile gcc -I. -
DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 -Wall
-I/usr/include/apache2 -I. -I/Users/adam/src/httpd-2.2.11/srclib/apr/
include -I/Users/adam/src/httpd-2.2.11/srclib/apr-util/include -I/usr/
include -prefer-pic -c mod_tile.c && touch mod_tile.slo
mod_tile.c: In function 'add_expiry':
mod_tile.c:368: warning: format '%lld' expects type 'long long int',
but argument 3 has type 'long int'
mod_tile.c: In function 'tile_handler_mod_stats':
mod_tile.c:671: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:672: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:673: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:674: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:675: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:676: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:677: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:678: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
mod_tile.c:679: warning: format '%li' expects type 'long int', but
argument 3 has type 'apr_uint64_t'
/usr/share/httpd/build/libtool --silent --mode=compile gcc -I. -
DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 -Wall
-I/usr/include/apache2 -I. -I/Users/adam/src/httpd-2.2.11/srclib/apr/
include -I/Users/adam/src/httpd-2.2.11/srclib/apr-util/include -I/usr/
include -prefer-pic -c dir_utils.c && touch dir_utils.slo
/usr/share/httpd/build/libtool --silent --mode=compile gcc -I. -
DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 -Wall
-I/usr/include/apache2 -I. -I/Users/adam/src/httpd-2.2.11/srclib/apr/
include -I/Users/adam/src/httpd-2.2.11/srclib/apr-util/include -I/usr/
include -prefer-pic -c store.c && touch store.slo
/usr/share/httpd/build/libtool --silent --mode=link gcc -I. -L/usr/
lib -o mod_tile.la -rpath /usr/libexec/apache2 -module -avoid-
version mod_tile.lo dir_utils.lo store.lo
g++ -o renderd store.c daemon.c gen_tile.cpp dir_utils.c protocol.h
render_config.h dir_utils.h store.h iniparser3.0b/libiniparser.a -g -
lmapnik -L/usr/local/lib -Liniparser3.0b -liniparser -g -O2 -Wall -I/
usr/local/include/mapnik -I/static/include -I/opt/local/include/
freetype2 -I/opt/local/include
daemon.c: In function 'int main(int, char**)':
daemon.c:1065: warning: 'daemon' is deprecated (declared at /usr/
include/stdlib.h:283)
daemon.c:1065: warning: 'daemon' is deprecated (declared at /usr/
include/stdlib.h:283)
daemon.c: In function 'void clear_requests(int)':
daemon.c:94: warning: 'queueHead' may be used uninitialized in this
function
ld: in iniparser3.0b/libiniparser.a, archive has no table of contents
collect2: ld returned 1 exit status
make: *** [renderd] Error 1
Cheers
Adam
On 25/09/2009, at 11:54 AM, Dane Springmeyer wrote:
Hello Adam,
Yes, iniParser does not appear to even have been tested on os x. I
got mod_tile to build a while back by avoiding the compile of the
iniParser dynamic lib and therefore only making and linking to the
static lib.
-libiniparser.so: $(OBJS)
- @$(SHLD) $(LDSHFLAGS) -o [email protected] $(OBJS) $(LDFLAGS) \
- -Wl,-soname=`basename $...@`.0
+#libiniparser.so: $(OBJS)
+# @$(SHLD) $(LDSHFLAGS) -o [email protected] $(OBJS) $(LDFLAGS) \
+# -Wl,-soname=`basename $...@`.0
Full mod_tile diff attached for my os x compile on leopard.
Dane
<mod_tile_osx_compile.patch><ATT00001.htm>
Adam Ratcliffe
Software Developer
GeoSmart
PO Box 101001
29 Apollo Drive, Mairangi Bay, Auckland, NZ
Ph: +64 9 9668757 Fx: +64 9 966 8721
Email: [email protected]
Web: www.GeoSmart.co.nz
SmartNAV - The premier Car Navigation dataset for NZ
SmartFIND - Web and Mobile mapping solutions by GeoSmart
www.aamaps.co.nz - For FREE web maps and directions within NZ
Route2GO - Optimised journey planning to create the most efficient
routes to your customers for your sales or service calls
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users