移植expect出现的错误提示,以及解决办法

工具链为:

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 defined
i486-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 `[email protected]_2.0'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.0'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.2'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.2'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.0'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.0'
/home/gino/expect5.45/libexpect5.45.so: undefined reference to `[email protected]_2.0'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.0'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.1'
/home/gino/tcl8.6.4/unix/tmp/lib/libtcl8.6.so: undefined reference to `[email protected]_2.1'
collect2: error: ld returned 1 exit status
make: *** [expect] 错误 1

对于警告信息部分的解决办法是。编译的时候选上编译SDK,在编译好的SDK中取出工具链。然后安装好工具链之后,将工具链目录下的 staging_dir 目录加入到环境变量 STAGING_DIR 中。(找不到的话,用 find 命令查找)

提示函数未定义部分:

在Makefiles中加入对应的链接库

-lutil
-lphread

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-08-25 00:13:09

移植expect出现的错误提示,以及解决办法的相关文章

【错误】mysql 出现 "1067 - Invalid default value for 'UPDATE_TIME' " 错误提示的解决办法

今天工作中遇到修改表结构的时候出现错误 Invalid default value for 'UPDATE_TIME 问题原因是因为db 表中update_time的默认时间写成了 '0000-00-00 00:00:00' `update_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', 因为timestamp类型取值范围:1970-01-01 0

Win7安装错误提示与解决办法大全

Windows7安装时有许多提示错误,许多朋友不知道如何解决,那就看看这篇软媒整理的文章吧,或许有些帮助.本文出现的问题同样应用于其他版本的Windows 7,甚至是Vista,收藏一下本文,或者某天,去搜索引擎搜索一下出现的问题. 序号:1 原文:Please wait… 翻译:请稍候… 解决办法:这是安装开始时安装程序加载时的提示语.如果卡在这个地方,请检查硬件是否正常,如果正常请检查MD5是否一致.如果配置低,可能要多等一下,请耐心等待.在PE2.0以下在这一步会提示无法安装,原因是PE版

使用dedecms中常见错误提示及解决办法(一)

在使用 dedecms 做网站时,常常会遇到一些棘手的问题,比如:页面图片不显示(src 的地址不对)等等. 1. 更新网站时错误 问题:Call to a member function GetInnerText() on a non-object(在一个非对象类型上调用成员函数 GetInnerText()). 原因:出现这个问题,是因为自定义了内容模型,这个内容模型里有图片字段.当我们去生成网站时,更新网站就会提示此错误. 解决:打开 \include\taglib\channel\img

android studio 下错误提示的解决办法

android studio下提示gradle project sync failed.Basic functionality will not work ----->>我是通过android studio下,点击 tools ->Android->sync project with gradles files.解决这个问题的. OK,搞定

编译PHP时的错误提示及解决办法

php编译常见错误(已安装MySQL和Apache环境下) 错误1: configure: error: jpeglib.h not found. yum install libjpeg libjpeg-devel -y 错误2: configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution yum install libxslt-devel -y 错误3: configur

支付宝接口出现验证错误提示,解决办法

提交的所有数据改成 英文试试,可能是中文导致当已经有全局: <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>单独指定某个文件或目录 的编码 <location path="news/ok.aspx"> <system.web> <!--one--> <globalization requestEncoding

[经使用有效]Sqlserver2005附加数据库时出错提示操作系统错误5(拒绝访问)错误5120的解决办法

sqlserver2005附加数据库时出错提示操作系统错误5(拒绝访问)错误5120的解决办法 最近几天从网上找了几个asp.net的登录案例想要研究研究代码,结果在用 Sql Server2005附加数据库文件时弹出错误信息:如下图: ,一时无解,遂求助于百度谷歌,经过各种试验,特将解决办法整理于此,希望能帮到大家,同时如果有好的意见大家多多交流啊! 方案一:切换登录方式 出现这种情况是由于用“混合验证方式”(SQL Server身份验证)登录数据库造成的,只要将登录方式改为“windows身

运行js提示库没有注册错误8002801d的解决办法

运行js提示库没有注册错误8002801d的解决办法这个错误主要是因为服务器上的windows scripts版本较低,请按下面的链接下载较高版本windows scripts 5.6并在服务器上进行安装,重启后即可正常.在微软官网搜索windows scripts,选择scr56chs.exe下载后安装.http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=376d98b6-67cf-4473-9b7d-f635292a2

SQLServer2005+附加数据库时出错提示操作系统错误5(拒绝访问)错误5120的解决办法

SQLServer2005+ 附加数据库时出错提示操作系统错误5(拒绝访问)错误5120的解决办法 我们在用Sql SQLServer2005+附加数据库文件时弹出错误信息如下图的处理办法: 方案一:切换登录方式 出现这种情况是由于用"混合验证方式"(SQL Server身份验证)登录数据库造成的,只要将登录方式改为"windows身份验证方式"登录即可解决该问题,附加成功后再换用"混合验证模式"登陆就没问题了. 方案二:修改服务 选择 所有程序