lua-users home
lua-l archive

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


On Feb 28, 2010, at 8:49 PM, Alexander Gladysh wrote:

>> FWIW, works for me. Using e2fsprogs-1.41.9/lib/uuid + LHF's luuid binding.
> 
> Do you remember how you installed e2fsprogs?

Compiled directly against e2fsprogs' uuid source:

% cd e2fsprogs-1.41.9
% ./configure
% cd lib/uuid 
% cp luuid.c .
% gcc -O2 -fno-common -c -o clear.o clear.c
% gcc -O2 -fno-common -c -o compare.o compare.c
% gcc -O2 -fno-common -c -o copy.o copy.c
% gcc -O2 -fno-common -c -o gen_uuid.o gen_uuid.c
% gcc -O2 -fno-common -c -o isnull.o isnull.c
% gcc -O2 -fno-common -c -o luuid.o luuid.c
% gcc -O2 -fno-common -c -o pack.o pack.c
% gcc -O2 -fno-common -c -o parse.o parse.c
% gcc -O2 -fno-common -c -o unpack.o unpack.c
% gcc -O2 -fno-common -c -o unparse.o unparse.c
% gcc -O2 -fno-common -c -o uuid_time.o uuid_time.c
% gcc -bundle -undefined dynamic_lookup -o uuid.so clear.o compare.o copy.o gen_uuid.o isnull.o luuid.o pack.o parse.o unpack.o unparse.o uuid_time.o

% lua uuid/test.lua

% lua test.lua
uuid library for Lua 5.2 / Sep 2007

293cd861-7be8-411e-aabd-5bbf06067827	default	1840518922610
663eb67f-0887-4596-baef-2d8751452002	default	28032566632
97d43d00-4ba3-4c00-bf20-0edde167f750	random	74258136645
22c1fad6-24b3-11df-beb5-43fb618dc2d8	time	1267393764
23f3cbfa-24b3-11df-beb5-43fb618dc2d8	time	1267393766

84949cc5-4701-4a84-895b-354c584a981b	true	true
84949CC5-4701-4A84-895B-354C584A981B	true	true
84949cc5-4701-4a84-895b-354c584a981bc	false	false
84949cc5-4701-4a84-895b-354c584a981	false	false
84949cc5x4701-4a84-895b-354c584a981b	false	false
84949cc504701-4a84-895b-354c584a981b	false	false
84949cc5-470104a84-895b-354c584a981b	false	false
84949cc5-4701-4a840895b-354c584a981b	false	false
84949cc5-4701-4a84-895b0354c584a981b	false	false
g4949cc5-4701-4a84-895b-354c584a981b	false	false
84949cc5-4701-4a84-895b-354c584a981g	false	false

uuid library for Lua 5.2 / Sep 2007