Y
yhyun.kim
Hi, I'm Kent.
Let's get to the point.
To do system test easily, I made some lua wrappers for our legacy
system with SWIG. And also I wanted to theses things to be pluggable.
So I made them as several shared libraries. After I got everything to
test a whole system, I had a undefined symbol problem.
As I said before, there were several shared libraries, such as lua
script engine and some lua wrappers for our legacy system. In my test
app, I loaded lua script engine first and ran it. After that I typed
some lua command to load lua wrappers and got a undefined symbol
problem.
The problem was that a lua wrapper couldn't find the symbol, for
example "lua_getmetatable" function in lua core apis. This
"lua_getmetatable" function already exist in lua script engine shared
library, I checked it with nm, and this library had been already
loaded by my test app. Which means my test app can see all the symbols
of lua core apis. So I thought lua wrappers can find the symbols to be
needed by themselves after they are loaded by my test app. Hoever,
it's not working.
Why? I really don't know. Can anybody help me?
Thanks in advance.
Kent.
Let's get to the point.
To do system test easily, I made some lua wrappers for our legacy
system with SWIG. And also I wanted to theses things to be pluggable.
So I made them as several shared libraries. After I got everything to
test a whole system, I had a undefined symbol problem.
As I said before, there were several shared libraries, such as lua
script engine and some lua wrappers for our legacy system. In my test
app, I loaded lua script engine first and ran it. After that I typed
some lua command to load lua wrappers and got a undefined symbol
problem.
The problem was that a lua wrapper couldn't find the symbol, for
example "lua_getmetatable" function in lua core apis. This
"lua_getmetatable" function already exist in lua script engine shared
library, I checked it with nm, and this library had been already
loaded by my test app. Which means my test app can see all the symbols
of lua core apis. So I thought lua wrappers can find the symbols to be
needed by themselves after they are loaded by my test app. Hoever,
it's not working.
Why? I really don't know. Can anybody help me?
Thanks in advance.
Kent.