Build Corosync无法在slackware中构建

Build Corosync无法在slackware中构建,build,ld,nss,slackware,Build,Ld,Nss,Slackware,我试图在slackware 14.1(32位)中从源代码构建corosync 2.3.4 普通配置找不到nss包(mozilla-nss-3.15.2-i486-2.txz)头,因此我必须在配置之前将cppfaglass设置为“-I/usr/include/-I/usr/include/nss/-I/usr/include/nspr/” 现在,我在链接阶段遇到以下错误: ./.libs/libtotem_pg.so: undefined reference to `PK11_DigestFina

我试图在slackware 14.1(32位)中从源代码构建corosync 2.3.4

普通配置找不到nss包(mozilla-nss-3.15.2-i486-2.txz)头,因此我必须在配置之前将cppfaglass设置为“-I/usr/include/-I/usr/include/nss/-I/usr/include/nspr/”

现在,我在链接阶段遇到以下错误:

./.libs/libtotem_pg.so: undefined reference to `PK11_DigestFinal'
./.libs/libtotem_pg.so: undefined reference to `SECITEM_FreeItem'
./.libs/libtotem_pg.so: undefined reference to `PK11_ImportSymKey'
./.libs/libtotem_pg.so: undefined reference to `PK11_DigestBegin'
./.libs/libtotem_pg.so: undefined reference to `PK11_DigestOp'
./.libs/libtotem_pg.so: undefined reference to `PK11_DestroyContext'
./.libs/libtotem_pg.so: undefined reference to `PK11_CipherOp'
./.libs/libtotem_pg.so: undefined reference to `PK11_CreateContextBySymKey'
./.libs/libtotem_pg.so: undefined reference to `PK11_GenerateRandom'
./.libs/libtotem_pg.so: undefined reference to `PK11_ParamFromIV'
./.libs/libtotem_pg.so: undefined reference to `NSS_NoDB_Init'
./.libs/libtotem_pg.so: undefined reference to `PK11_FreeSlot'
./.libs/libtotem_pg.so: undefined reference to `PK11_GetBestSlot'
./.libs/libtotem_pg.so: undefined reference to `PR_GetError'
我的猜测是它找不到nss库(libnss.so*)。我已经尝试在配置之前将LDFLAGS设置为“-l/usr/lib/libnss3.so”,并使用LIBS=“-l/usr/lib”进行设置,结果为负


想法?

您不需要通过
-l
传递到库的路径,只需传递库的名称,而不需要前导的“lib”部分。因此,请尝试:

LDFLAGS=“-lnss3”


如果要链接的库不在库路径中(即:不在/etc/ld.so.conf中),可以使用
-L
指定路径,但情况并非如此。

我解决了问题,这是一个依赖性问题。您可以在中查看问题解决跟踪