강좌 & 팁
글 수 2,412
2011.03.20 00:37:18 (*.148.85.45)
43713
DHCP Client 관련 arm용으로 컴파일 하는 방법을 소개합니다.
이미 이와 관련한 자료들은 인터넷에서 찾아보면 자료가 많습니다.
하지만 다시 저희 포럼을 통해서 컴파일 하는 방법을 알려드립니다.
사용된 TEST ARM보드는 EZ-S3C6410 보드입니다.
따라서 크로스 컴파이러도 EZ-S3C6410 에서 사용하는 크로스 컴파일러 입니다.
크로스 컴파일러가 설치되어 있지 않다면 아래의 주소로 다운받아서 설치하시면 됩니다.
http://ftp.falinux.com/toolchain_ramdisk/recommendation/gcc-4.3.2/
arm-linux-gnueabi-4.3.2.tar.gz
1. DHCP Client 다운로드 사이트는 다음과 같습니다.
http://open-source.arkoon.net/gpl.php
http://www.ibiblio.org/pub/Linux/system/network/daemons/
2. 다운로드할 파일은 다음과 같습니다.
dhcpcd-1.3.22-pl3.tar.gz
3. 압축 풀기
작업 디렉토리는 /project/ 로 합니다.
[project #] tar -zxvf dhcpcd-1.3.22-pl3.tar.gz
[project #] cd dhcpcd-1.3.22-pl3
4. 컴파일 하기
* 환경 설정
[dhcpcd-1.3.22-pl3 #] CC=arm-generic-linux-gnueabi-gcc ./configure --prefix=/project/dhcpcd-1.3.22-pl3/_install --host=arm-generic-linux-gnueabi
또는
[dhcpcd-1.3.22-pl3
#] ./configure
--prefix=/project/dhcpcd-1.3.22-pl3/_install
--host=arm-generic-linux-gnueabi
* Makefile 수정
Makefile에서 CC 가 arm-generic-linux-gnueabi-gcc 로 되어 있지 않다면 이를 수정한다.
[dhcpcd-1.3.22-pl3 #] vi Makefile
57 AWK = gawk
58 CC = gcc
59 DEPDIR = .deps
를 아래와 같이 수정한다.
57 AWK = gawk
58 CC = arm-generic-linux-gnueabi-gcc
59 DEPDIR = .deps
73 sbindir = ${exec_prefix}/sbin
74 mandir = /usr/man
를 아래와 같이 수정한다.
73 sbindir = ${exec_prefix}/sbin
74 mandir = ${prefix}/man
116 configdir = ${sysconfdir}/dhcpc
117 docdir = /usr/doc
를 아래와 같이 수정한다.
116 configdir = ${sysconfdir}/dhcpc
117 docdir = ${prefix}/doc
* 컴파일 하기
[dhcpcd-1.3.22-pl3 #] make
[dhcpcd-1.3.22-pl3 #] make install
5. 컴파일이 정상적으로 되면 _install 디렉토리가 생성되고, 관련 파일들이 생성됩니다.
이 생성된 파일들을 ARM 보드에 올려서 사용하면 됩니다.
파일시스템이 램디스크인 경우에는 램디스크이미지에 이 파일들을 포함해서 올리시면 됩니다.
DHCP Client 는 busybox에서도 udhcpc 파일로 제공을 하고 있습니다.
6. 실행하기
컴파일한 파일들을 ARM 보드에 모두 올려다면 다음과 같이 실행합니다.
$] cd /sbin
sbin $] ./dhcpcd -d eth0
저는 Host PC의 OS로서 CentOS6.2를 이용하고 있습니다.
위의 글대로 컴파일을 진행하는데 오류가 발생합니다.... ㅠ ㅠ
이것 땜에 2틀이라는 시간을 뺏겻어요... 좀 도와 주세요.
오류 내용은 다음과 같습니다.
==========================================================[root@localhost dhcpcd-1.3.22-pl3]# CC=arm-generic-linux-gnueabi-gcc ./configure --prefix=/project/dhcpcd-1.3.22-pl3/_install --host=arm-generic-linux-gnueabi
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... ./config.guess: line 784: ./dummy-2177: cannot execute binary file
./config.guess: line 1053: ./dummy-2177: cannot execute binary file
configure: error: cannot guess build type; you must specify one
[root@localhost dhcpcd-1.3.22-pl3]#
============================================================================
그래서 다음과 같이 두번째 방안으로 config하면 오류는 나오지 않습니다.
===============================================================
[root@localhost dhcpcd-1.3.22-pl3]# ./configure --prefix=/project/dhcpcd-1.3.22-pl3/_install --host=arm-generic-linux-gnueabi
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-generic-linux-gnueabi
checking for arm-generic-linux-gnueabi-gcc... arm-generic-linux-gnueabi-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether arm-generic-linux-gnueabi-gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of arm-generic-linux-gnueabi-gcc... gcc3
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... arm-generic-linux-gnueabi-gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for paths.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for mode_t... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether arm-generic-linux-gnueabi-gcc needs -traditional... no
checking for working memcmp... no
checking for select... yes
checking for socket... yes
checking for uname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dhcpcd.spec
[root@localhost dhcpcd-1.3.22-pl3]#
===============================================================
Make파일의 내용도 지적한 대로 설정하여 주었습니다.
다음 make지령을 수행하면 다음과 같이 오류가 나옵니다.
==========================================================
[root@localhost dhcpcd-1.3.22-pl3]# make
source='client.c' object='client.o' libtool=no \
depfile='.deps/client.Po' tmpdepfile='.deps/client.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
arm-generic-linux-gnueabi-gcc -DPACKAGE=\"dhcpcd\" -DVERSION=\"1.3.22-pl3\" -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_PATHS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_UNAME=1 -I. -I. -O2 -fomit-frame-pointer -Wall -c `test -f client.c || echo './'`client.c
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/netdevice.h:28,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:11,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/if.h:120: error: redefinition of 'struct ifmap'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/if.h:156: error: redefinition of 'struct ifreq'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/if.h:206: error: redefinition of 'struct ifconf'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/netdevice.h:30,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:11,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/if_packet.h:7: error: redefinition of 'struct sockaddr_pkt'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:5,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:4,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:14,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/div64.h:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div64_64'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:4,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:14,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h: In function 'do_div_llr':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:23: error: 'u64' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:23: error: (Each undeclared identifier is reported only once
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:23: error: for each function it appears in.)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:23: error: expected ';' before 'result'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:25: error: 'result' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/calc64.h:25: error: expected string literal before '__asmeq'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:7,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:14,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/time.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/time.h:12: error: redefinition of 'struct timespec'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/time.h:18: error: redefinition of 'struct timeval'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/time.h:23: error: redefinition of 'struct timezone'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/time.h:201: error: redefinition of 'struct itimerval'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:14,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:81: error: expected ',' or ';' before 'jiffies_64'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'get_jiffies_64'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:14,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:274: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jiffies_to_clock_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:276: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jiffies_64_to_clock_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/jiffies.h:277: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsec_to_clock_t'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:24,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:21,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h:290: error: expected declaration specifiers or '...' before 'bool'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h: In function 'double_spin_lock':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h:294: error: 'l1_first' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h:309: error: expected declaration specifiers or '...' before 'bool'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h: In function 'double_spin_unlock':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/spinlock.h:313: error: 'l1_taken_first' undeclared (first use in this function)
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:25,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:27,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:21,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:179: error: expected ')' before 'fs'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:395: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strncpy_from_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:396: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strnlen_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:398: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'copy_from_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:407: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'copy_to_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:417: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clear_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:424: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strncpy_from_user'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/uaccess.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strnlen_user'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:26,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:27,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:21,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/checksum.h: In function 'csum_fold':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/checksum.h:52: error: 'u32' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/checksum.h:52: error: expected ')' before 'sum'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:27,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:21,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h: In function 'csum_add':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:62: error: 'u32' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:62: error: expected ';' before 'res'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:63: error: 'res' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:63: error: expected ';' before 'addend'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:64: error: expected ')' before 'addend'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h: In function 'csum_block_add':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:75: error: 'u32' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:75: error: expected ';' before 'sum'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:77: error: 'sum' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h: In function 'csum_block_sub':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:84: error: 'u32' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:84: error: expected ';' before 'sum'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/checksum.h:86: error: 'sum' undeclared (first use in this function)
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:21,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:142: error: 'PAGE_SIZE' undeclared here (not in a function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/skbuff.h:160: error: expected specifier-qualifier-list before 'u32'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:15,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:46: error: field 'rcu_head' has incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:104: error: variably modified 'ha' at file scope
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:109: error: field 'timer' has incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:111: error: expected specifier-qualifier-list before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:129: error: expected specifier-qualifier-list before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:157: error: field 'gc_timer' has incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:158: error: field 'proxy_timer' has incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:195: error: expected ';', ',' or ')' before '*' token
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:203: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:248: error: expected declaration specifiers or '...' before 'proc_handler'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:249: error: expected declaration specifiers or '...' before 'ctl_handler'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h: In function 'neigh_hh_output':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:320: error: dereferencing pointer to incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:321: error: dereferencing pointer to incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:323: error: dereferencing pointer to incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:324: error: dereferencing pointer to incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/neighbour.h:327: error: dereferencing pointer to incomplete type
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:27,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:40: error: field 'rcu_head' has incomplete type
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:57: error: expected specifier-qualifier-list before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/dst.h:102: error: expected declaration specifiers or '...' before 'u32'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:29,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:85: error: 'BITS_PER_LONG' undeclared here (not in a function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:85: error: requested alignment is not a constant
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:92: error: expected declaration specifiers or '...' before 'u16'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:92: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:95: error: expected declaration specifiers or '...' before 'u16'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/flow.h:95: error: expected declaration specifiers or '...' before 'u8'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/signal.h:4,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:27,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:35,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/signal.h:27: error: conflicting types for 'sigset_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm/siginfo.h:4,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/signal.h:5,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:27,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:35,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/asm-generic/siginfo.h:75: error: expected specifier-qualifier-list before 'clock_t'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/key.h:19,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:33,
from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:35,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/list.h:959:2: warning: #warning "don't include kernel headers in userspace"
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:35,
from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:46: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:46: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:46: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:47: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:47: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:47: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:48: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:48: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:48: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2156: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2157: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2158: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: In function 'security_capget':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2160: error: 'effective' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2160: error: 'inheritable' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2160: error: 'permitted' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2160: error: too many arguments to function 'cap_capget'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2164: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2165: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2166: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: In function 'security_capset_check':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2168: error: 'effective' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2168: error: 'inheritable' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2168: error: 'permitted' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2168: error: too many arguments to function 'cap_capset_check'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2172: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2173: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2174: error: expected declaration specifiers or '...' before 'kernel_cap_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: In function 'security_capset_set':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2176: error: 'effective' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2176: error: 'inheritable' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2176: error: 'permitted' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2176: error: too many arguments to function 'cap_capset_set'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2578: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2626: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2791: error: expected ')' before 'secid'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:2796: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3075: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3080: error: expected declaration specifiers or '...' before 'gfp_t'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3220: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3234: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3234: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/linux/security.h:3245: error: expected declaration specifiers or '...' before 'u32'
In file included from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:38:2: warning: #warning This file is not supposed to be used outside of kernel.
In file included from client.c:36:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:118: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:125: error: expected ')' before '*' token
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:141: error: expected ')' before 'tos'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:147: error: expected declaration specifiers or '...' before 'u32'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:147: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h: In function 'ip_route_connect':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:154: error: 'tos' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:155: error: 'protocol' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:174: error: expected declaration specifiers or '...' before 'u8'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h: In function 'ip_route_newports':
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:184: error: 'protocol' undeclared (first use in this function)
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h: At top level:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/sys-include/net/route.h:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ipv4_route_table'
In file included from /usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/include/netdb.h:28,
from client.c:37:
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/include/netinet/in.h:36: error: expected identifier before numeric constant
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/include/netinet/in.h:195: error: redefinition of 'struct in6_addr'
/usr/lib/gcc/arm-generic-linux-gnueabi/4.3.2/../../../../arm-generic-linux-gnueabi/include/netinet/in.h:209: confused by earlier errors, bailing out
make: *** [client.o] Error 1
[root@localhost dhcpcd-1.3.22-pl3]#
==========================================================
답변부탁들립니다. 감사합니다.