Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-2345

Compilation failure against main branch of qpid-proton

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • None
    • None

    Description

      ../src/remote_sasl.c:162:1: error: return type defaults to ‘int’ [-Wimplicit-int]
        162 | PN_HANDLE(REMOTE_SASL_CTXT)
            | ^~~~~~~~~
      ../src/remote_sasl.c: In function ‘PN_HANDLE’:
      ../src/remote_sasl.c:165:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        165 | {
            | ^
      ../src/remote_sasl.c:175:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        175 | {
            | ^
      ../src/remote_sasl.c:189:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        189 | {
            | ^
      ../src/remote_sasl.c:196:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        196 | {
            | ^
      ../src/remote_sasl.c:231:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        231 | {
            | ^
      ../src/remote_sasl.c:247:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        247 | {
            | ^
      ../src/remote_sasl.c:257:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        257 | {
            | ^
      ../src/remote_sasl.c:268:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        268 | {
            | ^
      ../src/remote_sasl.c:279:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        279 | {
            | ^
      ../src/remote_sasl.c:289:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        289 | {
            | ^
      ../src/remote_sasl.c:299:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        299 | {
            | ^
      ../src/remote_sasl.c:308:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        308 | {
            | ^
      ../src/remote_sasl.c:316:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        316 | {
            | ^
      ../src/remote_sasl.c:334:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        334 | {
            | ^
      ../src/remote_sasl.c:375:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        375 | {
            | ^
      ../src/remote_sasl.c:392:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        392 | {
            | ^
      ../src/remote_sasl.c:404:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        404 | {
            | ^
      ../src/remote_sasl.c:423:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        423 | {
            | ^
      ../src/remote_sasl.c:434:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        434 | {
            | ^
      ../src/remote_sasl.c:447:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        447 | {
            | ^
      ../src/remote_sasl.c:458:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        458 | {
            | ^
      ../src/remote_sasl.c:463:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        463 | {
            | ^
      ../src/remote_sasl.c:467:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        467 | {
            | ^
      ../src/remote_sasl.c:471:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        471 | {
            | ^
      ../src/remote_sasl.c:476:38: error: storage class specified for parameter ‘remote_sasl_impl’
        476 | static const pnx_sasl_implementation remote_sasl_impl = {
            |                                      ^~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:476:1: error: parameter ‘remote_sasl_impl’ is initialized
        476 | static const pnx_sasl_implementation remote_sasl_impl = {
            | ^~~~~~
      ../src/remote_sasl.c:477:5: error: ‘remote_sasl_free’ undeclared (first use in this function); did you mean ‘remote_sasl_impl’?
        477 |     remote_sasl_free,
            |     ^~~~~~~~~~~~~~~~
            |     remote_sasl_impl
      ../src/remote_sasl.c:477:5: note: each undeclared identifier is reported only once for each function it appears in
      ../src/remote_sasl.c:478:5: error: ‘remote_sasl_list_mechs’ undeclared (first use in this function); did you mean ‘remote_sasl_impl’?
        478 |     remote_sasl_list_mechs,
            |     ^~~~~~~~~~~~~~~~~~~~~~
            |     remote_sasl_impl
      ../src/remote_sasl.c:479:5: error: ‘remote_sasl_init_server’ undeclared (first use in this function)
        479 |     remote_sasl_init_server,
            |     ^~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:480:5: error: ‘remote_sasl_init_client’ undeclared (first use in this function)
        480 |     remote_sasl_init_client,
            |     ^~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:481:5: error: ‘remote_sasl_prepare’ undeclared (first use in this function); did you mean ‘remote_sasl_impl’?
        481 |     remote_sasl_prepare,
            |     ^~~~~~~~~~~~~~~~~~~
            |     remote_sasl_impl
      ../src/remote_sasl.c:482:5: error: ‘remote_sasl_process_init’ undeclared (first use in this function)
        482 |     remote_sasl_process_init,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:483:5: error: ‘remote_sasl_process_response’ undeclared (first use in this function)
        483 |     remote_sasl_process_response,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:484:5: error: ‘remote_sasl_process_mechanisms’ undeclared (first use in this function)
        484 |     remote_sasl_process_mechanisms,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:485:5: error: ‘remote_sasl_process_challenge’ undeclared (first use in this function)
        485 |     remote_sasl_process_challenge,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:486:5: error: ‘remote_sasl_process_outcome’ undeclared (first use in this function)
        486 |     remote_sasl_process_outcome,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:487:5: error: ‘remote_sasl_can_encrypt’ undeclared (first use in this function)
        487 |     remote_sasl_can_encrypt,
            |     ^~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:488:5: error: ‘remote_sasl_max_encrypt_size’ undeclared (first use in this function)
        488 |     remote_sasl_max_encrypt_size,
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:489:5: error: ‘remote_sasl_encode’ undeclared (first use in this function); did you mean ‘remote_sasl_impl’?
        489 |     remote_sasl_encode,
            |     ^~~~~~~~~~~~~~~~~~
            |     remote_sasl_impl
      ../src/remote_sasl.c:490:5: error: ‘remote_sasl_decode’ undeclared (first use in this function); did you mean ‘remote_sasl_impl’?
        490 |     remote_sasl_decode
            |     ^~~~~~~~~~~~~~~~~~
            |     remote_sasl_impl
      ../src/remote_sasl.c:494:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        494 | {
            | ^
      ../src/remote_sasl.c:499:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        499 | {
            | ^
      ../src/remote_sasl.c:507:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        507 | {
            | ^
      ../src/remote_sasl.c:519:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        519 | {
            | ^
      ../src/remote_sasl.c:524:17: error: storage class specified for parameter ‘permission_handler’
        524 | typedef void* (*permission_handler)(pn_bytes_t, bool, bool, void*);
            |                 ^~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:527:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        527 | {
            | ^
      ../src/remote_sasl.c:535:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        535 | {
            | ^
      ../src/remote_sasl.c:542:49: error: expected declaration specifiers or ‘...’ before ‘permission_handler’
        542 | static void* parse_permissions(pn_data_t* data, permission_handler handler, void* initial_context)
            |                                                 ^~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:580:48: error: expected declaration specifiers or ‘...’ before ‘permission_handler’
        580 | static void* parse_properties(pn_data_t* data, permission_handler handler, void* initial_context)
            |                                                ^~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:609:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        609 | {
            | ^
      ../src/remote_sasl.c:634:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        634 | {
            | ^
      ../src/remote_sasl.c:651:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
        651 | {
            | ^
      ../src/remote_sasl.c:162:1: error: type of ‘REMOTE_SASL_CTXT’ defaults to ‘int’ [-Wimplicit-int]
        162 | PN_HANDLE(REMOTE_SASL_CTXT)
            | ^~~~~~~~~
      ../src/remote_sasl.c:524:17: error: declaration for parameter ‘permission_handler’ but no such parameter
        524 | typedef void* (*permission_handler)(pn_bytes_t, bool, bool, void*);
            |                 ^~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:476:38: error: declaration for parameter ‘remote_sasl_impl’ but no such parameter
        476 | static const pnx_sasl_implementation remote_sasl_impl = {
            |                                      ^~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:720: error: expected ‘{’ at end of input
        720 | }
            | 
      ../src/remote_sasl.c:720: error: control reaches end of non-void function [-Werror=return-type]
        720 | }
            | 
      At top level:
      ../src/remote_sasl.c:145:13: error: ‘delete_qdr_sasl_relay_t’ defined but not used [-Werror=unused-function]
        145 | static void delete_qdr_sasl_relay_t(qdr_sasl_relay_t* instance)
            |             ^~~~~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:128:26: error: ‘new_qdr_sasl_relay_t’ defined but not used [-Werror=unused-function]
        128 | static qdr_sasl_relay_t* new_qdr_sasl_relay_t(const char* address, const char* hostname, const char* sasl_init_hostname, pn_proactor_t* proactor)
            |                          ^~~~~~~~~~~~~~~~~~~~
      ../src/remote_sasl.c:118:13: error: ‘copy_bytes’ defined but not used [-Werror=unused-function]
        118 | static void copy_bytes(const pn_bytes_t* from, qdr_owned_bytes_t* to)
            |             ^~~~~~~~~~
      ../src/remote_sasl.c:58:13: error: ‘allocate_buffer’ defined but not used [-Werror=unused-function]
         58 | static void allocate_buffer(buffer_t* buffer)
            |             ^~~~~~~~~~~~~~~
      ../src/remote_sasl.c:36:25: error: ‘auth_service_log’ defined but not used [-Werror=unused-variable]
         36 | static qd_log_source_t* auth_service_log;
            |                         ^~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      [35/143] ccache /usr/bin/cc -D_DEBUG -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/include -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/include -I/home/runner/work/qpid-dispatch/qpid-dispatch/install/include -I/opt/hostedtoolcache/Python/3.6.15/x64/include/python3.6m -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/src -DQD_MEMORY_DEBUG -g -fno-omit-frame-pointer -fsanitize=address,undefined -DQD_MEMORY_DEBUG=1 -g -Wall -Wextra -Werror -Wpedantic -pedantic-errors -Wno-empty-body -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -std=gnu11 -MD -MT src/CMakeFiles/qpid-dispatch.dir/policy.c.o -MF src/CMakeFiles/qpid-dispatch.dir/policy.c.o.d -o src/CMakeFiles/qpid-dispatch.dir/policy.c.o -c /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/policy.c
      [36/143] ccache /usr/bin/cc -D_DEBUG -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/include -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/include -I/home/runner/work/qpid-dispatch/qpid-dispatch/install/include -I/opt/hostedtoolcache/Python/3.6.15/x64/include/python3.6m -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core -I/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/src -DQD_MEMORY_DEBUG -g -fno-omit-frame-pointer -fsanitize=address,undefined -DQD_MEMORY_DEBUG=1 -g -Wall -Wextra -Werror -Wpedantic -pedantic-errors -Wno-empty-body -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -std=gnu11 -MD -MT src/CMakeFiles/qpid-dispatch.dir/message.c.o -MF src/CMakeFiles/qpid-dispatch.dir/message.c.o.d -o src/CMakeFiles/qpid-dispatch.dir/message.c.o -c /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatc
      h/src/message.c
      ninja: build stopped: subcommand failed.
      Error: Process completed with exit code 1.
      0s
      0s
      0s
      0s
      0s
      0s
      0s
       

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            gmurthy Ganesh Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: