Skip to contentSkip to conversation

link error building kernel with gcc-3.3

DISCUSSION Alex Davis 3 participants 5 messages May 14, 2003 – May 15, 2003

Subsystems (2)
lore
Share & tools
lore

Alex Davis

author
#0 lore raw

I got the following linking 2.4.21rc1:

net/network.o(.text+0xdcb7): In function `rtnetlink_rcv':
: undefined reference to `rtnetlink_rcv_skb'
make: *** [vmlinux] Error 1

Removing '__inline__' from the definition of rtnetlink_rcv_skb in net/core/rtnetlink.c fixed the problem.

Note: this error also occurs in 2.4.21rc2-ac2

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

#1 lore raw
Quoted 10 lines · Alex Davis

I got the following linking 2.4.21rc1:

net/network.o(.text+0xdcb7): In function `rtnetlink_rcv':
: undefined reference to `rtnetlink_rcv_skb'
make: *** [vmlinux] Error 1

Removing '__inline__' from the definition of rtnetlink_rcv_skb in net/core/rtnetlink.c fixed the problem.

Note: this error also occurs in 2.4.21rc2-ac2

I wonder, does this mean that the compiler failed to inline the function?

Removing __inline__ is not the correct solution.

- James

Signature · 2 lines
James Morris
<[email protected]>
#2 lore raw

From: James Morris <[email protected]>
Date: Thu, 15 May 2003 15:38:15 +1000 (EST)

I wonder, does this mean that the compiler failed to inline the function?

Removing __inline__ is not the correct solution.

I already posted what the correct fix is :-) And this is already pushed to 2.5.x

Inlining is not guarenteed, and:

extern inline ... foo(...)

means "inline if you can, I have a compiled-in implementation in some object somewhere" whereas:

static inline ... foo(...)

means "inline if you can, if there is a case where you cannot emit this as a function into the current module"

author
#3 lore raw

Can you push it to 2.4.x as well?

-Alex

Quoted 9 lines · --- "David S. Miller

From: James Morris <[email protected]>
Date: Thu, 15 May 2003 15:38:15 +1000 (EST)

I wonder, does this mean that the compiler failed to inline the function?

Removing __inline__ is not the correct solution.

I already posted what the correct fix is :-) And this is already pushed to 2.5.x

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

#4 lore raw

From: Alex Davis <[email protected]>
Date: Thu, 15 May 2003 07:56:33 -0700 (PDT)

Can you push it to 2.4.x as well?

I did, but it won't go in until 2.4.22-pre1, this isn't critical at all.