lua-users home
lua-l archive

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

Hi Roberto,

It's better now: attrib.lua passes all necessary tests. Unfortunately,
makefile did not work out of the box for me, I got errors like (Ubuntu
14.04 64bit):

gcc -Wall -O2 -I../../ -ansi -shared -o lib1.c
/usr/bin/ld: /tmp/ccZDpKYW.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
/tmp/ccZDpKYW.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [] Error 1

So I backported makefile for aux libs from the 5.2.0 suite, modified
file attached.

2016-01-18 20:23 GMT+03:00 Roberto Ierusalimschy <>:
>> I'm trying to run a test suite for Lua 5.1
>> (
>> Citing
>> > make sure that your test directory has subdirectories libs/ and libs/P1/
>> > then go to subdirectory libs/ and build the C libraries
>> > there using the makefile provided
>> The issue is that the libs subdirectory from the archive does not have
>> any sources for libs. As a result, some tests are never run (e.g.
>> tests in attrib.lua that depend on loading
>> I think that the archive should be rebounded to include missing files.
> We have added the missing files; please check whether it is ok now.
> -- Roberto

Med vennlig hilsen,
Anton Soldatov

Attachment: makefile
Description: Binary data