[SERVER-37366] Compiling Error encountered in Mongodb 3.6.8 Created: 28/Sep/18  Updated: 29/Sep/18  Resolved: 28/Sep/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alex Alvarez Assignee: Nick Brewer
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-37135 TLSVersionCounts needs to track and r... Closed
Operating System: ALL
Steps To Reproduce:

Run...

$ scons --ssl --disable-warnings-as-errors --prefix=/usr core install

...from top source directory.

Participants:

 Description   

Compiling error encountered while compiling mongodb 3.6.8.  Compilation ended with the following statements...

Compiling build/opt/mongo/util/net/ssl_manager.o
In file included from src/third_party/boost-1.60.0/boost/mpl/aux_/na_assert.hpp:23,
from src/third_party/boost-1.60.0/boost/mpl/arg.hpp:25,
from src/third_party/boost-1.60.0/boost/mpl/placeholders.hpp:24,
from src/third_party/boost-1.60.0/boost/iterator/iterator_categories.hpp:17,
from src/third_party/boost-1.60.0/boost/iterator/iterator_facade.hpp:14,
from src/third_party/boost-1.60.0/boost/range/iterator_range_core.hpp:27,
from src/third_party/boost-1.60.0/boost/range/iterator_range.hpp:13,
from src/third_party/boost-1.60.0/boost/range/as_literal.hpp:22,
from src/third_party/boost-1.60.0/boost/algorithm/string/trim.hpp:19,
from src/third_party/boost-1.60.0/boost/algorithm/string.hpp:19,
from src/mongo/util/net/ssl_manager.cpp:34:
src/third_party/boost-1.60.0/boost/mpl/assert.hpp:188:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
failed ************ (Pred::************
^
src/third_party/boost-1.60.0/boost/mpl/assert.hpp:193:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
failed ************ (boost::mpl::not_<Pred>::************
^
src/mongo/util/net/ssl_manager.cpp: In function 'void mongo::recordTLSVersion(const SSL*)':
src/mongo/util/net/ssl_manager.cpp:1499:20: error: 'struct mongo::TLSVersionCounts' has no member named 'tls13'; did you mean 'tls10'?
counts.tls13.addAndFetch(1);
^~~~~
tls10
scons: *** [build/opt/mongo/util/net/ssl_manager.o] Error 1
scons: building terminated because of errors.
build/opt/mongo/util/net/ssl_manager.o failed: Error 1

Compilation started with the following statement...

$ scons --ssl --disable-warnings-as-errors --prefix=/usr core install

Error corrected by modifying struct TLSVersionCounts in file src/mongo/util/net/ssl_manager.h by inserting new line 111 with text...

AtomicInt64 tls13;

This error was encountered in system running Slackware (Linux) x86_64 Current with OpenSSL 1.1.1 and 1.0.20 installed.

No patch file provided. Again, this was encountered and tested in version 3.6.8. Not sure if this applies to any other (newer, major version) releases.



 Comments   
Comment by Alex Alvarez [ 29/Sep/18 ]

Thanks!  Just saw it was a duplicate! Sorry for that!  Will be tracking
it for next update.

Cheers,
Alex

Comment by Nick Brewer [ 28/Sep/18 ]

alex@xbasics.com Thanks for your report. We're currently tracking this issue in SERVER-37135

You can vote for that ticket and follow along with it for updates.

-Nick

Generated at Thu Feb 08 04:45:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.