[q-lang-users] Good news, everyone!
Brought to you by:
agraef
From: Andrew B. <and...@ya...> - 2006-10-29 19:05:12
|
I just finished getting q 7.5 to build on Mac OS X 10.4. I have XCode 2.3 installed. This process has once again reinforced my long standing distaste for autoconf and automake, but at least I did not have to fight with libtool. Anyhow, steps, in case anyone cares: 1) Download each of the following GNU packages, in their current versions: * m4 (1.4.7) * automake (1.9) * autoconf (2.60) * libiconv (1.11) * readline (5.2) * gmp (4.2.1) 2) Build and install each of them, I think in this order (but I may have autoconf/automake swapped). Gmp will not build "out of the box", so I used the suggestion from here, which was to remove the "dive_1" and "modelo" x86 assembly files. On each of them I added "-- prefix=$HOME/local", but that's just my preference. 3) Build and install q. I had to tweak clib.c a little bit to make it compile. Here is what Subversion has to say on that topic: tic:~/q-7.5 andrewb$ svn diff modules/clib/clib.c Index: modules/clib/clib.c =================================================================== --- modules/clib/clib.c (revision 149) +++ modules/clib/clib.c (working copy) @@ -147,6 +147,10 @@ #endif #ifdef HAVE_SYS_SOCKET_H +#ifdef __APPLE__ +/* Need to undef _POSIX_C_SOURCE to get AF_LOCAL defined. */ +#undef _POSIX_C_SOURCE +#endif #include <sys/socket.h> #ifdef HAVE_SYS_UN_H #include <sys/un.h> @@ -7127,6 +7131,11 @@ #undef SETPGRP_VOID #endif +/* This one actually does not get it wrong... */ +#if defined(__APPLE__) +#define SETPGRP_VOID +#endif + FUNCTION(clib,setpgrp,argc,argv) { #ifdef HAVE_SETPGRP 4) Enjoy your new q interpreter. This is just a basic one, without many of the fancy extensions, but (so far) it seems to work ok. Fancy extensions are left as an exercise for the reader. God bless, -andrew |