Re: [q-lang-users] q 7.11 build fails on Mac OS X 10.3.9
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-06-09 09:10:07
|
Ryan Schmidt wrote: >> GLOB_NOMATCH is required by POSIX, so it looks like the local glob >> implementation is broken or too old. What does your 10.3.9 glob(3) >> manpage say about the return value of glob()? > > The manpage is attached. Thanks. The 10.3.9 glob is obviously non-POSIX, as POSIX clearly requires GLOB_NOMATCH, see: http://www.opengroup.org/onlinepubs/007908799/xsh/glob.html So you need to patch clib.c on OSX 10.3.9 to work around this. AFAICT from the manpage, the following edit should make clib compile on this OSX version, and glob should still give the intended results in case of matching failure: Replace lines 6077-6079 in clib.c: if (res == GLOB_NOMATCH) return mknil; else if (res) with just: if (res) (Note that I can't just commit this to the official Q sources, since it would break clib::glob on POSIX-conforming platforms.) HTH, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |