[KDE/Mac] Weird linkage failure on OSX CI

Daniel Vrátil dvratil at kde.org
Wed May 20 10:47:51 UTC 2015


Forwarding myself to kde-mac :)

----------  Forwarded Message  ----------

Subject: Weird linkage failure on OSX CI
Date: Wednesday, May 20, 2015, 12:14:36 PM
From: Daniel Vrátil <dvratil at kde.org>
To: kde-devel at kde.org
CC: kde-pim at kde.org

Hi,

I'm trying to get kdepim to build on the OSX CI, but this one is beyond me. 
Hopefully someone more knowledgable of the OSX build system might help.

The build is currently failing with following error:

00:28:09.901 Undefined symbols for architecture x86_64:
00:28:09.902   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::c_str() const", referenced from:
00:28:09.907       
Kleo::KeyCache::findByFingerprint(std::__1::vector<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > > > const&) const in keycache.cpp.o
00:28:09.907       
Kleo::KeyCache::findByKeyIDOrFingerprint(std::__1::vector<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > > > const&) const in keycache.cpp.o
00:28:09.908       
Kleo::KeyCache::findSubkeysByKeyID(std::__1::vector<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > > > const&) const in keycache.cpp.o
00:28:09.911 ld: symbol(s) not found for architecture x86_64
00:28:09.915 clang: error: linker command failed with exit code 1 (use -v to 
see invocation)

Everything I could find on Google suggested switching to different stdlib but 
that does not sound to me like the case here, since we would get similar 
failures everwhere we use std::string, right?

Any idea what could be wrong? This obviously compiles just fine on Linux.

Build: https://build.kde.org/job/kdepim%20master%20kf5-qt5/
PLATFORM=OSX,compiler=clang/197/console

The file: http://quickgit.kde.org/?p=kdepim.git&a=blob&f=kleopatra%2Fmodels
%2Fkeycache.cpp


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe 
<<
-----------------------------------------


More information about the kde-mac mailing list