Not the answer you need?
Register and ask your own question!

Building source on macOS Sierra (10.12)

ModernDeveloperLLCModernDeveloperLLC EntrantInactive User Role Novice
Having an error in compiling the most recent percona-server-mongodb-3.2.9-2.1 source code on 10.12. I get the following error:

<snipped for brevity>
Linking build/opt/mongo/db/storage/ephemeral_for_test/storage_ephemeral_for_test_engine_test
ld: warning: directory not found for option '-Lsrc/third_party/install/lib'
ld: warning: option -noall_load is obsolete and being ignored
Compiling build/opt/mongo/db/storage/kv/kv_database_catalog_entry_test.o
Compiling build/opt/mongo/db/storage/kv/kv_database_catalog_entry_get_index_mock.o
Compiling build/opt/mongo/db/storage/kv/kv_database_catalog_entry_database_holder_mock.o
Generating placeholder library build/opt/mongo/db/storage/kv/libkv_engine_mock.a
Skipping ranlib for build/opt/mongo/db/storage/kv/libkv_engine_mock.a
Linking build/opt/mongo/db/storage/kv/kv_database_catalog_entry_test
ld: warning: directory not found for option '-Lsrc/third_party/install/lib'
ld: warning: option -noall_load is obsolete and being ignored
Compiling build/opt/mongo/db/storage/kv_heap/kv_heap_sorted_data_impl_test_harness.o
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_dictionary.o
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_dictionary_update.o
Generating placeholder library build/opt/mongo/db/storage/kv/dictionary/libkv_dictionary.a
Skipping ranlib for build/opt/mongo/db/storage/kv/dictionary/libkv_dictionary.a
Compiling build/opt/mongo/db/storage/kv/dictionary/kv_engine_impl.o
In file included from src/mongo/db/storage/kv/dictionary/kv_engine_impl.cpp:29:
src/mongo/db/storage/kv/dictionary/kv_record_store.h:37:5: error: class 'CollectionOptions' was previously declared as a struct [-Werror,-Wmismatched-tags]
    class CollectionOptions;
    ^
src/mongo/db/catalog/collection_options.h:38:8: note: previous use is here
struct CollectionOptions {
       ^
src/mongo/db/storage/kv/dictionary/kv_record_store.h:37:5: note: did you mean struct here?
    class CollectionOptions;
    ^~~~~
    struct
1 error generated.
scons: *** [build/opt/mongo/db/storage/kv/dictionary/kv_engine_impl.o] Error 1
scons: building terminated because of errors.

It doesn't look like I'm missing code, but I would not be surprised to be wrong!

--Mark
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.