|
编译lftp之前先编译了ncurses,readline作lib和include,
CC=mipsel-linux-gcc ./configure --prefix=/share/Apps/lftp --host=mipsel-linux --without-gnutls --cache-file=mipsel-linux-cache
然后make,跑出来一个错,跑不下去了:
/bin/bash ../libtool --silent --tag=CXX --mode=compile mipsel-linux-g++ -DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -c -o network.lo network.cc
network.cc: In static member function 'static void Networker::SocketSinglePF(int, int)':
network.cc:291: error: 'IPV6_V6ONLY' was not declared in this scope
make[1]: *** [network.lo] 错误 1
make[1]:正在离开目录 `/home/d_zhou/nmt_crosscompile/lftp-4.2.1/src'
make: *** [all-recursive] 错误 1
上面的mipsel-linux-cache里面就一句话,i_cv_posix_fallocate_works=yes, 因为之前configure的时候会有一个什么cannot run test之类的错,google了一下就搞了这么一下,就可以configure了。
请教各位,要怎么解这个错?? |
|