1 | The YAZ toolkit is used by the GSDL receptionist
|
---|
2 | when acting as a z39.50 client.
|
---|
3 |
|
---|
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
|
---|
39 |
|
---|
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.
|
---|
41 |
|
---|
42 | MODIFIED FILE: yaz-2.1.56/client/client.c
|
---|
43 | Still require the same change as in number 3 below.
|
---|
44 |
|
---|
45 | Ahead of changing to a newer yaz, we've also made changes to the runtime-src/src's z3950 and recpt Makefile.in files, to grab whatever dependencies yaz's configuration step worked out for its Makefile, and then using the same for linking libyaz in z3950 and recept to.
|
---|
46 |
|
---|
47 | TESTED: bin/linux/z3950server (compile after configuring with --enable-z3950) against yaz-client. Then also tested GLI with Library of Congress's z3950 server at lx2.loc.gov at port 210.
|
---|
48 |
|
---|
49 | 3. CHANGES TO YAZ-2.1.4 TO CREATE THE GREENSTONE VERSION OF IT, ak19
|
---|
50 | 20 Oct 2016
|
---|
51 |
|
---|
52 | MODIFIED FILE: yaz-2.1.4/client/client.c
|
---|
53 |
|
---|
54 | EXPLANATION: The references to readline's CPPFunction have been deprecated. They needed to be replaced with readline's rl_completion_func_t. Refer to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741767
|
---|
55 |
|
---|
56 |
|
---|
57 | CHANGE:
|
---|
58 | 3501c3501,3503
|
---|
59 | < rl_attempted_completion_function = (CPPFunction*)readline_completer;
|
---|
60 | ---
|
---|
61 | > //rl_attempted_completion_function = (CPPFunction*)readline_completer;
|
---|
62 | > rl_attempted_completion_function = (rl_completion_func_t*)readline_completer;
|
---|
63 | >
|
---|
64 |
|
---|
65 |
|
---|
66 | 2. June 2005, kjdon:
|
---|
67 | Changed to use yaz version 2.1.4. This is also used by the new z3950server.
|
---|
68 | The original yaz download has been added to cvs - this is unzipped and untared by the configure script, then only the src and client directories are compiled.
|
---|
69 | Greenstone uses the libyaz.a library. yaz_zclient.o is modified from the sample client.o, and now lives in the colservr directory.
|
---|
70 |
|
---|
71 | Two files are linked against:
|
---|
72 | client/yaz_client.o, which was modified from Index Data's sample
|
---|
73 | client code, and
|
---|
74 |
|
---|
75 | lib/libyaz.a, which contains all the z39.50 and MARC formatting code.
|
---|
76 | There is probably a lot of stuff in this library that does
|
---|
77 | not need to be there for our purposes, but for now it is,
|
---|
78 | merely wasting some disk space and some compile-time CPU.
|
---|
79 |
|
---|
80 | 1. John McPherson
|
---|
81 | 3 August 2000
|
---|
82 |
|
---|
83 | yaz version 1.6
|
---|
84 |
|
---|
85 | September 2000:
|
---|
86 | removed "ill" "server" "ztest" and "retrieval" subdirs.
|
---|
87 |
|
---|