Giter VIP home page Giter VIP logo

Comments (11)

revk avatar revk commented on May 29, 2024

I am not at all surprised - if you know how to get the gcc extensions working on a Mac that would be a great update.

from puzzlebox.

rkarlsba avatar rkarlsba commented on May 29, 2024

Which extension is that?

from puzzlebox.

revk avatar revk commented on May 29, 2024

Err - all the things that did not work for you... E.g. functions inside functions is a gcc special, and strdupa, and asprintf are extensions set with _GNU_SOURCE on a linux build.

Basically, no, it does not build on Mac.
And yes, if you know how to make such build on mac, that would be nice.
I gather it may be possible using homebrew, and some googling may help.

from puzzlebox.

rkarlsba avatar rkarlsba commented on May 29, 2024

Seems like the first issue I had, was that this has another version of indent, which messed up the source code rather than fix it, and then stumbled on those things you mentioned here. I guess I'll use a linux machine for this, then - worked well there.

from puzzlebox.

revk avatar revk commented on May 29, 2024

Ah, OK, indent did cause some of those, I see. I might remove that from make.

from puzzlebox.

Polaris34 avatar Polaris34 commented on May 29, 2024

maybe it will help.
https://www.macports.org/
http://www.newthinktank.com/2013/08/how-to-install-gcc/

from puzzlebox.

rkarlsba avatar rkarlsba commented on May 29, 2024

Quick-and-dirty-fix (works)

  • brew install gcc
  • edit Makefile and change cc to /usr/local/opt/gcc/bin/gcc-8
  • Add attached header file apple-strdupa.h
  • Include it from puzzlebox.c

Build! :)
apple-strdupa.h.txt

from puzzlebox.

revk avatar revk commented on May 29, 2024

I may have to try that, thanks.

from puzzlebox.

rkarlsba avatar rkarlsba commented on May 29, 2024

The code for strdupa() was snipped from https://code.woboq.org/userspace/glibc/string/string.h.html

from puzzlebox.

rkarlsba avatar rkarlsba commented on May 29, 2024

Could you add the apple header to the source, please?

from puzzlebox.

revk avatar revk commented on May 29, 2024

Do make a pull request with any suggested changes. As long as they don't break linux builds, I'm happy to include them.

from puzzlebox.

Related Issues (11)

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.