Results of TryLinks with cached scons configs can be erroneous if command line options change the order of config tests

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Hide

      In a directory set up with the Enterprise module, type:

      scons all
      

      Eventually you get:

      SSL not enabled. Enterprise MongoDB must be built with --ssl specified
      

      Then type:

      scons all --ssl
      

      You get, eventually:

      Checking that linking to OpenSSL works...no
      SSL is enabled, but is unavailable
      See /media/DATA2/data/m/ent/mongo/build/scons/config.log for details
      

      Looking in config.log, this is apparently because the linker cannot find the "main" method in the conftest file that is linked. To fix the problem, you can do this:

      scons all --ssl --config=force
      
      Show
      In a directory set up with the Enterprise module, type: scons all Eventually you get: SSL not enabled. Enterprise MongoDB must be built with --ssl specified Then type: scons all --ssl You get, eventually: Checking that linking to OpenSSL works...no SSL is enabled, but is unavailable See /media/DATA2/data/m/ent/mongo/build/scons/config.log for details Looking in config.log, this is apparently because the linker cannot find the "main" method in the conftest file that is linked. To fix the problem, you can do this: scons all --ssl --config=force
    • Dev Platform 2020-01-27, Dev Platform 2020-02-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If I mistakenly run "scons" to build with the Enterprise module and forget --ssl, I end up breaking my cached config such that I need to use "--config=force". I'm not sure if there is a bug in scons TryLink, or in the way we're melding things from the Enterprise module into the configuration stage.

        1. config.log.1
          98 kB
          Andrew Morrow
        2. config.log.2
          99 kB
          Andrew Morrow
        3. config.log.3
          73 kB
          Andrew Morrow
        4. failedBuildConfig.log
          48 kB
          Daniel Gottlieb

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: