Comments (5)
This has to do with Apple deprecating everything in openssl.
http://ludovicrousseau.blogspot.com/2011/08/mac-os-x-lion-and-openssl.html
I've disabled crypto from the make file. When I'm smarter, I'll replace apple's openssl or figure out how to migrate to their blessed replacement.
Perhaps it'd be better to automatically disable encryption in the rock spec or, better yet, use your bigger brain than mine to make it work... :P
from nixio.
The nixio version 0.3 module in luarocks is old and was release by someone else before I created this fork of nixio. I am not sure if the original authors of nixio are still maintaining nixio. It might upset someone if I tried to release a new luarock of nixio. Also I am working on a replacement network IO module lua-llnet, but it doesn't have support for TLS yet. until lua-llnet is ready I will try to maintain this fork of nixio.
For now I have disabled TLS support for Mac OSX. I don't see any easy way to add support for "Common Crypto".
You can install my fork of nixio with luarocks using this command:
luarocks install https://raw.github.com/Neopallium/nixio/master/nixio-scm-0.rockspec
from nixio.
Just tried this - maybe Apple broke things again in Mountain Lion (10.8):
luarocks install https://raw.github.com/Neopallium/nixio/master/nixio-scm-0.rockspec
Using https://raw.github.com/Neopallium/nixio/master/nixio-scm-0.rockspec... switching to 'build' mode
Cloning into 'nixio'...
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 66 (delta 3), reused 54 (delta 3)
Receiving objects: 100% (66/66), 76.06 KiB, done.
Resolving deltas: 100% (3/3), done.
mkdir -p dist/usr/local/share/lua/5.1
cp -pR lua/* dist/usr/local/share/lua/5.1 2>/dev/null || true
for i in $(find dist -name .svn); do rm -rf $i || true; done
export MACOSX_DEPLOYMENT_TARGET=10.3; gcc -O2 --std=gnu99 -D__DARWIN__ -Wall -Werror -pedantic -DNO_TLS -O2 -fPIC -I/usr/local/include -fPIC -c -o src/nixio.o src/nixio.c
src/nixio.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘R’
cc1: warnings being treated as errors
src/nixio.c:109: warning: ISO C does not allow extra ‘;’ outside of a function
src/nixio.c: In function ‘luaopen_nixio’:
src/nixio.c:121: warning: implicit declaration of function ‘luaL_register’
src/nixio.c:121: error: ‘R’ undeclared (first use in this function)
src/nixio.c:121: error: (Each undeclared identifier is reported only once
src/nixio.c:121: error: for each function it appears in.)
make: *** [src/nixio.o] Error 1
Error: Build error: Failed building.
No urgency for me, since things work fine on Linux, but thought you might like to know.
from nixio.
Ok, I pushed a change that should fix that compile error.
from nixio.
Mea culpa: got another error, which didn't make sense at all. Diving in a bit deeper, I found out that I had a mix of 5.1 Lua binary and 5.2 headers. I've replaced everything with 5.1.5 and now it compiles just fine. Thank you for following up.
from nixio.
Related Issues (13)
- A method for geting clock time is wanted HOT 1
- luarocks install nixio fails
- new rockspec version 0.3.2 and into luarocks repo? HOT 3
- installing on Debian/jessy fails with compiler warning HOT 4
- build failures with gcc5+? HOT 1
- Build failure on OSX 10.11 HOT 1
- Reading from standard input?
- build failures with openssl 3.0
- lstat patch (fs.c) HOT 1
- hi, can nixio socket object been passed to another thread? HOT 4
- compile failure on fedora 19 HOT 3
- nixio.bit.check is meant to accept multiple flags but doesn't
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixio.