hns - 日記自動生成システム - Version 2.19.9

先月 2008年07月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
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:
package nameinstalled byoutput of above command
perl-5.8.8nb6binary package/usr/lib
perl-5.8.8nb8binary package/usr/lib
perl-5.8.8nb8made from pkgsrc/usr/lib /usr/pkg/lib
Now we have to look at the origin of the binary package. It would be checked by
 pkg_info -Q BUILD_HOST perl
Now 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 i386
Then 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.pm
is 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.pl
also 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.



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)