[yocto] iptables not building on master

Robert Yang liezhi.yang at windriver.com
Tue Mar 6 01:04:47 PST 2012


Hi Tom,

Thanks for the update, the root cause is that iptables offers
a kernel header file include/linux/types.h, but it mis-matches
the kernel in the sysroot, we can add this:

#define __aligned_u64 __u64 __attribute__((aligned(8)))

to:

iptables-1.4.12.2/include/linux/types.h

to fix this problem.

Another solution is that as Dexuan suggested we change the order of
the include header files, but I'm afraid that may cause other problems,
since I think that the pkg's own header file should have a higher priority
than the system's, so I think that the current order is correct.

I will send a pull request after enough testing.

// Robert

On 03/06/2012 02:48 PM, Tom Zanussi wrote:
> In the meantime, if you remove the line:
>
> PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
>
> from meta-intel/conf/machine/include/ia32-base.inc
>
> it will pick up the same headers as qemux86 and you shouldn't see this
> problem.
>
> Tom
>
> On Tue, 2012-03-06 at 13:59 +0800, Robert Yang wrote:
>> Hi Dexuan,
>>
>> I will take the bug and work on it.
>>
>> // Robert
>>
>> On 03/06/2012 01:35 PM, Cui, Dexuan wrote:
>>> Hi all, I got the same issue 3 days age and reported a bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=2053
>>>
>>> I did some analysis and I tend to think we need to fix iptables's makefile.
>>> I have been in a business traval since then so I can't continue the debugging.
>>> It would be great if somebody can help on this.
>>>
>>> Thanks,
>>> -- Dexuan
>>>
>>>
>>>> -----Original Message-----
>>>> From: yocto-bounces at yoctoproject.org
>>>> [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Tom Zanussi
>>>> Sent: Tuesday, March 06, 2012 1:10 PM
>>>> To: Autif Khan
>>>> Cc: yocto at yoctoproject.org
>>>> Subject: Re: [yocto] iptables not building on master
>>>>
>>>> Hi Autif,
>>>>
>>>> I'm sure it's nothing to do with crownbay or meta-intel, but I'll fire off a
>>>> build anyway.  I only have my laptop available, so it may take all night,
>>>> but will let you know what I find.  FWIW I normally build on master of
>>>> both meta-intel and poky and haven't seen this, so it must be very recent.
>>>>
>>>> Tom
>>>>
>>>> On Mon, 2012-03-05 at 17:44 -0500, Autif Khan wrote:
>>>>> Interesting - core image minimal builds fine - it does not actually
>>>>> build iptables. So the point is moot.
>>>>>
>>>>> I did a clean build for core-image-sato and it failed at the same
>>>>> place for the same error.
>>>>>
>>>>> I am no sure how meta-intel + meta-crownbay can interact with iptables
>>>>> - there is no recipe for iptables in meta-intel anywhere.
>>>>>
>>>>> Tom - If you have the bandwidth - can you please see if you can
>>>>> replicate my woes.
>>>>>
>>>>> I do not know anyone else who is on master and crownbay. If there -
>>>>> please let me know if things work for you.
>>>>>
>>>>> This broke for me when I moved from M2 to master.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Autif
>>>>>
>>>>> On Mon, Mar 5, 2012 at 4:27 PM, Autif Khan<autif.mlist at gmail.com>
>>>> wrote:
>>>>>> I love working with master:
>>>>>>
>>>>>> work/i586-poky-linux/polkit-0.104-r4/temp/log.do_configure says:
>>>>>>
>>>>>> configure: error: Could not find pam/pam-devel, please install the
>>>>>> needed packages.
>>>>>>
>>>>>> It seems like pam/pam-dev is needed in the target environment and
>>>>>> not in the host environment.
>>>>>>
>>>>>> Although, iptables seem to have built. I can't imagine how it will
>>>>>> be affected by meta-intel and meta-crownbay - they do not do
>>>>>> anything with iptables.
>>>>>>
>>>>>> Trying to build core-image-minimal for crownbay now. Will report
>>>> when done.
>>>>>>
>>>>>> On Mon, Mar 5, 2012 at 4:03 PM, Autif Khan<autif.mlist at gmail.com>
>>>> wrote:
>>>>>>> I was working with M2 until recently and had to switch to master.
>>>>>>> After I switched to master, I tried to bitbake core-image-sato for
>>>>>>> machine crownbay. The build fails with the following error:
>>>>>>>
>>>>>>> unknown type name '__aligned_u64'
>>>>>>>
>>>>>>> The file in question is extenstions/libxt_pkttypes.c
>>>>>>>
>>>>>>> After a bit of investigation (thanks Khem) it seems like instead of
>>>>>>> /usr/include/linux/types.h, the include/linux/types.h from iptables
>>>>>>> source is being included. These a bit incompatible - specifically -
>>>>>>> the definition for __aligned_u64 is not in the latter.
>>>>>>>
>>>>>>> I am building core-image-sato for qemux86 and will report when the
>>>>>>> build reaches that point.
>>>>>>>
>>>>>>> Is this a known issue?
>>>>>>>
>>>>>>> *** This issue should be hitting anyone doing a clean build on
>>>> master.
>>>>>>> Or at the very least someone who builds iptables recipe***
>>>>>>>
>>>>>>> I looked at the recent change (post M2) that iptables was updated
>>>>>>> to
>>>>>>> 1.2.12.2 (from 1.2.12.1). There was a patch included for
>>>>>>> extensions/GNUmakefile  which does not build "check" target. I
>>>>>>> looked at what it does and realized that someone more experienced
>>>>>>> that I am should look into this.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Autif
>>>>
>>>>
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto at yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>
>
>



More information about the yocto mailing list