Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28197

check for pthread_setname_np incorrectly fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.5
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-03-06, Repl 2017-03-27

      scons: Configure: Checking if pthread_setname_np is supported... 
      build/opt/scons/sconf_temp/conftest_49.cpp <-
        |
        |#define _GNU_SOURCE
        |#include <pthread.h>
        |
        |int main() {
        |    pthread_setname_np(pthread_self(), "test");
        |    return 0;
        |}
        |
      Compiling build/opt/scons/sconf_temp/conftest_49.o
      build/opt/scons/sconf_temp/conftest_49.cpp:2:0: error: "_GNU_SOURCE" redefined [-Werror]
       #define _GNU_SOURCE
       
      <command-line>:0:0: note: this is the location of the previous definition
      cc1plus: all warnings being treated as errors
      scons: Configure: no
      

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: