Giter Site home page Giter Site logo

Build Fails on Mac OSX Lion about nixio HOT 5 CLOSED

neopallium avatar neopallium commented on August 29, 2024
Build Fails on Mac OSX Lion

from nixio.

Comments (5)

andrewstarks avatar andrewstarks commented on August 29, 2024

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.

Neopallium avatar Neopallium commented on August 29, 2024

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.

jcw avatar jcw commented on August 29, 2024

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.

Neopallium avatar Neopallium commented on August 29, 2024

Ok, I pushed a change that should fix that compile error.

from nixio.

jcw avatar jcw commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.