[Freegis-list] Compile shapelib (shared) on Solaris

Eric Pyle eric.pyle at na.teleatlas.com
Wed Jul 3 18:32:48 CEST 2002


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!

The result:
boston% uname -a
SunOS boston 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-80
boston% gmake lib
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\"
-DVERSION=\"1.2.9\" -DSTDC_HEADERS=1  -I. -I. -I/usr/local/include    -g
-O2 -c shpopen.c
mkdir .libs
gcc -DPACKAGE=\"libshp\" -DVERSION=\"1.2.9\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c  -fPIC -DPIC shpopen.c -o
.libs/shpopen.lo
gcc -DPACKAGE=\"libshp\" -DVERSION=\"1.2.9\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c shpopen.c -o shpopen.o >/dev/null 2>&1
...
...<more messages from gmake>
...
gcc -DPACKAGE=\"libshp\" -DVERSION=\"1.2.9\" -DSTDC_HEADERS=1 -I. -I.
-I/usr/local/include -g -O2 -c dbfopen.c -o dbfopen.o >/dev/null 2>&1
mv -f .libs/dbfopen.lo dbfopen.lo
/bin/sh ./libtool --mode=link gcc  -g -O2  -o libshp.la -rpath
/usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo
rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
gcc -shared  shpopen.lo shptree.lo dbfopen.lo  -lc  -Wl,-soname
-Wl,libshp.so.1 -o .libs/libshp.so.1.0.1
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libshp.so.1: cannot open file: No such file or directory

ld: fatal: File processing errors. No output written to
.libs/libshp.so.1.0.1
collect2: ld returned 1 exit status
gmake: *** [lib] Error 1

--
Eric Pyle | Test Engineer | Tele Atlas North America, Inc.
A Unit of Tele Atlas NV | 31 Old Etna Rd. | Lebanon, NH 03766
(603) 448-0001 x23
eric.pyle at na.teleatlas.com






More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)