Bug 212492 - databases/galera linker error
Summary: databases/galera linker error
Status: Closed DUPLICATE of bug 208109
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 212496
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-08 17:50 UTC by Walter Schwarzenfeld
Modified: 2016-09-09 02:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld 2016-09-08 17:50:54 UTC
Galera 25.3.5 fails to compile (10.3-RELEASE)
with

/usr/bin/ld: undefined reference to symbol `_ZNSt3__18ios_base5clearEj' (try adding -lc++)
//usr/lib/libc++.so.1: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [gcache/src/test] Error 1

If I add on the commandline
make CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ CPP=/usr/local/bin/cpp

or in the Makefile

CXXFLAGS+=     -Wl,-rpath= ${LOCALBASE}/bin/gcc
LDFLAGS+=      -lc++

it compiles.

There are still warnings like:
/usr/local/include/check.h:454:73: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
/usr/local/include/check.h:454:75: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
     _ck_assert_failed(__FILE__, __LINE__, "Assertion '"#expr"' failed" , ## __VA_ARGS__, NULL)
                                                                          ^
/usr/local/include/check.h:454:75: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
/usr/local/include/check.h:454:73: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
     _ck_assert_failed(__FILE__, __LINE__, "Assertion '"#expr"' failed" , ## __VA_ARGS__, NULL)
Comment 1 Walter Schwarzenfeld 2016-09-08 20:10:37 UTC
Btw,  py27-cloud_sptheme a build dependency of galera, is marked as broken, and does not compilie,
But I am not really sure, if galera need it really as build dependency (?).
Comment 2 Walter Schwarzenfeld 2016-09-08 20:51:57 UTC
The Problem with py-cloud_sptheme seems fixed, found a patch.
Comment 3 Walter Schwarzenfeld 2016-09-08 20:57:01 UTC
galera and py-cloud_sptheme are a request on pipermail.
Comment 4 Walter Schwarzenfeld 2016-09-08 21:02:10 UTC
I am not sure, but I think the -Wgnu-zero-variadic-macro-arguments warnings can be ignored.
Comment 5 Walter Schwarzenfeld 2016-09-09 02:01:34 UTC
Galera seems "in work" in another PR 208109. So I close here.
Comment 6 Walter Schwarzenfeld 2016-09-09 02:02:20 UTC

*** This bug has been marked as a duplicate of bug 208109 ***