[Nfd-dev] NFD compile error "NFD_LOG_DEBUG"

Thompson, Jeff jefft0 at remap.ucla.edu
Mon Jul 18 08:44:50 PDT 2016


Hello NFD developers,

On a fresh OS X 10.11 virtual machine, I installed MacPorts and did:

    sudo port install pkgconfig boost sqlite3 libcryptopp libpcap
    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

I was able to compile and install ndn-cxx. But when I compile NFD I get many errors starting with those below. Is there an extra configuration step relating to the logger?

Thanks,
- Jeff T


../daemon/table/cs.cpp:84:3: error: invalid operands to binary expression ('basic_record_ostream<char_type>' and '::nfd::LoggerTimestamp')

  NFD_LOG_DEBUG("insert " << data.getName());

  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/jefft0/work/NFD/core/logger.hpp:154:35: note: expanded from macro 'NFD_LOG_DEBUG'

#define NFD_LOG_DEBUG(expression) NFD_LOG(DEBUG, DEBUG,   expression)

                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/jefft0/work/NFD/core/logger.hpp:149:39: note: expanded from macro 'NFD_LOG'

      BOOST_LOG(g_logger.boostLogger) << NFD_LOG_LINE(msg, expression); \

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/opt/local/include/boost/log/utility/formatting_ostream.hpp:377:31: note: candidate function not viable: no known conversion from '::nfd::LoggerTimestamp' to 'ios_base_manip' (aka 'std::ios_base &(*)(std::ios_base &)') for 1st argument

    basic_formatting_ostream& operator<< (ios_base_manip manip)

                              ^

/opt/local/include/boost/log/utility/formatting_ostream.hpp:382:31: note: candidate function not viable: no known conversion from '::nfd::LoggerTimestamp' to 'basic_ios_manip' (aka 'std::basic_ios<char_type, traits_type> &(*)(std::basic_ios<char_type, traits_type> &)') for 1st argument

    basic_formatting_ostream& operator<< (basic_ios_manip manip)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160718/a600bfc6/attachment.html>


More information about the Nfd-dev mailing list