spc476 / spcuuid Goto Github PK
View Code? Open in Web Editor NEWC library to create UUIDs. Also included are Lua bindings.
License: GNU Lesser General Public License v3.0
C library to create UUIDs. Also included are Lua bindings.
License: GNU Lesser General Public License v3.0
When I'd tried to build on Darwin, I got an error: gc is not recognized, cc (clang) is usable on OS X 10.9.
My attempts to install SPCUUID are failing on the Mac. I hit two snags:
First, I was getting an error related to missing openssl files. I'm used to this with the Mac/HomeBrew, so I did some searching and found this solution:
cd /usr/local/include
ln -s ../opt/openssl/include/openssl .
However, this did not work as I had hoped. I got this error:
Installing https://luarocks.org/org.conman.uuid-1.2.13-1.src.rock
org.conman.uuid 1.2.13-1 depends on lua >= 5.1, <= 5.4 (5.4-1 provided by VM)
mkdir so
mkdir lib
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/luauuid.o src/luauuid.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuid_ns_dns.o src/uuid_ns_dns.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuid_ns_null.o src/uuid_ns_null.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuid_ns_oid.o src/uuid_ns_oid.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuid_ns_url.o src/uuid_ns_url.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuid_ns_x500.o src/uuid_ns_x500.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_cmp.o src/uuidlib_cmp.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_parse.o src/uuidlib_parse.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_toa.o src/uuidlib_toa.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_v1.o src/uuidlib_v1.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_v2.o src/uuidlib_v2.c
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -DNDEBUG -I/usr/local/include -fPIC -c -o so/uuidlib_v3.o src/uuidlib_v3.c
src/uuidlib_v3.c:38:17: error: variable has incomplete type 'EVP_MD_CTX' (aka 'struct evp_md_ctx_st')
EVP_MD_CTX ctx;
^
/usr/local/include/openssl/ossl_typ.h:92:16: note: forward declaration of 'struct evp_md_ctx_st'
typedef struct evp_md_ctx_st EVP_MD_CTX;
^
1 error generated.
make: *** [so/uuidlib_v3.o] Error 1Installing https://luarocks.org/org.conman.uuid-1.2.13-1.src.rock
According to the internet, the problem is with incompatibility with OpenSSL 1.1.
cause newer OpenSSL don't expose strcut EVP_CIPHER_CTX
I'd consider helping with a pull request, but I'm not smart enough for that. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.