Bug 652 - PulseView doesn't build on Mac OS X: undefined symbols and print_gvariant
Summary: PulseView doesn't build on Mac OS X: undefined symbols and print_gvariant
Status: RESOLVED INVALID
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All Mac OS X
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-13 21:19 CEST by Uwe Hermann
Modified: 2015-11-15 19:20 CET (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2015-09-13 21:19:06 CEST
glibmm is version 2.44.0.

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28") 
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-5
-- Check for working C compiler: /usr/local/bin/gcc-5 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-5
-- Check for working CXX compiler: /usr/local/bin/g++-5 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- checking for modules 'libsigrokcxx>=0.4.0;libsigrokdecode>=0.4.0'
--   found libsigrokcxx, version 0.4.0-git-000f504
--   found libsigrokdecode, version 0.4.0-git-2730fe2
-- Using Qt5
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   thread
--   unit_test_framework
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success
-- PulseView version: 0.3.0
CMake Warning (dev) at /usr/local/opt/qt52/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:224 (configure_file):
  configure_file called with unknown argument(s):

   COPY_ONLY

Call Stack (most recent call first):
  CMakeLists.txt:333 (qt5_add_resources)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done

...



[ 54%] Building CXX object CMakeFiles/pulseview.dir/qrc_pulseview.cpp.o
[ 54%] Linking CXX executable pulseview
Undefined symbols:
  "Glib::VariantType::VariantType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      pv::binding::Binding::print_gvariant(Glib::VariantBase)      in binding.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
      pv::binding::InputOutput::InputOutput(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<sigrok::Option>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<sigrok::Option> > > > const&) in inputoutput.cpp.o
  "Glib::Variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::get() const", referenced from:
      pv::binding::Binding::print_gvariant(Glib::VariantBase)      in binding.cpp.o
  "Glib::Variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > Glib::VariantBase::cast_dynamic<Glib::Variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(Glib::VariantBase const&)", referenced from:
      pv::binding::Binding::print_gvariant(Glib::VariantBase)      in binding.cpp.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [pulseview] Error 1
make[1]: *** [CMakeFiles/pulseview.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Uwe Hermann 2015-11-15 19:20:04 CET
Closing, this seems to be *yet* another issue related to the C++11 ABI changes.