阿信 寫:小弟之前用unstable的時候是用gcc-3.x編譯kernel的,但usb mouse是正常啦。
請參考
http://marc.theaimsgroup.com/?l=linux-k ... 701454&w=2
http://marc.theaimsgroup.com/?l=linux-k ... 016665&w=2
ide cd-rom編譯出錯部份
http://marc.theaimsgroup.com/?l=linux-k ... 728468&w=2
gcc 3.3 跟現在的kernel 編譯出問題
據看到的mailing list討論是 gcc 3.3檢查code更嚴格.......
這是kernel.org方面包括 老大linus的回應
看來是 gcc 3.3 抱怨 kernel source寫的不夠嚴謹
linus 老大跳出來罵 gcc 方面 fxcking ooxx 等等
http://marc.theaimsgroup.com/?t=104611164800008&r=1&w=2
這是一個人家提供的解法
List: linux-kernel
Subject: [PATCH] fix kernel link error with 2.4.21rc2ac2 using gcc 3.3
From: Alex Davis <alex14641 () yahoo ! com>
Date: 2003-05-14 21:35:54
[Download message RAW]
--- ./net/core/rtnetlink.c.old Wed May 14 18:38:59 2003
+++ ./net/core/rtnetlink.c Wed May 14 18:38:37 2003
@@ -394,7 +394,7 @@
* Malformed skbs with wrong lengths of messages are discarded silently.
*/
-extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
+extern int rtnetlink_rcv_skb(struct sk_buff *skb)
{
int err;
struct nlmsghdr * nlh;
Note: this problem exists in 2.4.21rc1 as well.
這是一個開發人員跳出來說這樣不是真的解法
List: linux-kernel
Subject: Re: [PATCH] fix kernel link error with 2.4.21rc2ac2 using gcc 3.3
From: "David S. Miller" <davem () redhat ! com>
Date: 2003-05-15 3:05:43
[Download message RAW]
On Wed, 2003-05-14 at 14:35, Alex Davis wrote:
> -extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
> +extern int rtnetlink_rcv_skb(struct sk_buff *skb)
Fix is wrong, mark it static instead. That's what I'm
doing in my tree.
不過我看不懂這個回應所說的 mark it static instead 是指什麼