[Ndn-interest] Ndn-interest Digest, Vol 84, Issue 5

PEDRO DAVID ARJONA VILLICAÑA david.arjona at uaslp.mx
Thu Apr 29 07:46:31 PDT 2021


Hi,


After my previous email, I continued installing NFD, Chronosync and PSync. Then, I had the same problem while installing NLSR: NLSR's linker could not find libPSync.so. So I tried the two suggestions provided by Alex (configuring /etc/ld.so.conf.d/local and using ldconfig, and modifying the LD_LIBRARY_PATH variable). However, neither of these methods solved the problem.

So down I went to the rabbit hole, and I found that the origin of the problem is that when "./waf configure" looks for PSync, it runs the pkg-config program, which for Fedora 33, does not return the correct path for libPSync.so. The following is the section where config.log records the results of its search for PSync:

----------------------------------------
Checking for 'PSync'
['/usr/bin/pkg-config', '--cflags', '--libs', 'PSync']
out: -lPSync

yes
----------------------------------------

And the following is the same record, but for Fedora 30:

----------------------------------------
Checking for 'PSync'
['/usr/bin/pkg-config', '--cflags', '--libs', 'PSync']
out: -I/usr/local/include -L/usr/local/lib64 -lPSync

yes
----------------------------------------

Since this is a Fedora issue, I opened a ticket to see if they could fix this problem. The ticket may be found here: https://bugzilla.redhat.com/show_bug.cgi?id=1953348

Unfortunately, they said that this may be considered "normal" behavior, since the correct output may be obtained through a similar command, pkgconf. They also said that they will not change pkg-config, unless more people complain.

I guess this is as far as I can go. I just wanted to let the NDN community know the end of this story.

Regards,

David

________________________________
From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu> on behalf of ndn-interest-request at lists.cs.ucla.edu <ndn-interest-request at lists.cs.ucla.edu>
Sent: Wednesday, April 21, 2021 2:00 PM
To: ndn-interest at lists.cs.ucla.edu <ndn-interest at lists.cs.ucla.edu>
Subject: Ndn-interest Digest, Vol 84, Issue 5

Send Ndn-interest mailing list submissions to
        ndn-interest at lists.cs.ucla.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
or, via email, send a message with subject or body 'help' to
        ndn-interest-request at lists.cs.ucla.edu

You can reach the person managing the list at
        ndn-interest-owner at lists.cs.ucla.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ndn-interest digest..."


Today's Topics:

   1. Issues installing NFD in Fedora 33 (PEDRO DAVID ARJONA VILLICA?A)
   2. Re: Issues installing NFD in Fedora 33 (Alex Afanasyev)


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 Apr 2021 16:02:12 +0000
From: PEDRO DAVID ARJONA VILLICA?A <david.arjona at uaslp.mx>
To: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>
Subject: [Ndn-interest] Issues installing NFD in Fedora 33
Message-ID:
        <SN1PR16MB2384F3B5CE9297E1DE226E0DF3479 at SN1PR16MB2384.namprd16.prod.outlook.com>

Content-Type: text/plain; charset="iso-8859-1"

Hi,


I have found the following problem while installing NFD in Fedora 33: Following the same procedure described at the "A beginners guide to installing and testing NLSR on Fedora<https://named-data.net/doc/NLSR/current/beginners-guide.html>", when I try to compile NFD using the ./waf command, there is an error saying "/usr/bin/ld.gold: error: cannot find -lndn-cxx". Initially I thought that I have not installed ndn-cxx correctly, so I checked my configuration and everything seemed to be as it should. So I tried copying the ndn-cxx files from "/usr/local/lib64" to "/usr/lib" (libndn-cxx.so.0.7.1, libndn-cxx.so and pkgconfig). Then I ran the waf commands again and everything worked fine.

I have installed NFD many times before in Fedora and I have not found this problem before. Is this an issue that needs to be reported as a bug? Or maybe there is another configuration step that needs to be added for Fedora 33. My previous NFD installation was in Fedora 31.

Regards,

David Arjona

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20210421/dad98e02/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 21 Apr 2021 13:10:23 -0400
From: Alex Afanasyev <aa at cs.fiu.edu>
To: PEDRO DAVID ARJONA VILLICA?A <david.arjona at uaslp.mx>
Cc: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>
Subject: Re: [Ndn-interest] Issues installing NFD in Fedora 33
Message-ID: <63D3E08E-1D5B-42BE-A27E-E82B7EFE76E8 at cs.fiu.edu>
Content-Type: text/plain; charset="utf-8"

Fedora by default doesn't look for shared libraries under /usr/local. Not sure why, but this was the config for a long time (could be security related issue). Copying into /usr/lib works, but I would say it is not the best way.

A better way is to update your dynamic linker config to include /usr/local/lib64 (and anything else you need). This can be as simple as adding a new file in /etc/ld.so.conf.d/local  with just /usr/local/lib64 line in it; running `sudo ldconfig` afterwards.

If you don't want to modify, you can also set some environment variable, but don't immediately remember which one.

-
Alex

> On Apr 21, 2021, at 12:02 PM, PEDRO DAVID ARJONA VILLICA?A via Ndn-interest <ndn-interest at lists.cs.ucla.edu> wrote:
>
> Hi,
>
>
> I have found the following problem while installing NFD in Fedora 33: Following the same procedure described at the "A beginners guide to installing and testing NLSR on Fedora <https://named-data.net/doc/NLSR/current/beginners-guide.html>", when I try to compile NFD using the ./waf command, there is an error saying "/usr/bin/ld.gold: error: cannot find -lndn-cxx". Initially I thought that I have not installed ndn-cxx correctly, so I checked my configuration and everything seemed to be as it should. So I tried copying the ndn-cxx files from "/usr/local/lib64" to "/usr/lib" (libndn-cxx.so.0.7.1, libndn-cxx.so and pkgconfig). Then I ran the waf commands again and everything worked fine.
>
> I have installed NFD many times before in Fedora and I have not found this problem before. Is this an issue that needs to be reported as a bug? Or maybe there is another configuration step that needs to be added for Fedora 33. My previous NFD installation was in Fedora 31.
>
> Regards,
>
> David Arjona
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
______________
Alex Afanasyev
Assistant Professor, SCIS, Florida International University
11200 SW 8th Street, PG6 Room 140D, Miami, FL 33199
phone: +1.305.348.4960 (office); email: aa at cs.fiu.edu
web: https://users.cs.fiu.edu/~afanasyev/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20210421/a4f4358a/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest


------------------------------

End of Ndn-interest Digest, Vol 84, Issue 5
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20210429/df25e113/attachment.html>


More information about the Ndn-interest mailing list