chkoreff / Fexl

Function EXpression Language (interpreter for functional programs)
http://fexl.com
MIT License
79 stars 4 forks source link

./build fails #1

Closed ghost closed 12 years ago

ghost commented 12 years ago

I get the following build failures with /bin/sh and /bin/bash on fedora 16 and mac os x 10.6. Any thoughts?

https://gist.github.com/2503831

chkoreff commented 12 years ago

James Turner wrote, On 04/26/2012 06:45 PM:

I get the following build failures with /bin/sh and /bin/bash on fedora 16 and mac os x 10.6. Any thoughts?

https://gist.github.com/2503831

Wow, thanks for that. I have only tested this on Ubuntu so far. I thought surely it would be more compatible across other Unix-like platforms than this!

I'll try it on a remote server or two and see if I can reproduce any of it.

-- Patrick

chkoreff commented 12 years ago

Well this is an eye-opener. I can reproduce your build problems by just trying it on an older Linux kernel, version 2.6.32. It complains about how the "local" designation can only be used in a function, and complains about my use of the "-nt" (newer than) operator on line 99. I use -nt to detect when a target is out of date.

Everything works fine on my own machine of course, which is running Linux 3.0.0. Sigh. I had no idea that /bin/sh would be so monumentally incompatible across even Linux machines. This is sad, because I think I'll have to dumb the build script down beyond belief. I wonder how I can even do the -nt operator?!

chkoreff commented 12 years ago

Ah nevermind, just remove the "local" designators and the build script works fine. No complaints about the -nt operator any more. Phew, that's a relief.

chkoreff commented 12 years ago

OK James, I'm pretty sure this and the other issue are now resolved. I tested by downloading to a different server, and the build and tests went fine.

ghost commented 12 years ago

Yup it build just fine on my Fedora 16 system. I was/am also running a 3.2 linux kernel so very strange in did.