Project

General

Profile

Actions

Bug #3698

closed

Compilation error on Ubuntu 14.04 with clang compiler

Added by Alex Afanasyev over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Build
Target version:
Start date:
08/04/2016
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Travis CI fails to compile code when clang compiler is used: https://travis-ci.org/named-data/ndn-cxx/jobs/149814142

../src/security/command-interest-validator.cpp:172:9: error: no matching function for call to 'abs'
    if (time::abs(sigTime - receiveTime) > m_options.gracePeriod) {
        ^~~~~~~~~
/home/travis/build/named-data/ndn-cxx/build/../src/util/time.hpp:53:1: note: candidate template ignored: substitution failure [with Rep = long, Period = boost::ratio<1, 1000000000>]: non-type template argument is not a constant expression
abs(duration<Rep, Period> d)
^
1 error generated.

Related issues 1 (0 open1 closed)

Related to ndn-cxx - Feature #2376: CommandInterestValidatorClosedJunxiao Shi

Actions
Actions #1

Updated by Junxiao Shi over 8 years ago

  • Tracker changed from Task to Bug
  • Status changed from New to In Progress
  • Priority changed from Normal to High
  • Estimated time set to 1.00 h
Actions #2

Updated by Junxiao Shi over 8 years ago

Actions #3

Updated by Junxiao Shi over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF