openwrt编译出错,求解决办法!(骗经验勿入,否则举报)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openwrt编译出错,求解决办法!(骗经验勿入,否则举报)相关的知识,希望对你有一定的参考价值。

chmod 644 /home/wm/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ipkg-ar71xx/busybox/CONTROL/control
. /home/wm/openwrt/trunk/include/shell.sh; (cd /home/wm/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ipkg-ar71xx/busybox/CONTROL; )
ipkg-build -c -o 0 -g 0 /home/wm/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ipkg-ar71xx/busybox /home/wm/openwrt/trunk/bin/ar71xx/packages
Packaged contents of /home/wm/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ipkg-ar71xx/busybox into /home/wm/openwrt/trunk/bin/ar71xx/packages/busybox_1.19.4-6_ar71xx.ipk
rm -rf /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox
mkdir -p /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox
install -d -m0755 /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox/etc/init.d
cp -fpR /home/wm/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ipkg-install/* /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox/
for tmp in cron telnet; do install -m0755 ./files/$tmp /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox/etc/init.d/$tmp; done
rm -rf /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox/lib64
SHELL= /home/wm/openwrt/trunk/staging_dir/host/bin/flock /home/wm/openwrt/trunk/tmp/.root-copy.flock -c 'cp -fpR /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox/. /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/'
rm -rf /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-busybox
touch /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp/.busybox_installed
if [ -f /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/busybox.default.install.clean ]; then rm -f /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/busybox.default.install /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/busybox.default.install.clean; fi; echo "busybox" >> /home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/busybox.default.install
make[3]: Leaving directory `/home/wm/openwrt/trunk/package/busybox'
make[2]: Leaving directory `/home/wm/openwrt/trunk'
make[1]: *** [/home/wm/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/wm/openwrt/trunk'
make: *** [world] 错误 2

编译时添加transmission出错,求可靠解决办法,别和我说make clean 之类的套话,否则举报。

参考技术A cmake 安装了没有?没有安装可以试试:
sudo apt-get install cmake
sudo apt-get install cmake-qt-gui

编译vsftp出错的解决办法

gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
sysdeputil.c:162: error: expected declaration specifiers or ‘…’ before ‘capset’
sysdeputil.c:162: error: expected declaration specifiers or ‘…’ before ‘header’
sysdeputil.c:162: error: expected declaration specifiers or ‘…’ before ‘data’
In file included from sysdeputil.c:170:
/usr/include/sys/sendfile.h: In function ‘_syscall2′:
/usr/include/sys/sendfile.h:35: error: storage class specified for parameter ‘sendfile’
sysdeputil.c:186: error: storage class specified for parameter ‘environ’
sysdeputil.c:187: error: storage class specified for parameter ‘s_proctitle_space’
sysdeputil.c:187: error: parameter ‘s_proctitle_space’ is initialized
sysdeputil.c:188: error: storage class specified for parameter ‘s_proctitle_inited’
sysdeputil.c:188: error: parameter ‘s_proctitle_inited’ is initialized
sysdeputil.c:189: error: storage class specified for parameter ‘s_p_proctitle’
sysdeputil.c:189: error: parameter ‘s_p_proctitle’ is initialized
sysdeputil.c:201: error: storage class specified for parameter ‘do_sendfile’
sysdeputil.c:202: error: storage class specified for parameter ‘vsf_sysutil_setproctitle_internal’
sysdeputil.c:203: error: storage class specified for parameter ‘s_proctitle_prefix_str’
sysdeputil.c:278: error: storage class specified for parameter ‘s_pamh’
sysdeputil.c:279: error: storage class specified for parameter ‘s_pword_str’
sysdeputil.c:281: error: storage class specified for parameter ‘pam_conv_func’
sysdeputil.c:282: error: storage class specified for parameter ‘vsf_auth_shutdown’
sysdeputil.c:288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:383: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:398: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:474: error: storage class specified for parameter ‘do_checkcap’
sysdeputil.c:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:514: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:527: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:604: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:641: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:803: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:809: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:856: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:889: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:930: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:935: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:976: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:1012: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:1128: error: storage class specified for parameter ‘s_uwtmp_inserted’
sysdeputil.c:1129: error: storage class specified for parameter ‘s_utent’
sysdeputil.c:1134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:1173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{‘ token
sysdeputil.c:1189: error: old-style parameter declarations in prototyped function definition
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:162: error: parameter name omitted
sysdeputil.c:1189: error: expected ‘{‘ at end of input
make: *** [sysdeputil.o] Error 1 解决办法:

 

下文链接:

http://blog.sina.com.cn/s/blog_62c4ea990102wac8.html

 

以上是关于openwrt编译出错,求解决办法!(骗经验勿入,否则举报)的主要内容,如果未能解决你的问题,请参考以下文章

编译openwrt程序报错

编译vsftp出错的解决办法

ubuntu sudo命令因为我修改visudo出错,所以sudo无法正常使用,求解决办法

OpenWRT网络不稳定频繁掉线的解决办法

openwrt/Linux编译make错误,急需解决!!!

Openwrt自定义CGI实现