Changeset 30961
- Timestamp:
- 2016-10-27T15:51:32+13:00 (6 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/packages/yaz
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/packages/yaz/README.gsdl
r30954 r30961 2 2 when acting as a z39.50 client. 3 3 4 4. We've moved to Yaz-2.1.56, ak19 5 End Oct 2016 4 5. #ifdef RL_MAJOR_VERSION test added 5 27 Oct 2016 6 7 The above tweak is needed because the yaz-client code is written 8 assuming you are linking against a fairly recent GNU readline (version 6 9 is what we found on Ubuntu). When compiling on MacOS, we found 10 readline was not only the NetBSD version, but it was back at version 4. 11 Inspection of the readline/readline.h file showed that the 12 NetBSD version does not even define RL_MAJOR_VERSION, let alone 13 set it to the value '4'. This led us to conclude the above 14 addition of the #ifdef check was sufficient to make it do 15 the right thing, when compiling, on the various operating systems. 16 17 OLD version of yaz-2.1.56/client/client.c: 18 #if HAVE_READLINE_READLINE_H 19 rl_attempted_completion_function = (rl_completion_func_t*)readline_complete\ 20 r; 21 //rl_attempted_completion_function = (CPPFunction*)readline_completer; 22 #endif 23 24 25 MODIFIED version of yaz-2.1.56/client/client.c: 26 27 #if HAVE_READLINE_READLINE_H 28 #ifdef RL_VERSION_MAJOR 29 rl_attempted_completion_function = (rl_completion_func_t*)readline_complete\ 30 r; 31 #else 32 rl_attempted_completion_function = (CPPFunction*)readline_completer; 33 #endif 34 #endif 35 36 37 4. We've moved to yaz-2.1.56, ak19 38 26 Oct 2016 6 39 7 40 EXPLANATION: We've moved to this slightly newer version, the newest in 2.1.* but without changing major version numbers, in order to get a version of yaz that compiles on Macs after changes to make (gnome-lib) libraries statically linked rather than dymamically linked libraries needed for El Capitan.
Note:
See TracChangeset
for help on using the changeset viewer.