[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pkgsrc/doc/guide/files/fixes.xml: 1.57 -> 1.58
以下のページの更新をしました。ツッコミをお願いします。
pkgsrc/doc/guide/files/fixes.xml: 1.57 -> 1.58
> revision 1.58
> date: 2006/06/29 11:41:04; author: rillig; state: Exp; lines: +12 -3
> Added more entries for "undefined reference to ..." and an explanation
> on how to fix them.
火曜日までに異議がなければ、 commit します。
以下、訳と原文それぞれの新旧の差分です。
--- fixes.xml.orig 2006-12-04 21:11:51.000000000 +0900
+++ fixes.xml 2006-12-04 21:11:51.000000000 +0900
@@ -1,6 +1,6 @@
-<!-- $NetBSD: fixes.xml,v 1.57 2006/06/29 11:29:46 rillig Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.58 2006/06/29 11:41:04 rillig Exp $ -->
<!-- Based on english version: -->
-<!-- NetBSD: fixes.xml,v 1.57 2006/06/29 11:29:46 rillig Exp -->
+<!-- NetBSD: fixes.xml,v 1.58 2006/06/29 11:41:04 rillig Exp -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>パッケージを動くようにする</title>
@@ -940,14 +940,23 @@
<tgroup cols="3">
<thead><row><entry>関数</entry><entry>ライブラリー</entry><entry>影響のあるプラットフォーム</entry></row></thead>
<tbody>
- <row><entry>gethost*</entry><entry>-lnsl</entry><entry>Solaris</entry></row>
<row><entry>accept, bind, connect</entry><entry>-lsocket</entry><entry>Solaris</entry></row>
- <row><entry>inet_aton</entry><entry>-lresolv</entry><entry>Solaris</entry></row>
+ <row><entry>crypt</entry><entry>-lcrypt</entry><entry>DragonFly, NetBSD</entry></row>
<row><entry>dlopen, dlsym</entry><entry>-ldl</entry><entry>Linux</entry></row>
+ <row><entry>gethost*</entry><entry>-lnsl</entry><entry>Solaris</entry></row>
+ <row><entry>inet_aton</entry><entry>-lresolv</entry><entry>Solaris</entry></row>
+ <row><entry>nanosleep, sem_*, timer_*</entry><entry>-lrt</entry><entry>Solaris</entry></row>
+ <row><entry>openpty</entry><entry>-lutil</entry><entry>Linux</entry></row>
</tbody>
</tgroup>
</informaltable>
+ <para>このようなリンカーのエラーの修正は、多くの場合、
+ パッケージの <filename>Makefile</filename> に
+ <literal>LIBS.<replaceable>OperatingSystem</replaceable>+=
+ -l<replaceable>foo</replaceable></literal> を追加してから <command>bmake clean;
+ bmake</command> を実行すれば十分です。</para>
+
</sect2>
</sect1>
Index: fixes.xml
===================================================================
RCS file: /cvsroot/pkgsrc/doc/guide/files/fixes.xml,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- fixes.xml 29 Jun 2006 11:29:46 -0000 1.57
+++ fixes.xml 29 Jun 2006 11:41:04 -0000 1.58
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.57 2006/06/29 11:29:46 rillig Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.58 2006/06/29 11:41:04 rillig Exp $ -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>Making your package work</title>
@@ -982,14 +982,23 @@
<tgroup cols="3">
<thead><row><entry>Function</entry><entry>Library</entry><entry>Affected platforms</entry></row></thead>
<tbody>
- <row><entry>gethost*</entry><entry>-lnsl</entry><entry>Solaris</entry></row>
<row><entry>accept, bind, connect</entry><entry>-lsocket</entry><entry>Solaris</entry></row>
- <row><entry>inet_aton</entry><entry>-lresolv</entry><entry>Solaris</entry></row>
+ <row><entry>crypt</entry><entry>-lcrypt</entry><entry>DragonFly, NetBSD</entry></row>
<row><entry>dlopen, dlsym</entry><entry>-ldl</entry><entry>Linux</entry></row>
+ <row><entry>gethost*</entry><entry>-lnsl</entry><entry>Solaris</entry></row>
+ <row><entry>inet_aton</entry><entry>-lresolv</entry><entry>Solaris</entry></row>
+ <row><entry>nanosleep, sem_*, timer_*</entry><entry>-lrt</entry><entry>Solaris</entry></row>
+ <row><entry>openpty</entry><entry>-lutil</entry><entry>Linux</entry></row>
</tbody>
</tgroup>
</informaltable>
+ <para>To fix these linker errors, it is often sufficient to say
+ <literal>LIBS.<replaceable>OperatingSystem</replaceable>+=
+ -l<replaceable>foo</replaceable></literal> to the package
+ <filename>Makefile</filename> and then say <command>bmake clean;
+ bmake</command>.</para>
+
</sect2>
</sect1>