[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:


and then I've applied this pach:



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:


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

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
make: *** [liblwgeom] Error 2


Lorenzo Perone

More information about the postgis-users mailing list