移植expect出现的错误提示,以及解决办法
来源:互联网 发布:js 日期转时间戳 编辑:程序博客网 时间:2024/05/18 03:08
工具链为:
OpenWrt-Toolchain-x86-generic_gcc-4.8-linaro_glibc-2.21.Linux-i686.tar.bz2
错误提示如下:
i486-openwrt-linux-gnu-gcc.bin: warning: environment variable 'STAGING_DIR' not definedi486-openwrt-linux-gnu-gcc.bin: warning: environment variable 'STAGING_DIR' not defined/opt/openwrt-i386-glibc-gcc/bin/../lib/gcc/i486-openwrt-linux-gnu/4.8.3/../../../../i486-openwrt-linux-gnu/bin/ld: warning: libutil.so.1, needed by /home/gino/expect5.45/libexpect5.45.so, not found (try using -rpath or -rpath-link)/opt/openwrt-i386-glibc-gcc/bin/../lib/gcc/i486-openwrt-linux-gnu/4.8.3/../../../../i486-openwrt-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so, not found (try using -rpath or -rpath-link)/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_setspecific@GLIBC_2.0'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_key_delete@GLIBC_2.0'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `open64@GLIBC_2.2'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `lseek64@GLIBC_2.2'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_key_create@GLIBC_2.0'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_getspecific@GLIBC_2.0'/home/gino/expect5.45/libexpect5.45.so: undefined reference to `openpty@GLIBC_2.0'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_join@GLIBC_2.0'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_create@GLIBC_2.1'/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `pthread_attr_setstacksize@GLIBC_2.1'collect2: error: ld returned 1 exit statusmake: *** [expect] 错误 1
对于警告信息部分的解决办法是。编译的时候选上编译SDK,在编译好的SDK中取出工具链。然后安装好工具链之后,将工具链目录下的 staging_dir 目录加入到环境变量 STAGING_DIR 中。(找不到的话,用 find 命令查找)
提示函数未定义部分:
在Makefiles中加入对应的链接库
-lutil-lphread
0 0
- 移植expect出现的错误提示,以及解决办法
- 使用github出现的错误以及解决办法
- 使用github出现的错误以及解决办法
- 启动时出现提示0xc00000ba错误的程序解决办法
- 安装office2007,中途总是出现1706的错误提示,解决办法
- 打开 iTunes 时出现“错误 7” 提示的解决办法
- SqlServer 2008 出现mscorlib错误提示的解决办法
- RHEL启动时,提示文件系统出现错误的解决办法
- MSSQL出现15023错误,提示用户已存在的解决办法
- testsaslauthd出现0: NO "authentication failed"错误提示的解决办法
- SqlServer 2008 出现mscorlib错误提示的解决办法
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- Android开发异常篇:运行工程出现:Connection with adb was interrupted错误提示以及解决办法
- hive第一次启动时,常出现的错误以及解决办法
- 编程中出现的错误,以及解决办法(持续更新)
- ssh 登录出现的几种错误以及解决办法
- ssh 登录出现的几种错误以及解决办法
- 深入解析Oracle学习笔记(第九章)
- JVM 并发性: Java 和 Scala 并发性基础
- 无题 (最短路)
- iOS键盘高度,键盘弹出视图上移动
- TCP服务器多线程 多进程简单测试
- 移植expect出现的错误提示,以及解决办法
- HDOJ 1272 小希迷宫 (并查集)
- C++基础---string类的capacity/max_size/size/length/empty/reserve/resize
- hdu 5411 CRB and Puzzle 矩阵快速幂
- 图数据库之neo4j-jdbc的使用
- HDU 4705 Y (树形DP)
- HDU 5334(Virtual Participation-(A+C+1)(B+C+1)=K+(1+C)^2-C)
- ACdream 1073
- 115个Java面试题和答案——终极列表(上)