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

Cannot build on fedora F34

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.16.0
    • Protocol Adaptors
    • None

    Description

      build is broken on armv7hl and i686 arches:

      [ 5%] Building C object src/CMakeFiles/qpid-dispatch.dir/adaptors/http1/http1_client.c.o
      cd /builddir/build/BUILD/qpid-dispatch-1.15.0/src && /usr/bin/gcc -Dqpid_dispatch_EXPORTS -I/builddir/build/BUILD/qpid-dispatch-1.15.0/include -I/usr/include/python3.9 -I/builddir/build/BUILD/qpid-dispatch-1.15.0/src -I/builddir/build/BUILD/qpid-dispatch-1.15.0/src/router_core -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -std=gnu99 -O2 -g -DNDEBUG -fPIC -Werror -Wall -Wpedantic -o CMakeFiles/qpid-dispatch.dir/adaptors/http1/http1_client.c.o -c /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c: In function '_create_client_connection':
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c:149:29: error: assignment to 'int (h1_codec_request_state_t *, qd_buffer_list_t *, size_t, _Bool)'

      {aka 'int (*)(h1_codec_request_state_t *, qd_buffer_list_t *, unsigned int, _Bool)'}

      from incompatible pointer type 'int (h1_codec_request_state_t *, qd_buffer_list_t *, uintmax_t, _Bool)'

      {aka 'int (*)(h1_codec_request_state_t *, qd_buffer_list_t *, long long unsigned int, _Bool)'}

      [-Werror=incompatible-pointer-types]
      149 | config.rx_body = _client_rx_body_cb;

      ^
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c: At top level:
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c:848:12: error: conflicting types for '_client_rx_body_cb'; have 'int(h1_codec_request_state_t *, qd_buffer_list_t *, size_t, _Bool)' {aka 'int(h1_codec_request_state_t *, qd_buffer_list_t *, unsigned int, _Bool)'}
      848
      static int _client_rx_body_cb(h1_codec_request_state_t *hrs, qd_buffer_list_t *body, size_t len,
      ^~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c:109:12: note: previous declaration of '_client_rx_body_cb' with type 'int(h1_codec_request_state_t *, qd_buffer_list_t *, uintmax_t, _Bool)' {aka 'int(h1_codec_request_state_t *, qd_buffer_list_t *, long long unsigned int, _Bool)'}
      109
      static int _client_rx_body_cb(h1_codec_request_state_t *lib_rs, qd_buffer_list_t *body, uintmax_t len, bool more);
      ^~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c:109:12: error: '_client_rx_body_cb' used but never defined [-Werror]
      /builddir/build/BUILD/qpid-dispatch-1.15.0/src/adaptors/http1/http1_client.c:848:12: error: '_client_rx_body_cb' defined but not used [-Werror=unused-function]
      848
      static int _client_rx_body_cb(h1_codec_request_state_t *hrs, qd_buffer_list_t *body, size_t len,
      ^~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            iboverma Irina Boverman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: