Package: liblua5.1-0-dev
Version: 5.1.3-1
Severity: normal

Let's say luatest.c is a simple lua program.

$ pkg-config lua5.1 --cflags --libs --static
-I/usr/include/lua5.1  -llua5.1 -lm  
$ gcc -static luatest.c `pkg-config lua5.1 --cflags --libs --static`     
/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/liblua5.1.a(loadlib.o): In 
function `ll_loadfunc':
(.text+0x7a4): undefined reference to `dlsym'
/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/liblua5.1.a(loadlib.o): In 
function `ll_loadfunc':
(.text+0x7b2): undefined reference to `dlerror'
/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/liblua5.1.a(loadlib.o): In 
function `ll_loadfunc':
(.text+0x87d): undefined reference to `dlopen'
/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/liblua5.1.a(loadlib.o): In 
function `ll_loadfunc':
(.text+0x893): undefined reference to `dlerror'
/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/liblua5.1.a(loadlib.o): In 
function `gctm':
(.text+0xd8c): undefined reference to `dlclose'
collect2: ld returned 1 exit status
$

This indicates that -ldl shoud be listed for static linker flags.

Helmut

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Versions of packages liblua5.1-0-dev depends on:
ii  libc6-dev [libc-dev]          2.7-13     GNU C Library: Development Librari
ii  liblua5.1-0                   5.1.3-1    Simple, extensible, embeddable pro
ii  libreadline5-dev              5.2-3      GNU readline and history libraries

Versions of packages liblua5.1-0-dev recommends:
pn  libtool                       <none>     (no description available)
ii  pkg-config                    0.22-1     manage compile and link flags for 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to