[Buildroot] adding dhcpcd

John Stile john at stilen.com
Thu Mar 7 14:53:10 UTC 2013


Hello Gilles Talis,
On Thu, 2013-03-07 at 00:53 -0800, Gilles Talis wrote:
> Hi John,
> 
> 2013/3/6 John Stile <john at stilen.com>:
> > That did get me quite a bit farther.
> >
> > ... now it fails to find a few more symbols:
> > bpf.c:32:21: error: net/bpf.h: No such file or directory
> > In file included from bpf.c:49:
> > bpf-filter.h:33: error: array type has incomplete element type
> > bpf-filter.h:36: error: 'BPF_LD' undeclared here (not in a function)
> > bpf-filter.h:36: error: 'BPF_H' undeclared here (not in a function)
> > bpf-filter.h:36: error: 'BPF_ABS' undeclared here (not in a function)
> > bpf-filter.h:37: error: 'BPF_JMP' undeclared here (not in a function)
> > bpf-filter.h:37: error: 'BPF_JEQ' undeclared here (not in a function)
> > bpf-filter.h:37: error: 'BPF_K' undeclared here (not in a function)
> > bpf-filter.h:46: error: 'BPF_RET' undeclared here (not in a function)
> > bpf-filter.h:78: error: array type has incomplete element type
> > bpf-filter.h:85: error: 'BPF_B' undeclared here (not in a function)
> > bpf-filter.h:89: error: 'BPF_JSET' undeclared here (not in a function)
> > bpf-filter.h:91: error: 'BPF_LDX' undeclared here (not in a function)
> > bpf-filter.h:91: error: 'BPF_MSH' undeclared here (not in a function)
> > bpf-filter.h:93: error: 'BPF_IND' undeclared here (not in a function)
> >
> > I can see output/build/dhcpcd-5.6.7/bpf.c
> > has: #include "bpf-filter.h"
> >
> > I can see the symbols are defined in several files.
> > ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/linux/filter.h
> > ./output/toolchain/linux/include/linux/filter.h
> > ./output/toolchain/uClibc_dev/usr/include/linux/filter.h
> > ./output/toolchain/linux-2.6.38.8/include/linux/filter.h
> Which OS are you trying to build this on? bpf.c is compiled only on
> non-linux based-platforms (e.g. BSD).
> I have tried myself on my ubuntu machine and dhcpcd builds fine.
> 
> Thanks
> Gilles.
I am building on: uname -a
Linux genx 3.3.8-gentoo #2 SMP Tue Oct 9 10:31:27 PDT 2012 x86_64 Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz GenuineIntel GNU/Linux
Maybe my generated confing.mk is wrong (from the configure step)
What is in your config.mk?
My config.mk contains:
# 
SYSCONFDIR=	/etc
SBINDIR=	/sbin
LIBEXECDIR=	/libexec
DBDIR=		/var/db
RUNDIR=		/var/run
LIBDIR=		/lib
MANDIR=		/usr/share/man
CC=		gcc
SRCS+=		bpf.c if-bsd.c platform-bsd.c
COMPAT_SRCS+=	compat/arc4random.c
COMPAT_SRCS+=	compat/closefrom.c
COMPAT_SRCS+=	compat/strlcpy.c
SERVICEEXISTS=	/sbin/rc-service -e $$1
SERVICECMD=	/sbin/rc-service $$1 -- -D $$2
SERVICESTATUS=	service_command $$1 status >/dev/null 2>\&1
HOOKSCRIPTS=	50-ntp.conf

Additionally, are the toolchain/uClibc/uClibc-0.9.32.config variables
available inside my dhcpcd.mk, so I can add the dependency on
UCLIBC_SUPPORT_AI_ADDRCONFIG?




More information about the buildroot mailing list