lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 09.05.2013 21:48 schröbte Daniel Bolgheroni:
On Thu, May 09, 2013 at 03:45:57PM -0300, Luiz Henrique de Figueiredo wrote:
What does "ldd lgdal.so" report?

$ ldd lgdal.so
lgdal.so:
         Start            End              Type Open Ref GrpRef Name
         00001d910765e000 00001d9107a65000 dlib 1    0   0      /home/dbolgheroni/nmodeller/lgdal.so
         00001d9113824000 00001d9113c4e000 rlib 0    1   0      /usr/local/lib/liblua5.1.so.5.1

Do you need to link with liblua on your platform? On some Unices (e.g. Linux, BSDs) Lua exports its symbols from the executable by default ...

         00001d9113c4e000 00001d9114076000 rlib 0    10   0      /usr/lib/libm.so.8.0
         00001d910f15f000 00001d910ff00000 rlib 0    1   0      /usr/local/lib/libgdal.so.19.0
         00001d9107e9c000 00001d91082c2000 rlib 0    1   0      /usr/local/lib/libgeos_c.so.4.0
         00001d9111e86000 00001d911242c000 rlib 0    2   0      /usr/local/lib/libgeos.so.7.1
         00001d9116215000 00001d9116724000 rlib 0    3   0      /usr/lib/libstdc++.so.55.0

Is your luaopen_* function mangled by any chance?
$ nm lgdal.so | grep luaopen
or
$ readelf -s lgdal.so | grep luaopen