<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As part of an update process, I've been building PostgreSQL(8.4.4)+PostGIS(1.5.1)+WKTRaster(0.1.6d). <div><br></div><div>I've built and tested the first two.</div><div><br></div><div>When I try to build WKTRaster:</div><div><br></div><div>$ ./configure  \</div><div> CC="gcc -arch i386" \</div><div> CXX="g++ -arch i386" \</div><div> OBJC="gcc -arch i386" \</div><div> F77="gfortran -arch i386" \</div><div> FC="gfortran -arch i386" \</div><div> --with-postgis-sources=/Users/hamannj/Documents/rufus/postgresql-8.4.4/contrib/postgis-1.5.1</div><div><br></div><div>which get's me to here:</div><div><br></div><div><div>Version: 0.1.6d</div><div>Build date: 2010-07-12 20:37:11</div><div><br></div><div>Run make to build WKT Raster extension</div><div><br></div><div>Jeff-Hamanns-MacBook-Pro:wktraster-0.1.6d hamannj$ make</div></div><div><br></div><div>and yields:</div><div><br></div><div><div>Jeff-Hamanns-MacBook-Pro:wktraster-0.1.6d hamannj$ make</div><div>make -C rt_core</div><div>cc -g -O2  -fno-common -DPIC   -I/Users/hamannj/Documents/rufus/postgresql-8.4.4/contrib/postgis-1.5.1/liblwgeom -I/usr/local/include     -c -o rt_api.o rt_api.c</div><div>ar rs librtcore.a rt_api.o </div><div>ar: creating archive librtcore.a</div><div>make -C rt_pg</div><div>gcc -arch i386 -O1 -g3 -no-cpp-precomp -O1 -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g  -bundle -multiply_defined suppress  rt_pg.o -bundle_loader /usr/local/pgsql/bin/postgres -L/usr/local/lib -L/usr/local/pgsql/lib ../rt_core/librtcore.a /Users/hamannj/Documents/rufus/postgresql-8.4.4/contrib/postgis-1.5.1/liblwgeom/liblwgeom.a -lgdal  -o rtpostgis.so</div><div>ld: warning: in ../rt_core/librtcore.a, file was built for unsupported file format which is not the architecture being linked (i386)</div><div>Undefined symbols:</div><div>  "_rt_raster_get_srid", referenced from:</div><div>      _RASTER_getSRID in rt_pg.o</div><div>  "_rt_band_get_pixel", referenced from:</div><div>      _RASTER_getPixelValue in rt_pg.o</div><div>  "_rt_raster_get_num_bands", referenced from:</div><div>      _RASTER_getNumBands in rt_pg.o</div><div>  "_rt_band_get_nodata", referenced from:</div><div>      _RASTER_getBandNoDataValue in rt_pg.o</div><div>  "_rt_raster_get_pixel_height", referenced from:</div><div>      _RASTER_getYPixelSize in rt_pg.o</div><div>  "_rt_raster_deserialize", referenced from:</div><div>      _RASTER_getPixelValue in rt_pg.o</div><div>      _RASTER_setBandNoDataValue in rt_pg.o</div><div>      _RASTER_getBandNoDataValue in rt_pg.o</div><div>      _RASTER_setBandHasNoDataValue in rt_pg.o</div><div>      _RASTER_getBandHasNoDataValue in rt_pg.o</div><div>      _RASTER_getBandPixelType in rt_pg.o</div><div>      _RASTER_setUpperLeftXY in rt_pg.o</div><div>      _RASTER_getYUpperLeft in rt_pg.o</div><div>      _RASTER_getXUpperLeft in rt_pg.o</div><div>      _RASTER_setSkewXY in rt_pg.o</div><div>      _RASTER_setSkew in rt_pg.o</div><div>      _RASTER_getYSkew in rt_pg.o</div><div>      _RASTER_getXSkew in rt_pg.o</div><div>      _RASTER_setPixelSizeXY in rt_pg.o</div><div>      _RASTER_setPixelSize in rt_pg.o</div><div>      _RASTER_getYPixelSize in rt_pg.o</div><div>      _RASTER_getXPixelSize in rt_pg.o</div><div>      _RASTER_getNumBands in rt_pg.o</div><div>      _RASTER_getHeight in rt_pg.o</div><div>      _RASTER_getWidth in rt_pg.o</div><div>      _RASTER_setSRID in rt_pg.o</div><div>      _RASTER_getSRID in rt_pg.o</div><div>      _RASTER_convex_hull in rt_pg.o</div><div>      _RASTER_to_bytea in rt_pg.o</div><div>      _RASTER_out in rt_pg.o</div><div>      _RASTER_dumpAsWKTPolygons in rt_pg.o</div><div>      _RASTER_to_binary in rt_pg.o</div><div>      _RASTER_getBandPath in rt_pg.o</div><div>      _RASTER_getBandPixelTypeName in rt_pg.o</div><div>  "_rt_context_set_message_handlers", referenced from:</div><div>      _get_rt_context in rt_pg.o</div><div>      _RASTER_dumpAsWKTPolygons in rt_pg.o</div><div>  "_rt_band_get_hasnodata_flag", referenced from:</div><div>      _RASTER_getBandHasNoDataValue in rt_pg.o</div><div>  "_rt_raster_set_pixel_sizes", referenced from:</div><div>      _RASTER_setPixelSizeXY in rt_pg.o</div><div>      _RASTER_setPixelSize in rt_pg.o</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>  "_rt_raster_from_hexwkb", referenced from:</div><div>      _RASTER_in in rt_pg.o</div><div>  "_rt_raster_get_width", referenced from:</div><div>      _RASTER_getWidth in rt_pg.o</div><div>  "_rt_band_set_hasnodata_flag", referenced from:</div><div>      _RASTER_setBandHasNoDataValue in rt_pg.o</div><div>  "_rt_raster_set_offsets", referenced from:</div><div>      _RASTER_setUpperLeftXY in rt_pg.o</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>  "_rt_raster_get_band", referenced from:</div><div>      _RASTER_getPixelValue in rt_pg.o</div><div>      _RASTER_setBandNoDataValue in rt_pg.o</div><div>      _RASTER_getBandNoDataValue in rt_pg.o</div><div>      _RASTER_setBandHasNoDataValue in rt_pg.o</div><div>      _RASTER_getBandHasNoDataValue in rt_pg.o</div><div>      _RASTER_getBandPixelType in rt_pg.o</div><div>      _RASTER_getBandPath in rt_pg.o</div><div>      _RASTER_getBandPixelTypeName in rt_pg.o</div><div>  "_rt_raster_get_y_offset", referenced from:</div><div>      _RASTER_getYUpperLeft in rt_pg.o</div><div>  "_rt_raster_to_hexwkb", referenced from:</div><div>      _RASTER_out in rt_pg.o</div><div>  "_rt_raster_get_pixel_width", referenced from:</div><div>      _RASTER_getXPixelSize in rt_pg.o</div><div>  "_rt_raster_dump_as_wktpolygons", referenced from:</div><div>      _RASTER_dumpAsWKTPolygons in rt_pg.o</div><div>  "_rt_raster_get_x_skew", referenced from:</div><div>      _RASTER_getXSkew in rt_pg.o</div><div>  "_rt_band_get_ext_path", referenced from:</div><div>      _RASTER_getBandPath in rt_pg.o</div><div>  "_rt_raster_serialize", referenced from:</div><div>      _RASTER_setBandNoDataValue in rt_pg.o</div><div>      _RASTER_setBandHasNoDataValue in rt_pg.o</div><div>      _RASTER_setUpperLeftXY in rt_pg.o</div><div>      _RASTER_setSkewXY in rt_pg.o</div><div>      _RASTER_setSkew in rt_pg.o</div><div>      _RASTER_setPixelSizeXY in rt_pg.o</div><div>      _RASTER_setPixelSize in rt_pg.o</div><div>      _RASTER_setSRID in rt_pg.o</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>      _RASTER_in in rt_pg.o</div><div>  "_rt_raster_get_y_skew", referenced from:</div><div>      _RASTER_getYSkew in rt_pg.o</div><div>  "_rt_raster_set_srid", referenced from:</div><div>      _RASTER_setSRID in rt_pg.o</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>  "_rt_raster_new", referenced from:</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>  "_rt_context_new", referenced from:</div><div>      _get_rt_context in rt_pg.o</div><div>      _RASTER_dumpAsWKTPolygons in rt_pg.o</div><div>  "_rt_band_set_nodata", referenced from:</div><div>      _RASTER_setBandNoDataValue in rt_pg.o</div><div>  "_rt_raster_get_height", referenced from:</div><div>      _RASTER_getHeight in rt_pg.o</div><div>  "_rt_raster_set_skews", referenced from:</div><div>      _RASTER_setSkewXY in rt_pg.o</div><div>      _RASTER_setSkew in rt_pg.o</div><div>      _RASTER_makeEmpty in rt_pg.o</div><div>  "_rt_raster_get_convex_hull", referenced from:</div><div>      _RASTER_convex_hull in rt_pg.o</div><div>  "_rt_raster_to_wkb", referenced from:</div><div>      _RASTER_to_bytea in rt_pg.o</div><div>      _RASTER_to_binary in rt_pg.o</div><div>  "_rt_raster_get_x_offset", referenced from:</div><div>      _RASTER_getXUpperLeft in rt_pg.o</div><div>  "_rt_band_get_pixtype", referenced from:</div><div>      _RASTER_getBandPixelType in rt_pg.o</div><div>      _RASTER_getBandPixelTypeName in rt_pg.o</div><div>ld: symbol(s) not found</div><div>collect2: ld returned 1 exit status</div><div>make[1]: *** [rtpostgis.so] Error 1</div><div>make: *** [pglib] Error 2</div><div>Jeff-Hamanns-MacBook-Pro:wktraster-0.1.6d hamannj$ </div></div><div><br></div><div>Which for a wide variety of reasons, I have to build lots of stuff with those ./configure switches, so I'm stuck with them. </div><div><br></div><div>I manually added the "-arch i386" to the rt_core Makefile, </div><div><br></div><div>CFLAGS=-g -O2 -arch i386 -fno-common -DPIC   $(LIBLWGEOM_CFLAGS) $(LIBGDAL_CFLAGS) $(ENABLE_DEVELOPMENT_CFLAGS) </div><div><br></div><div><div>and it's now builds, installs, everybody's happy. </div><div><br></div><div></div></div><div><div>test1=# select PostGIS_Raster_Lib_Version();</div><div> postgis_raster_lib_version </div><div>----------------------------</div><div> 0.1.6d</div><div>(1 row)</div><div><br></div><div>test1=# </div></div><div><br></div><div>I'm guessing the ./configure arguments aren't being sent to the subdirectory? </div><div><br></div><div>I have no idea how to make that fix that except for manually editing the Makefile, which I did. </div><div><br></div><div>Can I put  a request in, to have ./configure switches pass down to the subdirectories, please?</div><div><br></div><div>Thanks, </div><div>Jeff.</div><div><br></div><div><br></div><div><div><br><div>
<div>Jeff Hamann, PhD<br>PO Box 1421<br>Corvallis, Oregon 97339-1421<br>541-754-2457<br>jeff.hamann[at]forestinformatics[dot]com<br><a href="http://www.forestinformatics.com/">http://www.forestinformatics.com</a></div>
</div>
<br></div></div></body></html>