[postgis-users] osx make failure & shared libs for lstdc++

Byron Amerson byronea at u.washington.edu
Wed Dec 10 16:27:19 PST 2003


Hi  there,

I finally got some shared libs for libstdc++ for mac osx10.3, which are
not supported in mac's gcc-3.3. I had to build them myself from gcc-3.4
source code. Thanks to Benjamin Kosnik over at the libstdc++ list for that
tip.

So I built postgresql-7.4 against these new libs.  And now when I run make
on postgis-cvs(12-10-03), make breaks with the following error:

< snip >

cc1plus: warning: "-Wmissing-declarations" is valid for C/ObjC but not for
C++
gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND
-DSYSCONFDIR='"/usr/local/pgsql/etc"'  -DUSE_VERSION=74
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ
-DUSE_STATS  -I../../src/include   -c -o postgis_algo.o postgis_algo.c
ar crs libpostgis.a `lorder postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o | tsort`
tsort: cycle in data
tsort: postgis_geos.o
tsort: postgis_geos_wrapper.o
tsort: cycle in data
tsort: postgis_fn.o
tsort: postgis_inout.o
ranlib libpostgis.a
gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND
-DSYSCONFDIR='"/usr/local/pgsql/etc"'  -DUSE_VERSION=74
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ
-DUSE_STATS  -bundle postgis_debug.o postgis_ops.o postgis_fn.o
postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o
postgis_gist_72.o postgis_estimate.o postgis_geos.o postgis_geos_wrapper.o
postgis_algo.o -L../../src/port -L../../src/port  -lstdc++
-L/usr/local/lib -lgeos -L/usr/local/lib -lproj -bundle_loader
../../src/backend/postgres   -o libpostgis.so.0.8
ld: can't open: ../../src/backend/postgres (No such file or directory,
errno = 2)
make: *** [libpostgis.so.0.8] Error 1

I am not savvy enough to know if this is related to the libstdc++ issue or
not.

Byron Amerson
MS student
University of Washington
Department of Earth and Space Sciences




More information about the postgis-users mailing list