[postgis-users] problems with dpkg-buildpackage on ubuntu 5.10 amd64

Lorenzo Perone lorenzo.perone at gmail.com
Fri Apr 21 07:05:43 PDT 2006


I've followed theese steps:

"The order that you'll want to build the binary packages is

proj                          OK
geos                        OK
postgresql-8.1          OK
postgis1"                 NO

"In order to use the GEOS support, you *may* need to specially compile
your version of PostgreSQL to link the C++ runtime library.
To do this, invoke the PgSQL configuration script this way:
LDFLAGS=-lstdc++ ./configure --your-options-go-here"

but I couldn't find the right way to do this, whats the file (in the
compressed archive?) have I to modify?

I've used this source package:

http://www.orcaware.com/packages/ubuntu/breezy/postgis1/postgis1_1.0.6.orig.tar.gz

and then I've applied this pach:

http://www.orcaware.com/packages/ubuntu/breezy/postgis1/postgis1_1.0.6-0zajac1.diff.gz

with:

zcat postgis1_1.0.6-0zajac1.diff.gz | patch -p0

and then I've moved the folder postgis1-1.0.6 into the build tree:

/postgresql-8.1-8.1.3/build-tree/postgresql-8.1.3/contrib

I've tryed to use dpkg-buildpackage -us -uc -rfakeroot 2>&1 | tee
../log-PACKAGE_NAME

but here is the resault:

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[1]: *** [liblwgeom.so.1.0] Error 1
make[1]: Leaving directory
`/home/perone/da_compilare/postgresql-8.1-8.1.3/build-tree/postgresql-8.1.3/contrib/postgis1-1.0.6/lwgeom'
make: *** [liblwgeom] Error 2

Thanks...
 Lorenzo



Lorenzo Perone



More information about the postgis-users mailing list