Subject: Re: [build bug] nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to `crc32c_le'

From: Patrick McHardy <[email-masked]>
Date: Mon, 21 Apr 2008 13:18:22 +0200

David Miller wrote:
> From: Adrian Bunk <[email-masked]>
> Date: Mon, 21 Apr 2008 11:44:02 +0300
> 
>> On Sun, Apr 20, 2008 at 11:53:54PM -0700, David Miller wrote:
>>> From: Ingo Molnar <[email-masked]>
>>> Date: Mon, 21 Apr 2008 08:22:44 +0200
>>>
>>>>   net/built-in.o: In function `sctp_manip_pkt':
>>>>   nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to `crc32c_le'
>>>>   nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to `crc32c_le'
>>>>   nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to `crc32c_le'
>>>>   nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to `crc32c_le'
>>>>
>>>>   http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad
>>> Thanks for your report Ingo.
>>>
>>> Patrick, I'm not so sure how to fix this, or even what's wrong.
>>>
>>> NF_NAT_PROTO_SCTP does a proper select on LIBCRC32C, but somehow
>>> NF_NAT_PROTO_SCTP=y and LIBCRC32C=m.
>>> ...
>> You added the select on Saturday after Pete Clements reported the same 
>> issue.
>>
>> The select is not yet in Linus' tree.
> 
> Thanks for catching that Adrian.

I've verified that Saturday's patch results in a correct looking
config, with

CONFIG_NF_NAT_PROTO_SCTP=y
CONFIG_LIBCRC32C=y