[Qt-interest] Problem with libqsqlpsql.so ?

Bill King bill.king at nokia.com
Tue Nov 17 05:33:26 CET 2009


On 11/17/2009 01:52 PM, ext Mhayk Whandson wrote:
> When I am executing my application the message is showed and crash:
>
> $ ./test
> ./test: symbol lookup error:
> /opt/qtsdk-2009.04/qt/plugins/sqldrivers/libqsqlpsql.so: undefined
> symbol: CRYPTO_num_locks
>
> $ strace ./test
> ....
> getsockopt(18, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
> getsockname(18, {sa_family=AF_INET, sin_port=htons(51110),
> sin_addr=inet_addr("10.10.10.10")}, [16]) = 0
> poll([{fd=18, events=POLLOUT|POLLERR}], 1, -1) = 1 ([{fd=18, revents=POLLOUT}])
> rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
> send(18, "\0\0\0\10\4\322\26/", 8, 0)   = 8
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> poll([{fd=18, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=18, revents=POLLIN}])
> recv(18, "S", 16384, 0)                 = 1
> writev(2, [{"./test", 9}, {": ", 2}, {"symbol lookup error", 19}, {":
> ", 2}, {"/opt/qtsdk-2009.04/qt/plugins/sq"..., 55}, {": ", 2},
> {"undefined symbol: CRYPTO_num_loc"..., 34}, {"", 0}, {"", 0}, {"\n",
> 1}], 10./test: symbol lookup error:
> /opt/qtsdk-2009.04/qt/plugins/sqldrivers/libqsqlpsql.so: undefined
> symbol: CRYPTO_num_locks
> ) = 124
> exit_group(127)                         = ?
>
> What is this ? Could help me ???
>
>
> best regards,
>
>   
This is an unusual location to be looking for it. From what I can tell,
this is openSSL code. we reference it in the Qt OpenSSL code, but not at
all in the postgresql code. I'm not sure why this is happening there...

if you do an ldd on nm /usr/lib/libcrypto.a | grep CRYPTO_num_locks, it
should tell you it links to "libcrypto.so.0.9.8 =>
/usr/lib/libcrypto.so.0.9.8 (0xb774a000)" or similar.

if it doesn't, that library could be missing.

if you then try "nm /usr/lib/libcrypto.a | grep CRYPTO_num_locks" you
should get something along the lines of: "00000000 T CRYPTO_num_locks"

That T there is the crucial bit. That says that it's there/being
exported from that library.

If you don't see that line, then there's an issue there (and may need to
reinstall the libopenssl package to provide it.

Hope this helps a bit. Any further, and I can't help you I'm sorry.

-- 
Bill King, Software Engineer
Qt Development Frameworks, Nokia Pty Ltd
Brisbane Office

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091117/c258d037/attachment.html 


More information about the Qt-interest-old mailing list