Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2076

Proton stopped building with -DTHREADERCISER=ON after test_main.cpp was added

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Flags:
      Patch

      Description

      Enhancement PROTON-2048 broke compilation with cmake option -DTHREADERCISER=ON

      [ 69%] Linking CXX executable c-threaderciser
      [ 69%] Building CXX object cpp/CMakeFiles/credit_test.dir/src/credit_test.cpp.o
      [ 69%] Building CXX object cpp/CMakeFiles/connection_driver_test.dir/src/connection_driver_test.cpp.o
      /nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/ld: CMakeFiles/test_main.dir/test_main.cpp.o: in function `main':
      /home/jdanek/repos/qpid/qpid-proton/tests/include/catch.hpp:11466: multiple definition of `main'; CMakeFiles/c-threaderciser.dir/threaderciser.c.o:/home/jdanek/repos/qpid/qpid-proton/c/tests/threaderciser.c:508: first defined here
      collect2: error: ld returned 1 exit status
      make[2]: *** [c/tests/CMakeFiles/c-threaderciser.dir/build.make:107: c/tests/c-threaderciser] Error 1
      make[1]: *** [CMakeFiles/Makefile2:1746: c/tests/CMakeFiles/c-threaderciser.dir/all] Error 2
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jdanek Jiri Daněk
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: