[postgis-devel] 1.4 SVN Compile problems

Obe, Regina robe.dnd at cityofboston.gov
Fri Oct 10 11:12:23 PDT 2008


There doesn't seem to have been much going on in the loader code-wise

Maybe this got introduced when Mark put in a fix to help out those lovely Mac OSX users.

http://postgis.refractions.net/pipermail/postgis-commits/2008-August/000412.html

or the makefile changes Mark did in July
http://postgis.refractions.net/pipermail/postgis-commits/2008-July/000379.html

and also removing compat.h (what is compat.h for anyway - I see it a lot in general code)

I wasn't even attempting to try to compile 1.4 back then,  so can't say how long this has been.


Thanks,
Regina



-----Original Message-----
From: postgis-devel-bounces at postgis.refractions.net on behalf of Dane Springmeyer
Sent: Fri 10/10/2008 1:44 PM
To: PostGIS Development Discussion
Subject: Re: [postgis-devel] 1.4 SVN Compile problems
 
I just happen to be rebuilding an ubuntu 8.04 server and ran into a  
similar missing lib that I've never needed to install before.

I'm building from postgis SVN Head

This fixed it:

sudo apt-get install libpam0g-dev

error below:

Cheers,

Dane


make[1]: Leaving directory `/home/dane/src/postgis/lwgeom'
make -C loader
make[1]: Entering directory `/home/dane/src/postgis/loader'
make -f Makefile.shp2pgsql all
make[2]: Entering directory `/home/dane/src/postgis/loader'
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer- 
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno- 
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/ 
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  - 
I/usr/include/tcl8.4  -c -o shpopen.o shpopen.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer- 
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno- 
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/ 
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  - 
I/usr/include/tcl8.4  -c -o dbfopen.o dbfopen.c
dbfopen.c:206: warning: 'rcsid' defined but not used
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer- 
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno- 
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/ 
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  - 
I/usr/include/tcl8.4  -c -o getopt.o getopt.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer- 
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno- 
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/ 
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  - 
I/usr/include/tcl8.4  -c -o shp2pgsql.o shp2pgsql.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer- 
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno- 
strict-aliasing -fwrapv -g shpopen.o dbfopen.o getopt.o shp2pgsql.o - 
lc -L/usr/lib -Wl,-Bsymbolic-functions -Wl,--as-needed  -lpgport - 
lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz - 
lreadline -lcrypt -ldl -lm  -o shp2pgsqlions -Wl,--as-needed  -lpgport  
-lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz - 
lreadline -lcrypt -ldl -lm  -o shp2pgsql
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
make[2]: *** [shp2pgsql] Error 1
make[2]: Leaving directory `/home/dane/src/postgis/loader'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dane/src/postgis/loader'
make: *** [loaderdumper] Error 2





On Oct 10, 2008, at 7:51 AM, Mark Cave-Ayland wrote:

> Obe, Regina wrote:
>> 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
>
> Hmmmm looks as if the extra library dependencies are being added by  
> PGXS for the PROGRAM target - I have no idea why it feels the need  
> to do this though? The quick fix is to add the krb5 development  
> headers which should be in a package named something similar to krb5- 
> devel or libkrb5-dev.
>
>
> ATB,
>
> Mark.
>
> -- 
> Mark Cave-Ayland
> Sirius Corporation - The Open Source Experts
> http://www.siriusit.co.uk
> T: +44 870 608 0063
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

_______________________________________________
postgis-devel mailing list
postgis-devel at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel




-----------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20081010/6214a73a/attachment.html>


More information about the postgis-devel mailing list