[CXX-928] "KeyError: 'MONGO_SSL'" build error in non-SSL legacy builds Created: 14/Jun/16  Updated: 21/Jun/16  Resolved: 14/Jun/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: legacy-1.1.1
Fix Version/s: legacy-1.1.2

Type: Bug Priority: Major - P3
Reporter: Yugandha Deshpande [X] Assignee: J Rassi
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When I use "scons build-unit" or "scons unit" I get following error and build fails:

"KeyError: 'MONGO_SSL':
File "/root/mongo-cxx-driver/SConstruct", line 1907:
env.SConscript('src/SConscript', variant_dir='$VARIANT_DIR', duplicate=False)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec file in call_stack[-1].globals
File "/root/mongo-cxx-driver/src/SConscript", line 8:
env.SConscript('SConscript.client')
File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec file in call_stack[-1].globals
File "/root/mongo-cxx-driver/src/SConscript.client", line 180:
usingSsl = libEnv['MONGO_SSL']
File "/usr/lib/scons/SCons/Environment.py", line 410:
return self._dict[key]
"



 Comments   
Comment by J Rassi [ 14/Jun/16 ]

Yugandha: I've pushed a fix to the legacy branch for this issue. Thanks again!

Comment by Githook User [ 14/Jun/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-928 Fix bad merge of SConstruct in dc6e44bb
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/72023b8645821ca29c8ab8cd6e2d97497f87c2d0

Comment by J Rassi [ 14/Jun/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/496

Comment by J Rassi [ 14/Jun/16 ]

Thanks for the report.

I've assigned a fix version of legacy-1.1.2 for this ticket. This issue only affects non-SSL builds, so as a temporary workaround you can enable SSL by adding "--ssl" to your scons invocation.

Generated at Wed Feb 07 22:00:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.