From owner-freebsd-ports@FreeBSD.ORG Thu Jul 26 09:07:48 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F89916A41A for ; Thu, 26 Jul 2007 09:07:48 +0000 (UTC) (envelope-from filip@sdf.lonestar.org) Received: from sdf.lonestar.org (mx.freeshell.ORG [192.94.73.19]) by mx1.freebsd.org (Postfix) with ESMTP id C36EB13C46A for ; Thu, 26 Jul 2007 09:07:47 +0000 (UTC) (envelope-from filip@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:filip@faeroes.freeshell.org [192.94.73.9]) by sdf.lonestar.org (8.14.1/8.13.8) with ESMTP id l6Q97kkF004200 for ; Thu, 26 Jul 2007 09:07:46 GMT Received: (from filip@localhost) by sdf.lonestar.org (8.14.1/8.12.8/Submit) id l6Q97knW017821 for freebsd-ports@freebsd.org; Thu, 26 Jul 2007 09:07:46 GMT Date: Thu, 26 Jul 2007 09:07:46 +0000 From: Filip Lenaerts To: freebsd-ports@freebsd.org Message-ID: <20070726090745.GA7314@SDF.LONESTAR.ORG> References: <20070723145345.GC5781@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070723145345.GC5781@SDF.LONESTAR.ORG> User-Agent: Mutt/1.4.2.1i Subject: Re: ion-3 20070720: undefined reference to lua X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 09:07:48 -0000 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': http://filip.freeshell.org/log/ion-3.install.log (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/_liblua.so -> liblua.so.5 -r-xr-xr-x 1 root wheel 75444 Dec 15 2005 /usr/local/lib/_liblua.so.5 -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/_liblualib.so -> liblualib.so.5 -r-xr-xr-x 1 root wheel 57336 Dec 15 2005 /usr/local/lib/_liblualib.so.5 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 /usr/local/include/lua51/lauxlib.h /usr/local/include/lua51/lualib.h /usr/local/lib/lua51/liblua.a 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 filip