碰到這樣的 Message

> the location of the previous definition
> fio.c:150:35: error: macro "offsetof" requires 2 arguments, but only 1 given
> fio.c: In function 'setptr':
> fio.c:150: error: 'offsetof' undeclared (first use in this function)
> fio.c:150: error: (Each undeclared identifier is reported only once
> fio.c:150: error: for each function it appears in.)
> fio.c:137: warning: ignoring return value of 'fwrite', declared with attribute
> warn_unused_result
> fio.c: In function 'putline':
> fio.c:191: warning: ignoring return value of 'fwrite', declared with attribute
> warn_unused_result
> make: *** [fio.o] Error 1

可以去Gentoo Bugszilla: 305251 Download 附件, 然後照

Mailx offsetoff ebuild patch

In an attachment there is a patch for mailx-8.1.2.20050715-r1 ebuild.
This fixes the "offsetoff" emerge failure (at least for me).
Usage:
a) Place mailx-8.1.2.20050715-offsetoff.patch (previous attachment) in
/usr/portage/mail-client/mailx/files directory;
b) Place mailx-8.1.2.20050715-r1.ebuild.patch in /usr/portage/mail-client/mailx
directory;
c) "cd /usr/portage/mail-client/mailx" (w/o quotes);
d) Apply patch: "patch -p0 <mailx-8.1.2.20050715-r1.ebuild.patch";
e) "ebuild mailx-8.1.2.20050715-r1.ebuild digest";
f) Reemerge mailx.

做就可以了.

創作者介紹
創作者 richliu 的頭像
richliu

有錢劉的碎碎唸.

richliu 發表在 痞客邦 留言(1) 人氣()


留言列表 (1)

發表留言
  • Adonis
  • 一定要保持最佳狀況呦,加油!!!期待你發表的新文章!