Public bug reported:

1) System info:
Description:    Ubuntu 14.04.1 LTS
Release:        14.04

2) Package info:
lua-bitop:
  Installed: 1.0.2-2

3) Shared library dependencies for LUA 5.1-version:
$ ldd 5.1-bitop/bit.so
        linux-vdso.so.1 =>  (0x00007fffe4bfc000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f36f1bdc000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f36f21b7000)

Notice how liblua5.1.so is missing from the list. On a Perl-script running 
Inline::LUA following error message will be emitted:
"error: error loading module 'bit' from file 
'/usr/lib/x86_64-linux-gnu/lua/5.1/bit.so':
        /usr/lib/x86_64-linux-gnu/lua/5.1/bit.so: undefined symbol: lua_gettop"

Info: Perl doesn't use LUA 5.2 in it's bindings, only LUA 5.1.

4) Build warnings gone, Perl-script working:
dpkg-shlibdeps: warning: symbol lua_gettop used by 
debian/lua-bitop/usr/lib/x86_64-linux-gnu/liblua5.1-bitop.so.0.0.0 found in 
none of the  libraries

5) This is what I'd like to happen:
$ ldd /usr/lib/x86_64-linux-gnu/liblua5.1-bitop.so.0.0.0
        liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 
(0x00007fdc61c2d000)

I managed to manually build a library with linker options:
CLIB_CFLAGS=-Wl,--no-as-needed -llua5.1
and that fixes the issue.

** Affects: lua-bitop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1454294

Title:
  liblua dependency missing, causing Perl Inline to fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lua-bitop/+bug/1454294/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to