logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Re: Emilda 1.1.0 problem when adding books manually: msg#00010

Subject: Re: Re: Emilda 1.1.0 problem when adding books manually
Christoffer;

Although I'll use your suggestion of testing Emilda
1.2 on Monday, I think that solving this problem has
merit because I see that Emilda 1.2 still uses Zebra
and my problem at the moment is that my Zebra (perl
portion) is "broken". I'll summarize what I did in the
order I did it in.

1) I started with a clean FC1 system
2) rpm -e of MySql 3.x modules 
3) rpm -i --force of MySql 4.1.4 modules:
MySQL-server-4.1.4-0.i386.rpm
MySQL-devel-4.1.4-0.i386.rpm
MySQL-shared-4.1.4-0.i386.rpm
MySQL-client-4.1.4-0.i386.rpm
4) installed Yaz 2.0.23
5) instaled Zebra 1.3.18
Had problems with make test of the perl module but
they went away after I configured, compiled and
installed WITHOUT a "make clean", as is my habit)
6)installed sablotron 1.0.1
7) compiled and installed php 4.3.8 with the needed
options (the default FC1 plus Emilda specific ones).
It is still somehow linked to 3.x libraries because I
had to create the password using OLD_PASSWORD, but as
far as I can tell, works just fine.
8) ran perl -MCPAN - e 'install "xxx"' for all the
extra perl modules. Also installed HTMLDoc 1.8.23
before installing HTML::HTMLDoc. 
9) Installed Emilda.
10) created the database, made the Zebra server run,
logged into Emilda 1.1

Then I had the problem with MARC_defs (solved) and the
problem with IDZebra::Session (apparently solved, or
at least diagnosed).

To solve the IDZebra::Session problem this is what I
did:

a) stopped the Zebra and apache servers
b) installed zebra 1.3.15
The "make test" failed with the output in the previous
post.
c) forced install of the zebra perl module (even
though the test failed)
d) redid the zebra configuration and stared the zebra
server.
e) The add book manually 'accept' button gave me the
internal server error (perl) reported in the previous
post.

Then I did the following to revert and try the other
idea:

a) stopped the zebra and apache servers
b) make clean, configure, make, make install of zebra
1.3.18 (the source directory is still on the machine).
Edited the perl/Makefile, make. The "make test" of the
perl module failed! Output is like this:

[root@intranet115 perl]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/01_base................NOK 1#     Failed test
(t/01_base.t at line 22)
#     Tried to use 'IDZebra'.
#     Error:  Can't load
'/usr/local/src/idzebra-1.3.18/perl/blib/arch/auto/IDZebra/IDZebra.so'
for module IDZebra:
/usr/local/src/idzebra-1.3.18/perl/blib/arch/auto/IDZebra/IDZebra.so:
undefined symbol: zebra_delete_record at
/usr/lib/perl5/5.8.1/i386-linux-thread-multi/DynaLoader.pm
line 229.
#  at
/usr/local/src/idzebra-1.3.18/perl/blib/lib/IDZebra.pm
line 7
# Compilation failed in require at (eval 1) line 2.
Use of inherited AUTOLOAD for non-method
IDZebra::logFile() is deprecated at t/01_base.t line
24.
Can't locate auto/IDZebra/logFile.al in @INC (@INC
contains: /usr/local/src/idzebra-1.3.18/perl/blib/lib
/usr/local/src/idzebra-1.3.18/perl/blib/arch
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1 .
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1 demo blib/lib blib/arch) at
t/01_base.t line 24
BEGIN failed--compilation aborted at t/01_base.t line
26.

[snip]

Failed Test             Stat Wstat Total Fail  Failed 
List of Failed
-------------------------------------------------------------------------------
t/01_base.t              255 65280     8   15 187.50% 
1-8
t/02_directory_update.t  255 65280     8   15 187.50% 
1-8
t/03_record_update.t     255 65280    18   35 194.44% 
1-18
t/04_cql.t               255 65280     7   14 200.00% 
1-7
t/05_search.t            255 65280    12   24 200.00% 
1-12
t/06_retrieval.t         255 65280    19   38 200.00% 
1-19
t/07_sort.t              255 65280    14   28 200.00% 
1-14
t/08_scan.t              255 65280    17   34 200.00% 
1-17
Failed 8/8 test scripts, 0.00% okay. 103/103 subtests
failed, 0.00% okay.
make: *** [test_dynamic] Error 255

Just as a note: the file
/usr/local/src/idzebra-1.3.18/perl/blib/arch/auto/IDZebra/IDZebra.so
IS there.

c) forced make install of the perl module
d) redid the zebra configuration commenting the line
in zebra.conf according to your suggestion
e) edited the MARC.pm file, commenting the line.
f) add book manually gives an internal server error
like this:

[Fri Sep 10 15:12:05 2004] [error] [client 10.2.8.216]
Premature end of script headers: MARC.pl, referer:
http://10.2.8.115/emilda/book_add.php?id=1157587708&auth=e465447cb228c1f99368e15bafecd021&stage=4&manual=manual
[Fri Sep 10 15:12:05 2004] [error] [client 10.2.8.216]
/usr/bin/perl: relocation error:
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/IDZebra/IDZebra.so:
undefined symbol: zebra_start, referer:
http://10.2.8.115/emilda/book_add.php?id=1157587708&auth=e465447cb228c1f99368e15bafecd021&stage=4&manual=manual

(note that the error is THE SAME as with zebra 1.3.15,
so this may be a Perl problem or something new, not
related to zebra at all)

I think that the problem I have is Perl because Zebra
1.3.18 does not run a "make test" as it did the first
time BEFORE an install. For some reason I can not
build zebra correctly any more and I'm afraid this can
impact Emilda 1.2 also.

I would like to clean out all the old Zebra perl
things manually but I don't know how to do that.

Any ideas will be really appreciated.

Miguel

--- Christoffer Landtman <landtman@xxxxxxxxxxx> wrote:

> papi mac wrote:
> > Christoffer;
> > 
> > Your MARC_defs file did the trick for the first
> > problem. 
> > 
> > Regarding the second I thought it would be better
> to
> > downgrade zebra to 1.3.15. However, with that
> version
> > I could not get "make test" to work on the perl
> module
> > (I did not do a make clean after compiling zebra)
> but
> > I installed anyway since Mathias told me last week
> > that those tests are probably not relevant. 
> > 
> > The test errors were:
> > 
> > [root@intranet115 perl]# make test
> > PERL_DL_NONLAZY=1 /usr/bin/perl
> > "-MExtUtils::Command::MM" "-e" "test_harness(0,
> > 'blib/lib', 'blib/arch')" t/*.t
> > t/01_base................NOK 1#     Failed test
> > (t/01_base.t at line 22)
> > #     Tried to use 'IDZebra'.
> > #     Error:  Can't load
> >
>
'/usr/local/src/idzebra-1.3.15/perl/blib/arch/auto/IDZebra/IDZebra.so'
> > for module IDZebra:
> >
>
/usr/local/src/idzebra-1.3.15/perl/blib/arch/auto/IDZebra/IDZebra.so:
> > undefined symbol: zebra_delete_record at
> >
>
/usr/lib/perl5/5.8.1/i386-linux-thread-multi/DynaLoader.pm
> > line 229.
> > #  at
> >
>
/usr/local/src/idzebra-1.3.15/perl/blib/lib/IDZebra.pm
> > line 7
> > # Compilation failed in require at (eval 1) line
> 2.
> > ......
> > etc.
> > 
> > I followed the procedure for the perl module and
> the
> > configuration for Emilda. I got the zebrasrv
> 1.3.15
> > running.
> > 
> > Now when I add the book manually I get an apache
> > internal server error:
> > 
> > [Fri Sep 10 10:52:18 2004] [error] [client
> 127.0.0.1]
> > Premature end of script headers: MARC.pl, referer:
> >
>
http://127.0.0.1/emilda/book_add.php?id=1138148043&auth=565b6c2d431b47a3e696978b7b3c54dd&stage=4&manual=manual
> > [Fri Sep 10 10:52:18 2004] [error] [client
> 127.0.0.1]
> > /usr/bin/perl: relocation error:
> >
>
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/IDZebra/IDZebra.so:
> > undefined symbol: zebra_start, referer:
> >
>
http://127.0.0.1/emilda/book_add.php?id=1138148043&auth=565b6c2d431b47a3e696978b7b3c54dd&stage=4&manual=manual
> > 
> > This seems to be related to the "make test"
> problem.
> > 
> > Do you have an idea? Maybe it would be better to
> go
> > back to zebra 1.3.18 and edit the files you
> suggested.
> 
> This is somewhat strange behaviour as zebra 1.3.15
> compiles fine on my 
> Debian installation. Thus I woul presume that this
> is related to Fedora. 
> If it by any means would be possible for You to
> switch Your test 
> environment to Debian, You could use David's Debian
> installer package, 
> and get Emilda working with one install command.
> 
> If I understood You correctly, You had tried to edit
> the files I 
> suggested when using 1.3.18 ? Could You supply me
> with some logging 
> output from the problem You are experiencing here?
> 
> Best regards,
> 
> > 
> > Miguel
> > 
> > --- Christoffer Landtman <landtman@xxxxxxxxxxx>
> wrote:
> > 
> > 
> >>Hello
> >>
> >>I looked at the changelog of Zebra, and noticed
> that
> >>the handling of 
> >>RecordGroups has changed somewhat since Emilda 1.1
> >>was "fresh". Thus, I 
> >>would suggest that You either downgrade Your Zebra
> >>to 1.3.15 or 
> >>alternatively remove the recordId: file from
> >>zebra.cfg and the
> >>
> >>$zebra->group(recordId => 'file');
> >>
> >>line from src/perl/lib/MARC.pm
> >>
> >>If this does not yield the desired results, please
> >>drop me a note, and 
> >>I'll try to investigate some more on the matter.
> >>
> >>Good luck!
> >>
> >>-- 
> >>Christoffer Landtman
> >>Oy Realnode Ab
> >>Partner, Sales
> >>+358 (0)41 510 1073
> >>landtman@xxxxxxxxxxx
> >>www.realnode.fi
> >>_______________________________________________
> >>Emilda mailing list
> >>Emilda@xxxxxxxxxxxxxxxxxx
> >>http://lists.realnode.com/mailman/listinfo/emilda
> >>
> > 
> > 
> > 
> > 
> >             
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile
> phone.
> > http://mobile.yahoo.com/maildemo 
> > _______________________________________________
> > Emilda mailing list
> > Emilda@xxxxxxxxxxxxxxxxxx
> > http://lists.realnode.com/mailman/listinfo/emilda
> 
> 
> -- 
> Christoffer Landtman
> Oy Realnode Ab
> Partner, Sales
> +358 (0)41 510 1073
> landtman@xxxxxxxxxxx
> www.realnode.fi
> _______________________________________________
> Emilda mailing list
> Emilda@xxxxxxxxxxxxxxxxxx
> http://lists.realnode.com/mailman/listinfo/emilda
> 



                
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com



<Prev in Thread] Current Thread [Next in Thread>