[bind10-dev] failed unittests

Jelte Jansen jelte at isc.org
Mon Dec 5 09:23:53 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/30/2011 11:58 PM, JINMEI Tatuya / 神明達哉 wrote:
>>
>> But an older sqlite3 which does not have that symbol is provided with 
>> the operating system.
>>
>> Using ldd on the .libs/libdatasrc.so.0 shows it linked to correct one.
>>
>> Looks like since the LD_LIBRARY_PATH is set it overrides the builtin 
>> RPATH on this platform's dynamic linker.
> 
> If that's the reason it will be solved with #1292.
> 

It's not. Or at least, not just that.

Just looked at that machine, the problem is that the test script needs
some sqlite3 itself, and it does import sqlite3.

That in itself would be fine, however, since ~jreed/opt/pkg is *not* in
LD_LIBRARY_PATH, python will load the system-install libsqlite3.

That is *also* not a problem (the python wrappers work fine with the old
version), but after we load our datasource wrappers, and the dynamic
library loader sees that we need libsqlite3 (with the ~jreed/opt/pkg
hint), and will reuse the one it loaded already. And then we get missing
symbols.

So we need to either add such custom paths to the LD_LIBRARY_PATH, or
even simpler, move the import sqlite3 line in the test down a few lines
(so our libs are hit first)

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7cjagACgkQ4nZCKsdOncU/RgCeNQYY/P5JYIC+65vilnLmM/we
6vYAoJ9awhx715vHxmFixqDKfMx0Nirz
=xYyh
-----END PGP SIGNATURE-----



More information about the bind10-dev mailing list