On 09/17/2014 04:36 PM, Irving Leonard wrote: > Hi, I'm trying to build corosync 2.3.4 from source in a slackware 14.1 > (32 bits). > > The vanilla configuration can't find the *nss* package > (*mozilla-nss-3.15.2-i486-2.txz*) headers so I had to set CPPFLAGS > before config to "-I/usr/include/ -I/usr/include/nss/ -I/usr/include/nspr/". > > Now I'm getting the following errors in the linking stage: > > |./.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' > | > > My wild guess is that it can't find the nss lib (/libnss/.so*). I > already tried setting LDFLAGS to "-l/usr/lib/libnss3.so" before config > and also with LIBS="-L/usr/lib" with negative results. > > Ideas? > Install pkg-config and make sure it points to the right paths:. For example (from a Fedora system): pkg-config --cflags nss -I/usr/include/nss3 -I/usr/include/nspr4 pkg-config --libs nss -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl or override nss_CFLAGS nss_LIBS Fabio > > > _______________________________________________ > discuss mailing list > discuss@xxxxxxxxxxxx > http://lists.corosync.org/mailman/listinfo/discuss > _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss