[postgis-devel] 1.4 SVN Compile problems

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Mon Oct 13 03:54:10 PDT 2008


Obe, Regina wrote:
> 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

Again this stems from the fact that by using PGXS, the compiler 
flags/link lines are automatically generated for the correct platform by 
PostgreSQL. The complete list of dependencies will eventually come down 
to which options were used to compile the version of PostgreSQL you are 
using with PostGIS...


ATB,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063



More information about the postgis-devel mailing list