lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello Luiz, 
thanks for your help.

On Wed, Jun 9, 2010 at 3:30 PM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>       bn.so: cannot open shared object file: No such file or directory

I'm not sure but it seems the linker is not finding libcrypto.
Run "ldd bn.so" and check that libcrypto is found or something else is missing.

well, it seems it doesn't find lua libraries..


ldd -v -d -r bn.so 
	linux-vdso.so.1 =>  (0x00007fff9a5ff000)
	libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007f403d60d000)
	libc.so.6 => /lib/libc.so.6 (0x00007f403d28b000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f403d086000)
	libz.so.1 => /lib/libz.so.1 (0x00007f403ce6f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f403dbb2000)
undefined symbol: lua_getfield	(./bn.so)
undefined symbol: lua_setmetatable	(./bn.so)
undefined symbol: lua_pushstring	(./bn.so)
undefined symbol: lua_tonumber	(./bn.so)
undefined symbol: lua_pushnumber	(./bn.so)
undefined symbol: luaL_checkudata	(./bn.so)
undefined symbol: lua_pushinteger	(./bn.so)
undefined symbol: lua_settable	(./bn.so)
undefined symbol: luaL_checklstring	(./bn.so)
undefined symbol: luaL_newmetatable	(./bn.so)
undefined symbol: lua_settop	(./bn.so)
undefined symbol: lua_pushvalue	(./bn.so)
undefined symbol: lua_newuserdata	(./bn.so)
undefined symbol: lua_pushboolean	(./bn.so)
undefined symbol: lua_type	(./bn.so)
undefined symbol: lua_setfield	(./bn.so)
undefined symbol: lua_replace	(./bn.so)
undefined symbol: luaL_register	(./bn.so)
undefined symbol: lua_tolstring	(./bn.so)
undefined symbol: lua_pushlstring	(./bn.so)
undefined symbol: luaL_error	(./bn.so)
undefined symbol: luaL_optinteger	(./bn.so)
undefined symbol: lua_pushnil	(./bn.so)

	Version information:
	./bn.so:
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
		libcrypto.so.0.9.8 (OPENSSL_0.9.8) => /lib/libcrypto.so.0.9.8
	/lib/libcrypto.so.0.9.8:
		libdl.so.2 (GLIBC_2.2.5) => /lib/libdl.so.2
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
	/lib/libc.so.6:
		ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
		ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
	/lib/libdl.so.2:
		ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
		libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
	/lib/libz.so.1:
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6

 
As mentioned in the web page above, just add -fPIC to CFLAGS.

right..i missed that page. thanks for that.