Re: [q-lang-users] Error compiling Q on Mac
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2006-12-02 21:43:39
|
Marco Maggesi <ma...@ma...> writes: > On Dec 2, 2006, at 5:07 PM, John Cowan wrote: > > > Marco Maggesi scripsit: > > > >> clib.c: In function '__F__clib_sys_vars': > >> clib.c:1787: error: 'AF_LOCAL' undeclared (first use in this > >> function) > > > > That's very bizarre. OS X definitely supports local domain sockets > > using AF_LOCAL. It's got to be a configuration problem of some sort. > > Don't know if this information can be pertinent: I ran ./configure as > follows: > > LDFLAGS="-L/opt/local/lib" CPPFLAGS="-I/opt/local/include" ./configure > > I set LDFLAGS and CPPFLAGS since I installed gmp with macports. This is fairly well known on the mac. For some reason, the logic concerning `#ifdef HAVE_SYS_SOCKET_H' on clib.c:149 seems a bit borked. One (kludgy) workaround that will at least allow you to proceed is a simple: echo '#include <sys/socket.h>' >> config.h HTH, ~Tim -- <http://spodzone.org.uk/> |