./build fails
Closed this issue · 5 comments
I get the following build failures with /bin/sh and /bin/bash on fedora 16 and mac os x 10.6. Any thoughts?
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?
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
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?!
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.
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.
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.