gentoo rt-thread scons --menuconfig libs/lxdialog/util.o: undefined reference to symbol 'nodelay'
生活随笔
收集整理的這篇文章主要介紹了
gentoo rt-thread scons --menuconfig libs/lxdialog/util.o: undefined reference to symbol 'nodelay'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
gentoo rt-thread scons --menuconfig libs/lxdialog/util.o: undefined reference to symbol 'nodelay'
今天在另外一臺電腦上面使用 rt-thread 的 env 工具,scons --menuconfig 出現錯誤,提示如下:
scons: Reading SConscript files ... scons: Entering directory `/home/ptz/workspace/rt-thread/rt-thread/tools/kconfig-frontends' scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... gcc -o kconfig-mconf libs/lxdialog/checklist.o libs/lxdialog/inputbox.o libs/lxdialog/menubox.o libs/lxdialog/textbox.o libs/lxdialog/util.o libs/lxdialog/yesno.o libs/parser/yconf.o frontends/mconf/mconf.o -lncurses /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libs/lxdialog/util.o: undefined reference to symbol 'nodelay' /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status scons: *** [kconfig-mconf] Error 1 scons: building terminated because of errors. sh: /home/ptz/workspace/rt-thread/rt-thread/tools/kconfig-frontends/kconfig-mconf: No such file or directory初步判斷是找不到 nodelay 這個函數,于是使用 nm -D /lib/libncurses.so.6 |grep -w nodelay, 結果發現果然沒有 nodelay。然后測試了可以用的電腦,可以用的電腦上面 ncurses 這個動態庫是有 nodelay 的,于是查看兩臺電腦 ncurses 的 USE 區別,結果發現,不能用的 ncurses 開啟了 tinfo 這個 USE。然后 nm -D /lib/libtinfo.so.6 |grep -w nodelay,這下果然有了。
所有只需要修改 rt-thread/tools/kconfig-frontends/SConstruct, 把 tinfo 加入庫路徑即可正常工作了。
posted on 2018-12-16 22:15 ramlife 閱讀(...) 評論(...) 編輯 收藏轉載于:https://www.cnblogs.com/ramlife/p/10128837.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的gentoo rt-thread scons --menuconfig libs/lxdialog/util.o: undefined reference to symbol 'nodelay'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用springcloud gatewa
- 下一篇: A__Java为数据结构提供的实用包的运