碰到這樣的 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.
做就可以了.
全站熱搜
留言列表