[postgis-users] PostGIS 2.0 (SVN rev7683) from source on Lion using MacPorts for dependencies

JP Glutting jpglutting at gmail.com
Sat Aug 27 08:59:34 PDT 2011


I am bumping this post up. I was never able to compile rev 7683 - I am
working with revision 7059, which I was able to compile. I am trying to
compile revision 7789 now, and I am having the same problem. This is what I
get:

...
  "_lwgeom_calculate_gbox_geodetic", referenced from:
      _compute_geography_stats in geography_estimate.o
      _geography_gist_selectivity in geography_estimate.o
      _geography_area in geography_measurement.o
  "_gserialized_get_type", referenced from:
      _geography_bestsrid in geography_measurement.o
      _geography_covers in geography_measurement.o
      _geography_perimeter in geography_measurement.o
  "_lwgeom_calculate_gbox_cartesian", referenced from:
      _geography_bestsrid in geography_measurement.o
  "_lwgeom_covers_lwgeom_sphere", referenced from:
      _geography_covers in geography_measurement.o
  "_gserialized_get_gbox_p", referenced from:
      _geography_point_outside in geography_measurement.o
  "_gbox_pt_outside", referenced from:
      _geography_point_outside in geography_measurement.o
  "_lwgeom_area_sphere", referenced from:
      _geography_area in geography_measurement.o
  "_lwgeom_area_spheroid", referenced from:
      _geography_area in geography_measurement.o
  "_gserialized_datum_get_gbox_p", referenced from:
      _compute_geometry_stats in geometry_gist_selectivity.o
      _geometry_gist_sel_2d in geometry_gist_selectivity.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/k0/lzz_jzld03d8yg881mnbh7_h0000gp/T//ccgj6uq8.out (No such file
or directory)
make[1]: *** [postgis-2.0.so] Error 1
make: *** [all] Error 1

Is anyone else using Macports? Are there any tricks I could try to get this
to compile? I would like to use ST_SummaryStats for some raster analysis I
need to do.

Thanks,
JP


On Mon, Aug 1, 2011 at 2:14 PM, JP Glutting <jpglutting at gmail.com> wrote:

> Hello All,
>
> I'm trying to build PostGIS based on MacPorts dependencies (GEOS and
> PostgreSQL 9.0) on OS X 10.7 (Lion) with the new XCode. Macports puts
> everything into /opt/local.
>
> I amsetting the following environmental variables:
>
> export CPPFLAGS=-I/opt/local/include
> export LDFLAGS=-L/opt/local/lib
> export CPATH=/opt/local/include
> export LIBRARY_PATH=/opt/local/lib
>
> configuring with:
>
> ./configure --with-projdir=/opt/local --with-raster
>
> and compiling. I keep getting the following error:
>
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/k0/lzz_jzld03d8yg881mnbh7_h0000gp/T//ccWpI3E5.out (No such file
> or directory)
> make[1]: *** [postgis-2.0.so] Error 1
> make: *** [all] Error 1
>
> I tried configuring using Wiliam Kyngsbury's options:
>
>  export CFLAGS="-Os -arch i386 -arch x86_64"
>
> export PG_CPPFLAGS="-arch i386 -arch x86_64"
>
> export SHLIB_LINK="-arch i386 -arch x86_64"
>
> export LDFLAGS="-arch i386 -arch x86_64"
>
>
> but that doesn't seem to help. Any hints? What should I try to get more
> information on the problem?
>
>
> Thanks,
>
> JP
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110827/72ced9f9/attachment.html>


More information about the postgis-users mailing list