自己在openwrt/package/utils/目录下新添加了一个程序包,在编译的时候报错,
...is missing dependencies for the following libraries:libpthread.so.0.
这需要在该程序包的顶层makefile中添加红色字体部分。
define Package/rssi_client
SECTION:=utils
CATEGORY:=Utilities
TITLE:=rssi tool
DEPENDS:=+libncurses <span style="color:#FF0000;">+libpthread</span>
endef
另外,还是在该文件中
TARGET_LDFLAGS:= -lpthread
将线程库的链接添加到目标链接标识符里。
自己在openwrt/package/utils/目录下新添加了一个程序包,在编译的时候报错,...is missing dependencies for the following libraries:libpthread.so.0.这需要在该程序包的顶层makefile中添加红色字体部分。define Package/rssi_client SECTION:=utils CAT
OpenWRT
编译
LUCI插件说明.
LuCI Applications luci-app-autoreboot 支持计划重启
LuCI Applications luci-app-bcp38 BCP38网络入口过滤(不确定)
LuCI Applications luci-app-bird4 Bird4服务(未知)
LuCI Applications luci-app-bird6 Bird6服务(未知)
LuCI Applications luci-app-bmx6 BMX6路由协议
LuCI Applications luci-app-bmx7 BMX7路由协议
LuCI Applications luci-app-cjdns 加密IPV6网络相关
LuCI Applications luci-app-caldav 联系人
LuCI Applications luci-app-clamav ClamAV杀毒软件
LuCI Applications luci-app-commands Shell命令模块
LuCI Applications luci-app-cshark CloudShark捕获工具
LuCI Applications luci-app-ddns 动态域名 DNS
LuCI Applications luci-app-diag-core core诊断工具
用gcc
编译
程序
时
遇到
如下
问题
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: 'sem_close@@GLIBC_2.2.5' is
defined in DSO /lib64/
libp
thread
.so.0 so try adding it to the linker com
make
时
出现错误
libp
thread
.so.0: error adding symbols: DSO missing from command line 的通用解决方案
安装ucmq
遇到
一个很吐血的
问题
(其它的解决方案同理)
/usr/bin/ld: ucmq-util.o: undefined reference to symbol 'p
thread
_sigmask@@GLIBC_2.2....
1/根据自己
编译
的平台,在staging_dir下知道到对应平台的
库
文件,进入,然后检索
缺失
的
库
,看是否存在,如不存在,请make menuconfig,然后/ 检索,选择
编译
对应的
库
,如有对应的
库
。
2/进入pkginfo文件,检索libc.provides,打开,在最后添加
libp
thread
.so.0,重新
编译
,ok.。
下边粘贴些操作的图
在新SUSE开发机上
编译
时
出现下面的错误
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note:
'sem_close@@GLIBC_2.2.5' is defined in DSO /lib64/
libp
thread
.so.0 so try adding it to the linker
配置完
Openwrt
后,首次
编译
时
会在
编译
过程中下载各种源码包,而且解压这些源码包并打上patch。
需要对源码进行修改
时
,可直接修改源码并重新
编译
,但clean后再次
编译
时
会再次解压源码包,以至所做
的修改全部丢失。本文参考
Openwrt
官网提供的patch管理方法,实践操作并记录linux kernel及
package
源
码修改并生成patch的方法。
2、环境及准