Morning, great, thanks for this. Its fixed that problem so libsamplerate and the rest of indserver completes.
Moving onto Kstars... the script fails building "expat". Looks like the compile path isn't right as it can't find "stdlib.h" which I have several instances of on my system. I don't have Xcode installed so this could be the problem. The reason I haven't installed Xcode is that the Readme recommends using QT rather than Xcode, but obviously happy to install it if its required for the build.
So I installed Xcode and that fixed the problem with building expat. The script ran to completion and I can launch Kstars (version 3.5.6 beta) so all seems to be fine. I'll have a play around.