zSQLgate fails with 'Undefined symbol "pthread_create"'

Toomas Aas toomas.aas at raad.tartu.ee
Fri Apr 22 05:02:16 PDT 2005


Hello!

I'm trying to install the evaluation version of zSQLgate
(http://sql.z3950.org) on FreeBSD 4.11.
I have the following prerequisites installed from FreeBSD ports

perl-5.8.6_2 (use.perl port has been run)
p5-DBI-1.48
p5-DBD-mysql-2.9006
p5-Net-Z3950-SimpleServer-0.08
yaz-2.0.32

I downloaded the zSQLgate distribution
(http://sql.z3950.org/download/Net-Z3950-DBIServer-0.11.tar.gz)
unpacked it and ran
perl Makefile.PL
make

These commands seemed to complete succesfully. However, the next
command, 'make test', fails with following output:

PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.6 "-Iblib/lib" "-Iblib/arch"
test.pl
1..1
Can't load
'/usr/local/lib/perl5/site_perl/5.8.6/mach/auto/Net/Z3950/SimpleServer/SimpleServer.so' 

for module Net::Z3950::SimpleServer: /usr/local/lib/libyazthread.so.2:
Undefined symbol "pthread_create" at
/usr/local/lib/perl5/5.8.6/mach/DynaLoader.pm line 230.
  at blib/lib/Net/Z3950/DBIServer.pm line 5
Compilation failed in require at blib/lib/Net/Z3950/DBIServer.pm line 5.
BEGIN failed--compilation aborted at blib/lib/Net/Z3950/DBIServer.pm line5.
Compilation failed in require at test.pl line 11.
BEGIN failed--compilation aborted at test.pl line 11.
not ok 1
*** Error code 255

Stop in /storage/home/toomas/Net-Z3950-DBIServer-0.11.

 From man pthread I understand that I somehow need to pass '-pthread' to
the linker. I tried adding it to LDFLAGS in the Makefile.PL, but this
doesn't seem to help.

Here's the original Makefile.PL. Can anyone tell me how to modify it to 
get it working with FreeBSD?

----------< start Makefile.PL >----------
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
     NAME         => 'Net::Z3950::DBIServer',
     VERSION_FROM => 'DBIServer.pm',
     PREREQ_PM    => { 'Net::Z3950::SimpleServer' => 0.05,
                       'DBI' => 1.20,
# I don't think these should be prerequisites: see code in DBIServer/XML.pm
#                     'XML::LibXML' => 1.53,
#                     'XML::LibXSLT' => 1.52,
                     },
     AUTHOR       => 'Mike Taylor <zsqlgate at perl.z3950.org>',
     ABSTRACT     => 'Gateway between Z39.50 and the RDBMS of your choice',
     EXE_FILES    => [ 'zSQLgate' ],
);

sub MY::postamble { q[
docs:
         cd doc; make

docsclean:
         cd doc; make clean

] }
----------< end Makefile.PL >----------

-- 
Toomas Aas


More information about the freebsd-questions mailing list