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

check for pthread_setname_np incorrectly fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.5
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

            Assignee:
            redbeard0531 Mathias Stearn
            Reporter:
            redbeard0531 Mathias Stearn
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: