[postgis-devel] 1.4 SVN Compile problems
Dane Springmeyer
blake at hailmail.net
Fri Oct 10 10:44:53 PDT 2008
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
More information about the postgis-devel
mailing list