RPM Community Forums

Mailing List Message of <rpm-devel>

rename internal lua symbols ?

From: Anders F Björklund <afb@rpm5.org>
Date: Mon 10 Mar 2008 - 10:08:23 CET
Message-Id: <57D601A8-61D0-4FDE-8C29-7522841DB8EB@rpm5.org>

When using a librpm with "internal" Lua, I'm running into
library conflicts with a program also using Lua... (=APT)

/usr/bin/ld: multiple definitions of symbol _luaA_pushobject
/usr/local/lib/librpmmisc.dylib(liblua_la-lapi.o) definition of  
_luaA_pushobject
./.libs/liblua.a(liblua_la-lapi.o) definition of _luaA_pushobject in  
section (__TEXT,__text)
### and so on, and so forth (for all used liblua functions)

While this can be avoided by using the same shared libs,
or using libtool and have them both use same static lib -
shouldn't the exported symbols be renamed/prefix for RPM ?
(i.e. like we are doing for the internal version of zlib)

--anders
Received on Mon Mar 10 10:08:34 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.