toronto75 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to get the Z39.50 ZOOM module to work, but I am running into some difficulties. I am using a basic "Hello World" script to test the functionality of the module but it is producing the following errors.

First, a popup comes up that says "The procedure entry point _ZOOM_connection_error_x@16 could not be located in the dynamic link library yaz.dll". Then, the command line shows the following error:

Can't load 'C:/Perl/site/lib/auto/Net/Z3950/ZOOM/ZOOM.dll' for module +Net::Z3950::ZOOM: load_file:The specified procedure could not be foun +d at C:/Perl/site/lib/XSLoader.pm line 64.at C:/Perl/site/lib/Net/Z39 +50/ZOOM.pm line 12 Compilation failed in require at C:/Perl/site/lib/ZOOM.pm line 6.
Here is the script that I am running:

use ZOOM; $conn = new ZOOM::Connection('z3950.loc.gov', 7090, databaseName => "Voyager", preferredRecordSyntax => "USMARC"); $rs = $conn->search_pqf('@attr 1=7 0253333490'); $rec = $rs->record(0); print $rec->render();


I installed the YAZ toolkit, as well as placed the YAZ bin directory in the system PATH environment variable and rebooted. I cannot for the life of me figure this thing out. From what I can find on google, there is a misconfiguration of a dll. Any help would be appreciated!

I am using ActivePerl on Windows XP Pro.

Replies are listed 'Best First'.
Re: ZOOM Module problem
by Anonymous Monk on Sep 03, 2007 at 06:01 UTC
    there is a misconfiguration of a dll.
    No, its version mismatch. You need to compile yourself, and ensure compatibility.
Re: ZOOM Module problem
by syphilis (Archbishop) on Sep 03, 2007 at 19:01 UTC
    Hi toronto75,

    Did you install the ppm available from http://theoryx5.uwinnipeg.ca/ppms ? It looks to me that it may have been built against a static build of the YAZ library - and if that's the case, then the version mismatch you've come up against will not arise.

    If you want to give that particular version a go (assuming it's not the one you've already tried):

    ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-Z3950-ZOOM.ppd

    Cheers,
    Rob
      Thanks Rob,

      That is the PPM that I installed. To be sure, I removed it and re-installed. I also uninstalled the YAZ kit and reinstalled that too. This is a bear... I will have to look into recompiling it. Wheres the Easy button when you need it?