[postgis-devel] 1.4 SVN Compile problems

Obe, Regina robe.dnd at cityofboston.gov
Fri Oct 10 07:31:06 PDT 2008


This is probably my ineptness at compiling, but I thought I would try to
experiment with 1.4 and got errors when its trying to compile the
loader. Errors below.  If I go into lwgeom etc. other directories and
compile those separately, those seem to compile okay so seems to be just
the loader that is giving me problems.  

What changed between 1.3.4SVN and 1.4SVN for the loader.  I didn't have
problems compiling 1.3.4SVN.

The others just seem to be warnings (which I don't remember getting
before) except for this part
lkrb5 -lz -lreadline -lcrypt -ldl -lm  -o shp2pgsql
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld:
cannot find -lkrb5
collect2: ld returned 1 exit status

This is on OpenSUSE 10.3 against a PostgreSQL 8.2.6 install

Thanks,
Regina

gcc -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g  -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I. -I/usr/include/pgsql/server
-I/usr/include/pgsql/internal -D_GNU_SOURCE   -c -o shpopen.o shpopen.c
shpopen.c: In function 'SHPWriteHeader':
shpopen.c:315: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
shpopen.c:325: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
shpopen.c:340: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
shpopen.c: In function 'SHPOpen':
shpopen.c:455: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
shpopen.c:465: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
shpopen.c:544: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
shpopen.c: In function 'SHPCreate':
shpopen.c:713: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
shpopen.c:722: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
shpopen.c: In function 'SHPReadObject':
shpopen.c:1325: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
gcc -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g  -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I. -I/usr/include/pgsql/server
-I/usr/include/pgsql/internal -D_GNU_SOURCE   -c -o dbfopen.o dbfopen.c
dbfopen.c: In function 'DBFWriteHeader':
dbfopen.c:286: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
dbfopen.c:287: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
dbfopen.c:297: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFFlushRecord':
dbfopen.c:320: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFUpdateHeader':
dbfopen.c:340: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c:348: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFWriteAttribute':
dbfopen.c:1100: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFWriteAttributeDirectly':
dbfopen.c:1269: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFWriteTuple':
dbfopen.c:1415: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFReadTuple':
dbfopen.c:1459: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: At top level:
dbfopen.c:206: warning: 'rcsid' defined but not used
gcc -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g  -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I. -I/usr/include/pgsql/server
-I/usr/include/pgsql/internal -D_GNU_SOURCE   -c -o getopt.o getopt.c
gcc -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g  -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I. -I/usr/include/pgsql/server
-I/usr/include/pgsql/internal -D_GNU_SOURCE   -c -o shp2pgsql.o
shp2pgsql.c
gcc -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g  -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing shpopen.o dbfopen.o getopt.o shp2pgsql.o -lc
-L/usr/lib  -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -lcrypt
-ldl -lm  -o shp2pgsql
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld:
cannot find -lkrb5
collect2: ld returned 1 exit status
make[2]: *** [shp2pgsql] Error 1
make[2]: Leaving directory `/home/linux/projects/postgis-svn/loader'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/linux/projects/postgis-svn/loader'
make: *** [loaderdumper] Error 2
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.



More information about the postgis-devel mailing list