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

check for pthread_setname_np incorrectly fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.5
    • Build
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-03-06, Repl 2017-03-27

    Description

      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
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: