Configure Error Cannot Determine Linux Version When Cross-compiling
$PATH 1.download libpcap and tcpdump $ wget http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz $ wget http://www.tcpdump.org/release/tcpdump-4.1.1.tar.gz 2.configure libpcap $ CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/path/to/install if error has occurred like this: configure: error: pcap type not determined when cross-compiling; use --with-pcap=... the type of packet capture could be found in configure 6914 if test ! -z "$with_pcap" ; then 6915 V_PCAP="$withval" 6916 elif test -r /dev/bpf -o -h /dev/bpf ; then 6917 # 6918 # Cloning BPF device. 6919 # 6920 V_PCAP=bpf 6921 6922 cat >>confdefs.h <<\_ACEOF 6923 #define HAVE_CLONING_BPF 1 6924 _ACEOF 6925 6926 elif test -r /dev/bpf0 ; then 6927 V_PCAP=bpf 6928 elif test -r /usr/include/net/pfilt.h ; then 6929 V_PCAP=pf 6930 elif test -r /dev/enet ; then 6931 V_PCAP=enet 6932 elif test -r /dev/nit ; then 6933 V_PCAP=snit 6934 elif test -r /usr/include/sys/net/nit.h ; then 6935 V_PCAP=nit 6936 elif test -r /usr/include/linux/socket.h ; then 6937 V_PCAP=linux 6938 elif test -r /usr/include/net/raw.h ; then 6939 V_PCAP=snoop 6940 elif test -r /usr/include/odmi.h ; then 6941 # 6942 # On AIX, the BPF devices might not yet be present - they're 6943 # created the first time libpcap runs after booting. 6944 # We check for odmi.h instead. 6945 # 6946 V_PCAP=bpf 6947 elif test -c /dev/bpf0 ; then # check again in case not readable 6948 V_PCAP=bpf 6949 elif test -r /usr/include/sys/dlpi.h ; then 6950 V_PCAP=dlpi 6951 elif test -c /dev/enet ; then # check again in case not readable 6952 V_PCAP=enet 6953 elif test -c /dev/nit ; then # check again in case not readable 6954 V_PCAP=snit 6955 else 6956 V_PCAP=null 6957 fi configure with pcap type=null could avoid error, $ CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/path/to/install --with-pcap=null OR modify configure(mark cross-compiling linux version check) $ vim configure 6901 #if test -z "$with_pcap" && test "$cross_compiling" = yes; then 6902 # { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5 6903 #echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;} 6904 # { (exit 1); exit 1; }; } 6905 #fi ... 7237 # if test $ac_cv_linux_vers = unknown ; then 7238 # { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 7239 #echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 7240 # { (exit 1); exit 1; }; } 7241 # fi 7242 # if test $ac_cv_linux_vers -lt
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten
whether to build optimizer debugging code... nochecking whether to build parser debugging code... nochecking Linux kernel version... http://porterchen-note.blogspot.com/2010/09/check-linux-version-failed-while.html unknownconfigure: error: cannot determine linux version when cross-compilingSolution:Directly edit "configure" file, and add a new line:linux) ac_cv_linux_vers=2 echo "$as_me:$LINENO: http://stackoverflow.com/questions/7702656/error-when-cross-compiling-gnutls checking Linux kernel version" >&5echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6This is a work-around, actually I don't like that. configure error 標籤: Porting 0 意見: 張貼留言 較新的文章 較舊的文章 首頁 訂閱: 張貼留言 (Atom) 文章分類 Porting (24) Programming (4) Services (15) Utility (5) 本月文章 ► 2014 (1) ► 05 (1) ► 2013 (2) ► 08 (2) ► 2011 (18) ► 07 configure error cannot (2) ► 06 (6) ► 05 (3) ► 04 (4) ► 03 (3) ▼ 2010 (12) ► 11 (1) ▼ 09 (6) Improve DDOS, TIME_WAIT and CLOSE_WAIT issue awk: Illegal instruction warning: deprecated conversion from string constan... configure: error: cannot determine linux version w... sysctl.h:41: error: expected ':', ',', ';', '}' or... Failed in compiling busybox ► 05 (1) ► 04 (3) ► 01 (1) ► 2009 (7) ► 12 (3) ► 11 (1) ► 05 (1) ► 04 (1) ► 03 (1) ► 2005 (6) ► 11 (1) ► 09 (1) ► 05 (1) ► 04 (3) ► 2004 (2) ► 10 (1) ► 01 (1) 訂閱 發表文章 Atom 發表文章 留言 Atom 留言 文章未經同意,禁止轉載.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error When Cross Compiling gnutls up vote 0 down vote favorite I am trying to cross compile gnutls. Gnutls depends on libnettle. I was able to cross compile libnettle, however, when trying to cross compile gnutls, I encounter an error during configure: configure: error: Libnettle 2.2 was not found. The libnettle version I cross compiled was 2.2. Command to configure is: ./configure --host=mips --prefix=/home/tom/lib/gnutls-3.0.3 CC=/crosstools/mips-gcc CXX=/crosstools/mips-g++ --enable-shared --with-libnettle-prefix=/home/tom/lib/nettle-2.2 I have also tried: configure with LDFLAGS="-L/home/tom/lib/nettle-2.2" with no luck. The libs are installed in /home/tom/lib/nettle-2.2/lib. I have also tried this directory. For some reason libnettle is not getting detected. Anyone know why? linux compilation cross-compiling mips64 share|improve this question edited Oct 9 '11 at 9:50 Hasturkun 23.5k24476 asked Oct 9 '11 at 9:46 tommy 11 Try LFLAGS instead and look in the output of configure (config.log). What fails? –Alex B Oct 9 '11 at 9:54 but what's in config.log? It should have what test program was compiled to detect libnettle and what made it fail. –Alex B Oct 10 '11 at 4:01 Thank you for your reply, Alex. I have tried with LFLAGS instead, and encounter the same thing. configure:8351: checking for libnettle configure:8370: /crosstoolsmips64/bin/mips-gcc -std= gnu99 -o conftest -g -O2 conftest.c -lnettle -lhogweed -lgmp >&5 conftest.c:36:24: nettle/gcm.h: No such file or directory conftest.c: In function main': conftest.c:40: warning: implicit declaration of function gcm_set_iv' configure:8370: $? = 1 configure