[dpdk-dev] [PATCH] eal: fix build for bsd

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Jul 2 12:05:08 CEST 2014


Hi Zhaochen,

Please read answer below:

2014-07-02 09:58, Zhan, Zhaochen:
> I have tested the patch, it still has a build error although it is different
> from the previous one.
> 
> OS: FreeBSD10
> 
> == Build lib/librte_pmd_bond
>   CC rte_eth_bond_api.o
> /root/zzc/dpdk-1.7.0-rc3/lib/librte_pmd_bond/rte_eth_bond_api.c:35:27: fatal
> error: linux/binfmts.h: No such file or directory #include
> <linux/binfmts.h>

Please check with the latest version in master branch (after rc3).
It should be fixed by Helin's patch of today.

Thanks
-- 
Thomas


> > -----Original Message-----
> > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon
> > Sent: Wednesday, July 02, 2014 5:22 PM
> > To: dev at dpdk.org
> > Subject: [dpdk-dev] [PATCH] eal: fix build for bsd
> > 
> > When adding link bonding to EAL initialization (a155d430119),
> > an include was missing for BSD.
> > 
> > Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
> > ---
> > 
> >  lib/librte_eal/bsdapp/eal/eal.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > Please, a quick test and acknowledgement of this fix would be helpful.
> > 
> > 
> > diff --git a/lib/librte_eal/bsdapp/eal/eal.c
> > b/lib/librte_eal/bsdapp/eal/eal.c index ec57b26..69ead31 100644
> > --- a/lib/librte_eal/bsdapp/eal/eal.c
> > +++ b/lib/librte_eal/bsdapp/eal/eal.c
> > @@ -66,6 +66,7 @@
> > 
> >  #include <rte_cpuflags.h>
> >  #include <rte_interrupts.h>
> >  #include <rte_pci.h>
> > 
> > +#include <rte_dev.h>
> > 
> >  #include <rte_devargs.h>
> >  #include <rte_common.h>
> >  #include <rte_version.h>
> > 
> > --
> > 2.0.0



More information about the dev mailing list