ion-3 20070720: undefined reference to lua

Filip Lenaerts filip at
Thu Jul 26 09:07:48 UTC 2007

On Mon, Jul 23, 2007 at 02:53:45PM +0000, Filip Lenaerts wrote:
> : undefined reference to `lua_tolstring'
> ../../libextl/libextl.a(luaextl.o)(.text+0x3a1): In function `extl_dopath':
> : undefined reference to `luaL_checklstring'
> ...
> full script output of 'make install': (43K)
> i reinstalled lua5 to make sure i have recent libs in /usr/local/lib.
> has anyone an idea what is going wrong here?

replying to myself, as i have found the problem.

ion-3 requires lua51.  however it seems that the lua50 left some libraries 
behind (pkg tools don't seem to remove those at deinstall/delete):

(here already prefixed by me with "_")

 $ ls -l /usr/local/lib/_liblua*
lrwxr-xr-x  1 root  wheel     11 Dec 15  2005 /usr/local/lib/ ->
-r-xr-xr-x  1 root  wheel  75444 Dec 15  2005 /usr/local/lib/
-r--r--r--  1 root  wheel  74088 Dec 15  2005 /usr/local/lib/_liblualib.a
lrwxr-xr-x  1 root  wheel     14 Dec 15  2005 /usr/local/lib/ ->
-r-xr-xr-x  1 root  wheel  57336 Dec 15  2005 /usr/local/lib/

a UPDATING entry of 20060506 concerning lua and kde mentioned that lua50 and 
lua51 are incompatible.  so i renamed the libraries, reinstalled lua5 (which 
doesn't  install libraries here):

$ pkg_info -L lua-5.1.1_2 | grep lib

the UPDATING entry mentions that kde stuff break with lua51 and that you 
have to downgrade to lua50.  so i'm wondering what to do if i have a kde
based app (e.g. psi).  happily, i try to keep away as far as possible from 
them, but ymmv :) 

btw ion-3 is installed and working


More information about the freebsd-ports mailing list