Skip Menu |

This queue is for tickets about the Net-Z3950-SimpleServer CPAN distribution.

Report information
The Basics
Id: 54257
Status: open
Priority: 0/
Queue: Net-Z3950-SimpleServer

People
Owner: Nobody in particular
Requestors: paul [...] bicat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: compilation issue with Net::Z3950::SimpleServer-1.11 against yaz 4.0.1
Date: Wed, 03 Feb 2010 13:41:33 +0100
To: bug-Net-Z3950-SimpleServer [...] rt.cpan.org
From: "Paul G. Lucassen" <paul [...] bicat.com>
Hi, when compiling Net::Z3950::SimpleServer-1.11 (or an older Net::Z3950::SimpleServer-1.05 that we also had available) we get SimpleServer.xs:1225: error: ‘bend_present_rr’ has no member named ‘hits’ and compilation stops. Apparently yaz/backend.h has been cleaned up in the 4.X distribution of yaz. Removing the line from SimpleServer.xs fixes the compilation issue and yields a seemingly functioning SimpleServer module. patch: --- SimpleServer.xs.orig 2008-09-02 17:16:34.000000000 +0200 +++ SimpleServer.xs 2010-02-03 13:39:01.000000000 +0100 @@ -1222,7 +1222,7 @@ hv_undef(href); rr->errcode = SvIV(err_code); - rr->hits = SvIV(hits); + /* rr->hits = SvIV(hits); */ ptr = SvPV(err_string, len); ODR_errstr = (char *)odr_malloc(rr->stream, len + 1); Conditions: OS: Linux SLES-11 perl: Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.27, archname=x86_64-linux-thread-multi uname='linux nessler 2.6.27 #1 smp 2009-02-09 15:38:31 +0100 x86_64 x86_64 x86_64 gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe -Accflags=-DPERL_USE_SAFE_PUTENV' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe' ccversion='', gccversion='4.3.2 [gcc-4_3-branch revision 141291]', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib64' libpth=/lib64 /usr/lib64 /usr/local/lib64 libs=-lm -ldl -lcrypt -lpthread perllibs=-lm -ldl -lcrypt -lpthread libc=/lib64/libc-2.9.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.9' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Feb 21 2009 07:21:27 @INC: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . Kind regards Paul Lucassen -- Paul G. Lucassen Huijsmans en Kuijpers Automatisering BV Groningerweg 13c, 9765 TA Paterswolde E-mail: paul@bicat.com Telefoon: (050) 4065010 Website: www.bicat.com
CC: paul [...] bicat.com
Subject: Re: [rt.cpan.org #54257] compilation issue with Net::Z3950::SimpleServer-1.11 against yaz 4.0.1
Date: Thu, 4 Feb 2010 16:49:55 +0000
To: bug-Net-Z3950-SimpleServer [...] rt.cpan.org
From: Mike Taylor <mike [...] indexdata.com>
Thanks, Paul/ You're quite right -- the hits member should never have been in this structure. But when we removed it in YAZ 4, we should have re-released a modified SimpleServer at the same time. This I have now now, and it will shortly appear on CPAN. In the mean time, if you prefer not to wait, you can get it from: http://www.miketaylor.org.uk/tmp/Net-Z3950-SimpleServer-1.12.tar.gz On 3 February 2010 12:47, paul via RT <bug-Net-Z3950-SimpleServer@rt.cpan.org> wrote: Show quoted text
> Wed Feb 03 07:47:21 2010: Request 54257 was acted upon. > Transaction: Ticket created by paul@bicat.com >       Queue: Net-Z3950-SimpleServer >     Subject: compilation issue with Net::Z3950::SimpleServer-1.11 against yaz 4.0.1 >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: paul@bicat.com >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=54257 > > > > Hi, > > when compiling Net::Z3950::SimpleServer-1.11 (or an older > Net::Z3950::SimpleServer-1.05 that we also had available) > we get > > SimpleServer.xs:1225: error: ‘bend_present_rr’ has no member named ‘hits’ > > and compilation stops. > > Apparently yaz/backend.h has been cleaned up in the 4.X distribution of > yaz. Removing the line from SimpleServer.xs > fixes the compilation issue and yields a seemingly functioning > SimpleServer module. > > patch: > > --- SimpleServer.xs.orig        2008-09-02 17:16:34.000000000 +0200 > +++ SimpleServer.xs     2010-02-03 13:39:01.000000000 +0100 > @@ -1222,7 +1222,7 @@ > >        hv_undef(href); >        rr->errcode = SvIV(err_code); > -       rr->hits = SvIV(hits); > +       /* rr->hits = SvIV(hits); */ > >        ptr = SvPV(err_string, len); >        ODR_errstr = (char *)odr_malloc(rr->stream, len + 1); > > > > Conditions: > OS: Linux SLES-11 > perl: > > Summary of my perl5 (revision 5 version 10 subversion 0) configuration: >  Platform: >    osname=linux, osvers=2.6.27, archname=x86_64-linux-thread-multi >    uname='linux nessler 2.6.27 #1 smp 2009-02-09 15:38:31 +0100 x86_64 > x86_64 x86_64 gnulinux ' >    config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr > -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm > -Duseshrplib=true -Doptimize=-fmessage-length=0 -O2 -Wall > -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables > -fasynchronous-unwind-tables -g -Wall -pipe > -Accflags=-DPERL_USE_SAFE_PUTENV' >    hint=recommended, useposix=true, d_sigaction=define >    useithreads=define, usemultiplicity=define >    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef >    use64bitint=define, use64bitall=define, uselongdouble=undef >    usemymalloc=n, bincompat5005=undef >  Compiler: >    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV > -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', >    optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 > -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall > -pipe', >    cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV > -DDEBUGGING -fno-strict-aliasing -pipe' >    ccversion='', gccversion='4.3.2 [gcc-4_3-branch revision 141291]', > gccosandvers='' >    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 >    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 >    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 >    alignbytes=8, prototype=define >  Linker and Libraries: >    ld='cc', ldflags =' -L/usr/local/lib64' >    libpth=/lib64 /usr/lib64 /usr/local/lib64 >    libs=-lm -ldl -lcrypt -lpthread >    perllibs=-lm -ldl -lcrypt -lpthread >    libc=/lib64/libc-2.9.so, so=so, useshrplib=true, libperl=libperl.so >    gnulibc_version='2.9' >  Dynamic Linking: >    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E > -Wl,-rpath,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE' >    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64' > > > Characteristics of this binary (from libperl): >  Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV >                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP >                        PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV >                        USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS >                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API >  Built under linux >  Compiled at Feb 21 2009 07:21:27 >  @INC: >    /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi >    /usr/lib/perl5/5.10.0 >    /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi >    /usr/lib/perl5/site_perl/5.10.0 >    /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi >    /usr/lib/perl5/vendor_perl/5.10.0 >    /usr/lib/perl5/vendor_perl >    . > > Kind regards > Paul Lucassen > > -- > Paul G. Lucassen > Huijsmans en Kuijpers Automatisering BV > Groningerweg 13c, 9765 TA Paterswolde > E-mail: paul@bicat.com > Telefoon: (050) 4065010 > Website: www.bicat.com > > > >