vanjo9800 Tux's lil' helper

Joined: 16 Mar 2015 Posts: 76
|
Posted: Wed Sep 06, 2017 6:19 am Post subject: [SOLVED] MongoDB broken after GCC update |
|
|
Hi, I have recently updated GCC to 6.4.0 which as far as I know is a relative stable version. However, since then my MongoDB package completely stopped working. It current version throws the following error:
Code: |
mongod: symbol lookup error: mongod: undefined symbol: _ZNK5boost16re_detail_10630031cpp_regex_traits_implementationIcE17transform_primaryEPKcS4_
|
while when I try to update it, the build fails giving the following error:
Code: |
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp: In function 'void mongo::{anonymous}::checkReadAhead(const string&)':
src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:176:70: error: 'major' was not declared in this scope
string path = str::stream() << "/sys/dev/block/" << major(dev) << ':' << minor(dev)
^
src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:176:91: error: 'minor' was not declared in this scope
string path = str::stream() << "/sys/dev/block/" << major(dev) << ':' << minor(dev)
^
Compiling build/opt/mongo/db/storage/mmap_v1/repair_database.o
|
I know that this is something caused by the updated GCC libraries and other build dependencies such as boost, so I have rebuilt them as well, but there was no effect. I have also run the following commands as part of the GCC update procedure:
Code: |
revdep-rebuild --library 'libstdc++.so.5'
revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
|
How can I fix that?
Last edited by vanjo9800 on Wed Sep 06, 2017 7:08 am; edited 1 time in total |
|