I migrated to 64-bit Ubuntu, and now I can't compile my extension. On 32-bit it works just fine. Someone know what is a problem? Thank you. I've got this error report.
$ make
g++ -shared -o extension.so main.o -lphpcpp -lpqxx -lpq -fPIC
/usr/bin/ld: //usr/local/lib/libpqxx.a(connection_base.o):
relocation R_X86_64_32 against `_ZN4pqxx17broken_connectionD1Ev'
can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libpqxx.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [extension.so] Error 1