[Libpqxx-general] unable to link with applications under RHEL5.1

Leon Mergen leon at solatis.com
Sat Dec 1 20:34:29 UTC 2007


Hello,

I'm trying to install an application that uses libpqxx-2.6.9 on a
RHEL5.1server, but I'm not having much luck. It seems like redhat has
brought the
Fedora problems reported in this thread:

http://pgfoundry.org/pipermail/libpqxx-general/2007-September/000011.html

To their enterprise distribution. Since redhat doesn't provide any pre-built
libpqxx packages, I need to compile and install it myself, but when linking
to an application (for example, doing a 'make check'), I get this error:

test001.o: In function
`pqxx::internal::PQAlloc<pqxx::internal::result_data>::freemem()':
/root/downloads/libpqxx-2.6.9/test/../include/pqxx/result.hxx:65: undefined
reference to
`pqxx::internal::freemem_result_data(pqxx::internal::result_data*)'
/root/downloads/libpqxx-2.6.9/test/../include/pqxx/result.hxx:65: undefined
reference to
`pqxx::internal::freemem_result_data(pqxx::internal::result_data*)'
collect2: ld returned 1 exit status

So, it looks like that function isn't defined.. but when looking at result.o,
I see this:

[root at solatis4 src]# objdump -t ./result.o | grep freemem_result_data
0000000000000f80 g F .text 000000000000002c .hidden
_ZN4pqxx8internal19freemem_result_dataEPNS0_11result_dataE
[root at solatis4 src]#

So, as far as i can see, there is a function defined there that matches the
parameters, so I have *no* idea why the linking doesn't work. I tried
building the latest trunk version of pqxx, but that doesn't compile.

Anyone has any suggestions on what to do, and/or how to fix this ?

Thanks in advance!

Regards,

Leon Mergen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20071201/6a378540/attachment.html 


More information about the Libpqxx-general mailing list