LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 563|回复: 0

交叉编译lftp4.2.1出错,向各位编译达人求救!!!!!!!!!!!!!!!!!!!!!!!

[复制链接]
发表于 2011-4-12 13:03:21 | 显示全部楼层 |阅读模式
编译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了。


请教各位,要怎么解这个错??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表