Re: [q-lang-users] q-7.5 fails build under OpenBSD
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-10-02 07:32:07
|
Julian Fondren wrote: > clib.c: In function `__F__clib_sys_vars': > clib.c:1907: error: `ERA' undeclared (first use in > this function) > clib.c:1907: error: (Each undeclared identifier is > reported only once > clib.c:1907: error: for each function it appears in.) > clib.c:1908: error: `ERA_D_T_FMT' undeclared (first > use in this function) > clib.c:1909: error: `ERA_D_FMT' undeclared (first use > in this function) > clib.c:1910: error: `ERA_T_FMT' undeclared (first use > in this function) > clib.c:1912: error: `ALT_DIGITS' undeclared (first use > in this function) > > I've tried to hack around this before, removing two > instances of those variables, and the result is a > silent failure later in the build process, running a Q > program. So I'd like to solve this properly. Replacing those constants with a sentinel value in clib.c should do the trick, i.e., something like: #ifdef __OpenBSD__ /* or whatever OS-specific constant is defined */ #define ERA (-1) ... #define ALT_DIGITS (-1) #endif (The proper way to do that would be to add some checks for those constants in configure.in, though.) If that again leads to the "silent failure" that you mentioned then please report that here so that I can try to figure it out. 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 |