[Freegis-list] Compile shapelib (shared) on Solaris
Jan-Oliver Wagner
jan at intevation.de
Tue Jul 9 19:57:10 CEST 2002
Hi Eric,
On Wed, Jul 03, 2002 at 12:32:48PM -0400, Eric Pyle wrote:
> I'm trying to compile shapelib 1.2.9 as a shared library on a Solaris
> system and am getting an error. I use the command "gmake lib". I can
> "gmake" with no problem, but I understand I need to make the shared
> version to use with gen2shp. Alternatively, I would be happy to modify
> gen2shp to link statically if someone can point the way. Thanks!
I tried on:
| cheops shapelib-1.2.9 64: uname -a
| SunOS cheops 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-1
and no serious problem occured.
You should make sure to use the CC=gcc and the correct ld.
For the latter you might try to manually execute:
| ld -G -h libshp.so.1 -o .libs/libshp.so.1.0.1 shpopen.lo shptree.lo dbfopen.lo -lc
instead of using the makefile-executed version:
| /usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.1.0.1 shpopen.lo shptree.lo dbfopen.lo -lc
Best
Jan
--
Jan-Oliver Wagner http://intevation.de/~jan/
Intevation GmbH http://intevation.de/
FreeGIS http://freegis.org/
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)