|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||
2008年07月08日(火) 旧暦 [n年日記] [更新:"2008/07/10 22:48:05"]#1 [NetBSD] perl-5.8.8nb8 binary package problem
Let me write todays part in English. This is because this problem
will be
mailed
or discussed in English-spoken community. This is kind of
warming up or practice.
As was written in the diary (in Japanese) on
2008/03/03,
Kakasi.so in p5-Text-Kakasi has a problem. The symptom is that when the Perl module Kakasi.so is invoked from another perl script, it says: /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi/auto/Text/Kakasi/Kakasi.so: Undefined PLT symbol "kakasi_getopt_argv" (symnum = 14)The module kakasi_getopt_argv is in /usr/pkg/lib/libkakasi.so, but by some reason, Kakasi.so won't reference that library. The first glance falls to 'Text-Kakasi-1.05/Makefile.PL'. This file has the line 'INC' => '-I/usr/local/include', 'LIBS' => ['-L/usr/local/lib -lkakasi'],I have asked the obache san and he has the same environment (NetBSD/i386 4.0), but he has no problem doing the same thing. So the above line should not be a problem. He suggested to look at the perl config with the line
perl -e 'use Config; print $Config{libpth}'
The result of various installation (the last line was added later) were:
pkg_info -Q BUILD_HOST perlNow binary package version shows, for example, NetBSD twist.lip6.fr 4.0 NetBSD 4.0 (XEN3_DOMU) #0: Sun Dec 16 01:26:00 PST 2007 builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/ home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/XEN3_DOMU i386Then we checked the difference between made from pkgsrc and binary packge, and it turned out that the file lib/perl5/5.8.0/i386-netbsd-thread-multi/Config.pmis different.
--- bouyer/lib/perl5/5.8.0/i386-netbsd-thread-multi/Config.pm 2008-06-02 23:04:40.
+++ pkgsrc/lib/perl5/5.8.0/i386-netbsd-thread-multi/Config.pm 2008-07-08 15:15:41.
@@ -81,9 +81,9 @@
inc_version_list => ' ',
intsize => '4',
ldlibpthname => 'LD_LIBRARY_PATH',
- libpth => '/usr/lib',
+ libpth => '/usr/lib /usr/pkg/lib',
osname => 'netbsd',
- osvers => '4.0',
+ osvers => '4.0.0_patch',
path_sep => ':',
privlibexp => '/usr/pkg/lib/perl5/5.8.0',
scriptdir => '/usr/pkg/lib/perl5/bin',
lib/perl5/5.8.0/i386-netbsd-thread-multi/Config_heavy.plalso has some differences, -ccflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement' +ccflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/pkg/include' -cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement' +cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/pkg/include' -lddlflags='-Wl,-R/usr/pkg/lib --whole-archive -shared ' -ldflags='-Wl,-R/usr/pkg/lib ' +lddlflags='-Wl,-R/usr/pkg/lib --whole-archive -shared -L/usr/pkg/lib' +ldflags='-Wl,-R/usr/pkg/lib -L/usr/pkg/lib' ... (omitted) ...Then I have made perl-5.8.8nb8 from pkgsrc/lang/perl5. After that, p5-Text-Kakasi is packaged also. The problem, not able to find module in libkakasi.so, gone away. ( つっこみ )
|
最近の日記 2025年10月25日 ・recover from disk error 2025年10月23日 ・dd does not duplicate Windows 11 boot disk ? 2025年10月13日 ・missing package 2025年10月04日 ・pkgin search pkgname segfaults 2025年08月16日 ・installboot (Although it’s too late) | ||||||||||||||