[Net-z3950] Installing Net::Z3950 on Solaris 9

kengwall at catawba.edu kengwall at catawba.edu
Wed May 25 12:59:12 CEST 2005

Regarding the error messages... yes, of course.  As it turns out, you were right. There is an opac struct in version 2.1.4 of yaz, which is not in 1.8.1.  I had different problems in 2.1.4.  Before I go back to 2.1.4, could you tell me the version of yaz that you are using for 0.49, and I will download that version and try it. Then, if I have problems, at least we'll be running the same versions of yaz. 
# perl Makefile.PL 
Checking if your kit is complete... 
Looks good 
MakeMaker (v6.17) 
Writing Makefile for Net::Z3950::yazwrap 
Writing Makefile for Net::Z3950 
# make 
cp Z3950/APDU.pm blib/lib/Net/Z3950/APDU.pm 
cp Z3950/Connection.pm blib/lib/Net/Z3950/Connection.pm 
cp Z3950/Manager.pm blib/lib/Net/Z3950/Manager.pm 
cp Z3950/ScanSet.pm blib/lib/Net/Z3950/ScanSet.pm 
cp Z3950/ResultSet.pm blib/lib/Net/Z3950/ResultSet.pm 
cp Z3950/Record.pm blib/lib/Net/Z3950/Record.pm 
cp Z3950/Tutorial.pm blib/lib/Net/Z3950/Tutorial.pm 
cp Z3950.pm blib/lib/Net/Z3950.pm 
AutoSplitting blib/lib/Net/Z3950.pm (blib/lib/auto/Net/Z3950) 
cd yazwrap && make INC=-I/usr/local/include LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="" OPTIMIZE="-O" PASTHRU_DEFINE="" PASTHRU_INC="-I/usr/local/include" 
make[1]: Entering directory `/export/home/keith/Net-Z3950-0.49/yazwrap' 
gcc -B/usr/ccs/bin/ -c -I/usr/local/include -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE"   connect.c 
gcc -B/usr/ccs/bin/ -c -I/usr/local/include -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE"   receive.c 
receive.c: In function `translateExternal': 
receive.c:572: union has no member named `opac' 
make[1]: *** [receive.o] Error 1 
make[1]: Leaving directory `/export/home/keith/Net-Z3950-0.49/yazwrap' 
make: *** [yazwrap/libyazwrap.a] Error 2 

----- Original Message ----- 
From: Mike Taylor 
Sent: Wed May 25 03:46:45 EDT 2005 
To: kengwall at catawba.edu 
Cc: net-z3950 at indexdata.dk 
Subject: Re: [Net-z3950] Installing Net::Z3950 on Solaris 9
> Date: Wed, 25 May 2005 00:28:01 -0400 
> From: kengwall at catawba.edu 
> I'm trying to install Net::Z3950 on Solaris 9.  I've tried 0.49 and 
> 0.46.  I get an error on the make: 
> receive.c: In function `translateExternal': 
> receive.c:560: union has no member named `opac' 
> make[1]: *** [receive.o] Error 1 
> make[1]: Leaving directory `/export/home/keith/Net-Z3950-0.46/yazwrap' 
> make: *** [yazwrap/libyazwrap.a] Error 2 

Please use the most recent version (currently 0.49) for generating 
error messages in reports such as this.  In the current version of 
"receive.c", line 560 is part of a comment. 

> I've installed v. 5.8.5 of Perl from sunfreeware.com.  I've 
> installed yaz v. 1.8.1.  I've installed MARC::Record v. 1.38.  I'm 
> running gnu make v. 3.80. 
> Any ideas on what I'm doing wrong would be appreciated. 

No concrete ideas, I'm afraid.  YAZ verson 1.8.1 is rather old -- 
three and half years old, in fact -- so it's possible that this is 
your problem.  I'd be surprised if the OPAC support in YAZ has changed 
since then, but it's possible.  Your best next step is to install the 
current version of YAZ, then try again. 

Let me know how it goes. 

_/|_     ___________________________________________________________________ 
/o ) \/  Mike Taylor  <mike at miketaylor.org.uk>  http://www.miketaylor.org.uk 
)_v__/\  "The interpreter is fairly bad at useful error reporting and 
     other such luxuries.  Just try to write bug-free code" -- 
     David Fletcher. 

Listen to free demos of soundtrack music for film, TV and radio 

More information about the Net-z3950 mailing list