Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] MongoDB broken after GCC update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vanjo9800
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2015
Posts: 76

PostPosted: Wed Sep 06, 2017 6:19 am    Post subject: [SOLVED] MongoDB broken after GCC update Reply with quote

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
Back to top
View user's profile Send private message
vanjo9800
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2015
Posts: 76

PostPosted: Wed Sep 06, 2017 7:08 am    Post subject: Reply with quote

It was automatically fixed in the next update.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum