Project

General

Profile

Bug #14003

Link error on canvas_Persistency_Provenance on macOS due to missing stream header

Added by Ben Morgan over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/03/2016
Due date:
% Done:

100%

Estimated time:
Spent time:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

Compiling canvas on macOS (El Cap, Xcode 7, 8) gives a link error on canvas_Persistency_Provenance:

[ 32%] Linking CXX shared library ../../../BuildProducts/lib/libcanvas_Persistency_Provenance.dylib
Undefined symbols for architecture x86_64:
  "std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      art::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::ParameterSetBlob const&) in ParameterSetBlob.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The attached patch simply #includes the needed ostream header in ParameterSetBlob.cc. That was done here rather than the header to keep the interface the same, but should be reviewed in case clients need the full ostream.

History

#1 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from New to Accepted

We will review the patch and apply as appropriate.

#2 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Accepted to Resolved
  • Assignee set to Kyle Knoepfel
  • % Done changed from 0 to 100
  • SSI Package art added
  • SSI Package deleted ()

Patch applied with commit canvas:0aa681e.

#3 Updated by Kyle Knoepfel over 3 years ago

  • Description updated (diff)

#4 Updated by Kyle Knoepfel about 3 years ago

  • Status changed from Resolved to Closed
  • Target version set to 2.05.00


Also available in: Atom PDF