DD-WRT 交叉编译环境编译出错

158 views
Skip to first unread message

unread,
Oct 7, 2012, 5:11:35 AM10/7/12
to njit802...@googlegroups.com
下载了交叉编译工具链,也export 了 bin 目录变量,然后在./configure的时候出错。

tooktang@tooktang-As4750G ~/njit/njit8021xclient-1.1 $ ./configure CFLAGS=-I/home/tooktang/toolchains/1/include LDFLAGS=-L/home/tooktang/toolchains/1/lib CC=/home/tooktang/toolchains/1/bin/mipsel-linux-gcc --host=mipsel-linux-uclibc

返回以下输出:

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 mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src (/home/tooktang/njit/njit8021xclient-1.1/src)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  'CFLAGS=-I/home/tooktang/toolchains/1/include' 'LDFLAGS=-L/home/tooktang/toolchains/1/lib' 'CC=/home/tooktang/toolchains/1/bin/mipsel-linux-gcc' '--host=mipsel-linux-uclibc' 'host_alias=mipsel-linux-uclibc' --cache-file=/dev/null --srcdir=.
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 program prefix for njit8021xclient... njit-
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mipsel-linux-uclibc-gcc... /home/tooktang/toolchains/1/bin/mipsel-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/tooktang/toolchains/1/bin/mipsel-linux-gcc accepts -g... yes
checking for /home/tooktang/toolchains/1/bin/mipsel-linux-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/tooktang/toolchains/1/bin/mipsel-linux-gcc... gcc3
checking gcc version... 3
checking for inline... inline
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... no
checking for local pcap library... not found
checking for mipsel-linux-uclibc-pcap-config... no
checking for pcap-config... /home/tooktang/toolchains/1/bin/pcap-config
configure: WARNING: using cross tools not prefixed with host triplet
checking for pcap_loop... no
configure: error: Report this to tcpdump...@lists.tcpdump.org, and include the
config.log file in your report
configure: error: ./configure failed for src

我是用相同的命令成功编译了 libpcap 1.0.0 到交叉编译工具链之中的,为什么在这个时候会提示 pcap 有错呢?请各位指教!
Reply all
Reply to author
Forward
0 new messages