lua-users home
lua-l archive

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


trying to build the bn and md5 from Luiz's amazing collection
( , I get this error:

gcc -fPIC -I/home/veleno/workspace/lua-5.1.4/src -ansi -pedantic -Wall
-O2    -c -o lbn.o lbn.c
gcc -fPIC -shared -fPIC -o lbn.o -lcrypto
/home/veleno/workspace/lua-5.1.4/src/lua test.lua
/home/veleno/workspace/lua-5.1.4/src/lua: error loading module 'bn'
from file '': cannot open shared object file: No such file or directory
stack traceback:
	[C]: ?
	[C]: in function 'require'
	test.lua:2: in main chunk
	[C]: ?
make: *** [test] Error 1

Note that I had to had -fPIC to make the compiler happy.
How should I modify the makefile to build on this architecture?
I'm testing using an ubuntu64 virtual machine installed on virtual-box.