<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [postgis-devel] 1.4 SVN Compile problems</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>There doesn't seem to have been much going on in the loader code-wise<BR>
<BR>
Maybe this got introduced when Mark put in a fix to help out those lovely Mac OSX users.<BR>
<BR>
<A HREF="http://postgis.refractions.net/pipermail/postgis-commits/2008-August/000412.html">http://postgis.refractions.net/pipermail/postgis-commits/2008-August/000412.html</A><BR>
<BR>
or the makefile changes Mark did in July<BR>
<A HREF="http://postgis.refractions.net/pipermail/postgis-commits/2008-July/000379.html">http://postgis.refractions.net/pipermail/postgis-commits/2008-July/000379.html</A><BR>
<BR>
and also removing compat.h (what is compat.h for anyway - I see it a lot in general code)<BR>
<BR>
I wasn't even attempting to try to compile 1.4 back then,  so can't say how long this has been.<BR>
<BR>
<BR>
Thanks,<BR>
Regina<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: postgis-devel-bounces@postgis.refractions.net on behalf of Dane Springmeyer<BR>
Sent: Fri 10/10/2008 1:44 PM<BR>
To: PostGIS Development Discussion<BR>
Subject: Re: [postgis-devel] 1.4 SVN Compile problems<BR>
<BR>
I just happen to be rebuilding an ubuntu 8.04 server and ran into a <BR>
similar missing lib that I've never needed to install before.<BR>
<BR>
I'm building from postgis SVN Head<BR>
<BR>
This fixed it:<BR>
<BR>
sudo apt-get install libpam0g-dev<BR>
<BR>
error below:<BR>
<BR>
Cheers,<BR>
<BR>
Dane<BR>
<BR>
<BR>
make[1]: Leaving directory `/home/dane/src/postgis/lwgeom'<BR>
make -C loader<BR>
make[1]: Entering directory `/home/dane/src/postgis/loader'<BR>
make -f Makefile.shp2pgsql all<BR>
make[2]: Entering directory `/home/dane/src/postgis/loader'<BR>
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-<BR>
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-<BR>
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/<BR>
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -<BR>
I/usr/include/tcl8.4  -c -o shpopen.o shpopen.c<BR>
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-<BR>
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-<BR>
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/<BR>
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -<BR>
I/usr/include/tcl8.4  -c -o dbfopen.o dbfopen.c<BR>
dbfopen.c:206: warning: 'rcsid' defined but not used<BR>
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-<BR>
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-<BR>
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/<BR>
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -<BR>
I/usr/include/tcl8.4  -c -o getopt.o getopt.c<BR>
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-<BR>
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-<BR>
strict-aliasing -fwrapv -g -I. -I/usr/include/postgresql/8.3/server -I/<BR>
usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -<BR>
I/usr/include/tcl8.4  -c -o shp2pgsql.o shp2pgsql.c<BR>
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-<BR>
arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-<BR>
strict-aliasing -fwrapv -g shpopen.o dbfopen.o getopt.o shp2pgsql.o -<BR>
lc -L/usr/lib -Wl,-Bsymbolic-functions -Wl,--as-needed  -lpgport -<BR>
lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -<BR>
lreadline -lcrypt -ldl -lm  -o shp2pgsqlions -Wl,--as-needed  -lpgport <BR>
-lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -<BR>
lreadline -lcrypt -ldl -lm  -o shp2pgsql<BR>
/usr/bin/ld: cannot find -lpam<BR>
collect2: ld returned 1 exit status<BR>
make[2]: *** [shp2pgsql] Error 1<BR>
make[2]: Leaving directory `/home/dane/src/postgis/loader'<BR>
make[1]: *** [all] Error 2<BR>
make[1]: Leaving directory `/home/dane/src/postgis/loader'<BR>
make: *** [loaderdumper] Error 2<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Oct 10, 2008, at 7:51 AM, Mark Cave-Ayland wrote:<BR>
<BR>
> Obe, Regina wrote:<BR>
>> This is probably my ineptness at compiling, but I thought I would <BR>
>> try to<BR>
>> experiment with 1.4 and got errors when its trying to compile the<BR>
>> loader. Errors below.  If I go into lwgeom etc. other directories and<BR>
>> compile those separately, those seem to compile okay so seems to be <BR>
>> just<BR>
>> the loader that is giving me problems.  What changed between <BR>
>> 1.3.4SVN and 1.4SVN for the loader.  I didn't have<BR>
>> problems compiling 1.3.4SVN.<BR>
>> The others just seem to be warnings (which I don't remember getting<BR>
>> before) except for this part<BR>
>> lkrb5 -lz -lreadline -lcrypt -ldl -lm  -o shp2pgsql<BR>
>> /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/<BR>
>> ld:<BR>
>> cannot find -lkrb5<BR>
>> collect2: ld returned 1 exit status<BR>
>> This is on OpenSUSE 10.3 against a PostgreSQL 8.2.6 install<BR>
>> Thanks,<BR>
>> Regina<BR>
><BR>
> Hmmmm looks as if the extra library dependencies are being added by <BR>
> PGXS for the PROGRAM target - I have no idea why it feels the need <BR>
> to do this though? The quick fix is to add the krb5 development <BR>
> headers which should be in a package named something similar to krb5-<BR>
> devel or libkrb5-dev.<BR>
><BR>
><BR>
> ATB,<BR>
><BR>
> Mark.<BR>
><BR>
> --<BR>
> Mark Cave-Ayland<BR>
> Sirius Corporation - The Open Source Experts<BR>
> <A HREF="http://www.siriusit.co.uk">http://www.siriusit.co.uk</A><BR>
> T: +44 870 608 0063<BR>
> _______________________________________________<BR>
> postgis-devel mailing list<BR>
> postgis-devel@postgis.refractions.net<BR>
> <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>
<BR>
_______________________________________________<BR>
postgis-devel mailing list<BR>
postgis-devel@postgis.refractions.net<BR>
<A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
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.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>