[Ndn-interest] ChronoChat build is failing.

Chengyu Fan chengy.fan at gmail.com
Wed Feb 25 16:48:18 PST 2015


Hi Anil,

I just created a very simple chronoChat example to show how to use
ChronoSync library.
Here is the pointer:
https://github.com/chengyu/Simple-Chrono-Chat.git

On Wed, Feb 25, 2015 at 5:37 PM, Yingdi Yu <yingdi at cs.ucla.edu> wrote:

> Hi anil,
>
> Did you rebuild and install the ChronoSync lib? also make sure the
> ChronoSync submodule is updated.
>
> Yingdi
>
>
>
>
> On Feb 25, 2015, at 4:27 PM, Anil Jangam <anilj.mailing at gmail.com> wrote:
>
> Thanks Yingdi.
>
> Is this something to do with ndn-cxx ? I am already using the latest code
> of it, but still getting this error now after rectifying earlier one.
>
>
> [79/79] Linking build/ChronoChat
> /usr/local/lib/libChronoSync.so: undefined reference to
> `ndn::Scheduler::cancelEvent(std::shared_ptr<ndn::EventIdImpl> const&)'
> /usr/local/lib/libChronoSync.so: undefined reference to
> `ndn::Name::compare(ndn::Name const&) const'
> /usr/local/lib/libChronoSync.so: undefined reference to
> `ndn::Scheduler::scheduleEvent(boost::chrono::duration<long,
> boost::ratio<1l, 1000000000l> > const&, std::function<void ()> const&)'
> /usr/local/lib/libChronoSync.so: undefined reference to
> `ndn::Scheduler::cancelAllEvents()'
> /usr/local/lib/libChronoSync.so: undefined reference to
> `ndn::Scheduler::Scheduler(boost::asio::io_service&)'
> /usr/local/lib/libChronoSync.so: undefined reference to `unsigned long
> ndn::Name::wireEncode<false>(ndn::EncodingImpl<false>&) const'
> /usr/local/lib/libChronoSync.so: undefined reference to `unsigned long
> ndn::Name::wireEncode<true>(ndn::EncodingImpl<true>&) const'
> collect2: error: ld returned 1 exit status
>
> Waf: Leaving directory `/home/ndnusr2/sandbox/ChronoChat/build'
>
> Build failed
>
> /anil.
>
>
> On Wed, Feb 25, 2015 at 4:05 PM, Yingdi Yu <yingdi at cs.ucla.edu> wrote:
>
>> Hi,
>>
>> Please checkout the latest ChronoChat, commit
>> https://github.com/named-data/ChronoChat/commit/1cc45d96b8d7b4c442469147f7ba3e6a37f90d4b should
>> fix this bug.
>>
>> Yingdi
>>
>>
>>
>>
>> On Feb 25, 2015, at 4:00 PM, Anil Jangam <anilj.mailing at gmail.com> wrote:
>>
>> Hi List,
>>
>> I am trying to build the ChronoChat application, and my build is
>> consistently failing due to following error log. Incidentally, I also see a
>> bug report logged couple of weeks back; want to know if this is fixed
>> already?
>>
>> http://redmine.named-data.net/issues/2477
>>
>> The compilation error is:
>>
>> [58/79] Compiling src/main.cpp
>> ../src/chatroom-info.cpp: In instantiation of ‘std::size_t
>> chronos::ChatroomInfo::wireEncode(ndn::encoding::EncodingImpl<P>&) const
>> [with bool T = false; std::size_t = long unsigned int]’:
>> ../src/chatroom-info.cpp:94:46:   required from here
>> ../src/chatroom-info.cpp:75:85: error: ‘prependNonNegativeIntegerBlock’
>> was not declared in this scope
>>    totalLength += prependNonNegativeIntegerBlock(block, tlv::TrustModel,
>> m_trustModel);
>>
>>            ^
>> ../src/chatroom-info.cpp:75:85: note: suggested alternative:
>> In file included from /usr/local/include/ndn-cxx/name-component.hpp:27:0,
>>                  from /usr/local/include/ndn-cxx/name.hpp:30,
>>                  from /usr/local/include/ndn-cxx/interest.hpp:27,
>>                  from ../src/common.hpp:32,
>>                  from ../src/chatroom-info.hpp:14,
>>                  from ../src/chatroom-info.cpp:11:
>> /usr/local/include/ndn-cxx/encoding/block-helpers.hpp:55:1: note:
>> ‘ndn::prependNonNegativeIntegerBlock’
>>  prependNonNegativeIntegerBlock(EncodingImpl<P>& encoder, uint32_t type,
>> uint64_t number)
>>  ^
>> ../src/chatroom-info.cpp: In instantiation of ‘std::size_t
>> chronos::ChatroomInfo::wireEncode(ndn::encoding::EncodingImpl<P>&) const
>> [with bool T = true; std::size_t = long unsigned int]’:
>> ../src/chatroom-info.cpp:97:20:   required from here
>> ../src/chatroom-info.cpp:75:85: error: ‘prependNonNegativeIntegerBlock’
>> was not declared in this scope
>>    totalLength += prependNonNegativeIntegerBlock(block, tlv::TrustModel,
>> m_trustModel);
>>
>>            ^
>> ../src/chatroom-info.cpp:75:85: note: suggested alternative:
>> In file included from /usr/local/include/ndn-cxx/name-component.hpp:27:0,
>>                  from /usr/local/include/ndn-cxx/name.hpp:30,
>>                  from /usr/local/include/ndn-cxx/interest.hpp:27,
>>                  from ../src/common.hpp:32,
>>                  from ../src/chatroom-info.hpp:14,
>>                  from ../src/chatroom-info.cpp:11:
>> /usr/local/include/ndn-cxx/encoding/block-helpers.hpp:55:1: note:
>> ‘ndn::prependNonNegativeIntegerBlock’
>>  prependNonNegativeIntegerBlock(EncodingImpl<P>& encoder, uint32_t type,
>> uint64_t number)
>>  ^
>> cc1plus: warning: unrecognized command line option
>> "-Wno-nested-anon-types" [enabled by default]
>>
>> In file included from ../src/chat-dialog.hpp:25:0,
>>                  from ../src/controller.hpp:26,
>>                  from ../src/main.cpp:14:
>> ../src/digest-tree-scene.hpp:22:20: fatal error: Leaf.hpp: No such file
>> or directory
>>  #include <Leaf.hpp>
>>                     ^
>> compilation terminated.
>>
>>
>> /anil.
>>
>> _______________________________________________
>> Ndn-interest mailing list
>> Ndn-interest at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>>
>>
>>
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
>


-- 
Thanks,

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


More information about the Ndn-interest mailing list