Re: Corosync fails to build in slackware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Sep 18, 2014 at 2:47 AM, Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> wrote:
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

Thank you for your ideas, I solved the problem. The thing is that slackpkg, the package manager, does not resolve dependencies and there were some missing packages. I installed a base system, that's why the required packages were missing.

I had the pkg-config utility installed, the INSTALL file says it's a requirement, but it depends on sqlite and that one wasn't installed. Running your suggested "pkg-config --cflags nss" showed the problem. Later the "pkg-config --libs nss" references some OpenSSL libraries that wasn't installed either. After installing the sqlite and openssl packages the problem was solved.

--
irving
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss

[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux