* 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3
@ 2003-04-29 10:44 Axel Siebenwirth
2003-04-29 11:35 ` Nicholas Wourms
2003-04-29 11:51 ` James Courtier-Dutton
0 siblings, 2 replies; 4+ messages in thread
From: Axel Siebenwirth @ 2003-04-29 10:44 UTC (permalink / raw)
To: linux-kernel
Hi,
today I have successfully built 2.4.21-rc1-ac3 with gcc-3.2.3. Everything
was fine.
Then I built with gcc-3.3 and I encountered an error:
net/network.o(.text+0xdcd7): In function `rtnetlink_rcv':
: undefined reference to `rtnetlink_rcv_skb'
This build error only occurs with gcc-3.3.
Can somebody who knows the kernel look whether the error is legitimate or
gcc is making errors.
Regards,
Axel Siebenwirth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3
2003-04-29 10:44 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3 Axel Siebenwirth
@ 2003-04-29 11:35 ` Nicholas Wourms
2003-04-29 11:54 ` James Courtier-Dutton
2003-04-29 11:51 ` James Courtier-Dutton
1 sibling, 1 reply; 4+ messages in thread
From: Nicholas Wourms @ 2003-04-29 11:35 UTC (permalink / raw)
To: linux-kernel
Axel Siebenwirth wrote:
> Hi,
>
> today I have successfully built 2.4.21-rc1-ac3 with gcc-3.2.3. Everything
> was fine.
> Then I built with gcc-3.3 and I encountered an error:
>
> net/network.o(.text+0xdcd7): In function `rtnetlink_rcv':
> : undefined reference to `rtnetlink_rcv_skb'
>
> This build error only occurs with gcc-3.3.
>
> Can somebody who knows the kernel look whether the error is legitimate or
> gcc is making errors.
I'm not sure if this is necessarily the right way, but
changing the declaration for rtnetlink_rcv_skb() in
net/core/rtnetlink.c from "extern" to "static" seems to have
fixed the problem for me. In any case, I couldn't find any
external references to that function, so it seems to me that
this is the way to go.
Cheers,
Nicholas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3
2003-04-29 11:35 ` Nicholas Wourms
@ 2003-04-29 11:54 ` James Courtier-Dutton
0 siblings, 0 replies; 4+ messages in thread
From: James Courtier-Dutton @ 2003-04-29 11:54 UTC (permalink / raw)
To: Nicholas Wourms; +Cc: linux-kernel
Nicholas Wourms wrote:
> Axel Siebenwirth wrote:
>
>> Hi,
>>
>> today I have successfully built 2.4.21-rc1-ac3 with gcc-3.2.3.
>> Everything
>> was fine.
>> Then I built with gcc-3.3 and I encountered an error:
>>
>> net/network.o(.text+0xdcd7): In function `rtnetlink_rcv':
>> : undefined reference to `rtnetlink_rcv_skb'
>>
>> This build error only occurs with gcc-3.3.
>>
>> Can somebody who knows the kernel look whether the error is
>> legitimate or gcc is making errors.
>
>
> I'm not sure if this is necessarily the right way, but changing the
> declaration for rtnetlink_rcv_skb() in net/core/rtnetlink.c from
> "extern" to "static" seems to have fixed the problem for me. In any
> case, I couldn't find any external references to that function, so it
> seems to me that this is the way to go.
>
> Cheers,
> Nicholas
>
>
Please ignore my last email. I in fact did the same as Nicholas and it
fixed it for me.
I also had a problem in the reiserfs module, with a kprintf statement
format string spread over two lines. Removing what looked like a
misplaced newline fixed it.
Cheers
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3
2003-04-29 10:44 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3 Axel Siebenwirth
2003-04-29 11:35 ` Nicholas Wourms
@ 2003-04-29 11:51 ` James Courtier-Dutton
1 sibling, 0 replies; 4+ messages in thread
From: James Courtier-Dutton @ 2003-04-29 11:51 UTC (permalink / raw)
To: Axel Siebenwirth; +Cc: linux-kernel
Axel Siebenwirth wrote:
>Hi,
>
>today I have successfully built 2.4.21-rc1-ac3 with gcc-3.2.3. Everything
>was fine.
>Then I built with gcc-3.3 and I encountered an error:
>
>net/network.o(.text+0xdcd7): In function `rtnetlink_rcv':
>: undefined reference to `rtnetlink_rcv_skb'
>
>This build error only occurs with gcc-3.3.
>
>Can somebody who knows the kernel look whether the error is legitimate or
>gcc is making errors.
>
>Regards,
>Axel Siebenwirth
>-
>
>
I received this same error building kernel 2.4.20 with gcc-3.3
If I re-did the config to make everything modules, instead of compiled
in the kernel, the error was removed.
Cheers
James
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-29 11:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-29 10:44 2.4.21-rc1-ac3: unresolved symbol only with gcc-3.3 Axel Siebenwirth
2003-04-29 11:35 ` Nicholas Wourms
2003-04-29 11:54 ` James Courtier-Dutton
2003-04-29 11:51 ` James Courtier-Dutton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox