Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39205 - tolua-5.0 undefined references, needs to be linked with libdl
Summary: tolua-5.0 undefined references, needs to be linked with libdl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 14:25 UTC by Andreas Kobara
Modified: 2004-04-12 10:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kobara 2004-01-23 14:25:06 UTC
tolua needs to be linked with libdl,
please patch the Makefile and add -ldl.


error-output:
=============
gcc -o ../../bin/tolua tolua.o toluabind.o -L../../lib -L/usr/lib -ltolua -llua -llualib -lm
/usr/lib/liblualib.so: undefined reference to `dlerror'
/usrgcc -o ../../bin/tolua tolua.o toluabind.o -L../../lib -L/usr/lib -ltolua -llua -llualib -lm
/usr/lib/liblualib.so: undefined reference to `dlerror'
/usr/lib/liblualib.so: undefined reference to `dlclose'
/usr/lib/liblualib.so: undefined reference to `dlopen'
/usr/lib/liblualib.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[1]: *** [../../bin/tolua] Error 1

Regards,
Andy.
Comment 1 SpanKY gentoo-dev 2004-02-28 02:11:06 UTC
i'm pretty sure this is a bug in lua

tolua links against liblualib, and since it calls functions in libdl, then it should be linked against libdl

oddly, /usr/lib/liblualib.so.5.0 is showing up as a static library on my machine ...
Comment 2 Tom Payne (RETIRED) gentoo-dev 2004-04-12 10:16:50 UTC
Simple add -ldl fix in CVS. 

Tom