qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiri Daněk (JIRA) <j...@apache.org>
Subject [jira] [Commented] (PROTON-2076) Proton stopped building with -DTHREADERCISER=ON after test_main.cpp was added
Date Mon, 29 Jul 2019 10:19:00 GMT

    [ https://issues.apache.org/jira/browse/PROTON-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895129#comment-16895129
] 

Jiri Daněk commented on PROTON-2076:
------------------------------------

One more issue not fixed by the PR above. Since this is the only c-language test, all other
tests are built using cpp, -std=c99 and this happens

{noformat}
/home/jdanek/projects/qpid-proton/c/tests/threaderciser.c: In function ‘pool_pick’:
/home/jdanek/projects/qpid-proton/c/tests/threaderciser.c:176:3: error: ISO C90 forbids mixed
declarations and code [-Wpedantic]
   pool_entry *entry = NULL;
   ^
{noformat}

> Proton stopped building with -DTHREADERCISER=ON after test_main.cpp was added
> -----------------------------------------------------------------------------
>
>                 Key: PROTON-2076
>                 URL: https://issues.apache.org/jira/browse/PROTON-2076
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: build
>            Reporter: Jiri Daněk
>            Priority: Major
>
> Enhancement PROTON-2048 broke compilation with cmake option -DTHREADERCISER=ON
> {noformat}
> [ 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message