From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 12:02:16 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33B6016A4CE for ; Fri, 22 Apr 2005 12:02:16 +0000 (GMT) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8132D43D41 for ; Fri, 22 Apr 2005 12:02:14 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id j3MC2A6j017129 for ; Fri, 22 Apr 2005 15:02:11 +0300 Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 22 Apr 05 15:02:11 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 22 Apr 05 15:01:48 +0300 Received: from [192.168.1.2] (192.168.1.2) by raad.tartu.ee (Mercury 1.48) with ESMTP; 22 Apr 05 15:01:48 +0300 Message-ID: <4268E7AA.6050405@raad.tartu.ee> Date: Fri, 22 Apr 2005 15:01:46 +0300 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: zSQLgate fails with 'Undefined symbol "pthread_create"' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 12:02:16 -0000 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 ', 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