久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

openwrt在ubuntun編譯出錯./stdio.h:456:1:error: 'gets' undeclared here (not in a function)

 dwlinux_gs 2015-03-24
    mv -f .deps/c-stack.Tpo .deps/c-stack.Po
i686-linux-gnu-gcc -std=gnu99  -I.   -O2 -I/home/openwrt-dreambox/staging_dir/host/include  -O2 -I/home/openwrt-dreambox/staging_dir/host/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
                 from clean-temp.c:23:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
make[7]: *** [clean-temp.o] Error 1
make[7]: Leaving directory `/home/openwrt-dreambox/build_dir/host/m4-1.4.15/lib'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/openwrt-dreambox/build_dir/host/m4-1.4.15/lib'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/openwrt-dreambox/build_dir/host/m4-1.4.15'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/openwrt-dreambox/build_dir/host/m4-1.4.15'
make[3]: *** [/home/openwrt-dreambox/build_dir/host/m4-1.4.15/.built] Error 2
make[3]: Leaving directory `/home/openwrt-dreambox/tools/m4'
make[2]: *** [tools/m4/compile] Error 2
make[2]: Leaving directory `/home/openwrt-dreambox'
make[1]: *** [/home/openwrt-dreambox/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.tools_install_nnynn] Error 2
make[1]: Leaving directory `/home/openwrt-dreambox'
make: *** [world] Error 2
有以下兩種解決辦法:
1)進入到build_dir/host/m4-1.4.15/lib目錄,更改stdio.in.h
#undef gets
#define gets(a) fgets( a, sizeof(*(a)), stdin)
2)可以使用以下命令
    cd /home/openwrt-dreambox/build_dir/host/m4-1.4.15/lib
    sed -i -e '/gets is a security/d' ./stdio.in.h
即可編譯通過,。
在另外在編localcharset.c 時出會出現(xiàn)類似的問題,同樣是進入到build_dir/host/bison-2.4.3/lib
        cd  /home/openwrt-dreambox/build_dir/host/bison-2.4.3/lib
        sed -i -e '/gets is a security/d' ./stdio.in.h
即可編譯通過

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點,。請注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購買等信息,謹防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多