blitz-research / blitzmax

BlitzMax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[pub.lua] libdl

kfprimm opened this issue · comments

While taking a stab at the 3D audio stuff, I wiped out my BlitzMax install and cloned it again. Forgot to mention this before.

I'm running Ubuntu 14.04 x64. No idea why this doesn't happen with other installs.

Compiling:setlistener.bmx
flat assembler  version 1.68  (1048560 kilobytes memory)
3 passes, 7381 bytes.
Linking:setlistener
/usr/bin/ld: /home/kevin/blitzmax/mod/pub.mod/lua.mod/lua.debug.linux.x86.a(loadlib.c.debug.linux.x86.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
//lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Build Error: Failed to link /home/kevin/blitzmax/mod/maxb3d.mod/audio3d.mod/doc/setlistenerkevin@phoenix:~/blitzmax/mod/maxb3d.mod/audio3d.mod/doc$ ../../../../bin/bmk makeapp -a -d setlistener.bmx 

This can be easily fixed in mod/pub.lua/lua.bmx by inserting:

?Linux
Import "-ldl"
?

I don't see this being an issue with any other linux envs as dl.so is clearly being linked some which way because lua requires it.

Thanks and apologies for delay. Code added.