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

Compilation failure on Fedora 38

    XMLWordPrintableJSON

Details

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

    Description

      In file included from /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:27:
      In function 'qd_buffer_list_append_field',
          inlined from 'compose_router_message_annotations' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1821:13,
          inlined from 'qd_message_send' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1905:33:
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/buffer_field_api.h:284:27: error: 'in_trace.remaining' may be used uninitialized [-Werror=maybe-uninitialized]
        284 |         bfield->remaining -= len;
            |                           ^~
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c: In function 'qd_message_send':
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1806:27: note: 'in_trace.remaining' was declared here
       1806 |         qd_buffer_field_t in_trace;
            |                           ^~~~~~~~
      In file included from /builddir/build/BUILD/qpid-dispatch-1.19.0/include/qpid/dispatch/message.h:22,
                       from /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:20:
      In function 'qd_buffer_cursor',
          inlined from 'qd_buffer_list_append_field' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/buffer_field_api.h:280:24,
          inlined from 'compose_router_message_annotations' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1821:13,
          inlined from 'qd_message_send' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1905:33:
      /builddir/build/BUILD/qpid-dispatch-1.19.0/include/qpid/dispatch/buffer.h:83:39: error: 'in_trace.buffer' may be used uninitialized [-Werror=maybe-uninitialized]
         83 |     return ((unsigned char*) &buf[1]) + buf->size;
            |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c: In function 'qd_message_send':
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1806:27: note: 'in_trace.buffer' was declared here
       1806 |         qd_buffer_field_t in_trace;
            |                           ^~~~~~~~
      In function 'qd_buffer_list_append_field',
          inlined from 'compose_router_message_annotations' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1821:13,
          inlined from 'qd_message_send' at /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1905:33:
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/buffer_field_api.h:280:57: error: 'in_trace.cursor' may be used uninitialized [-Werror=maybe-uninitialized]
        280 |         size_t avail = qd_buffer_cursor(bfield->buffer) - bfield->cursor;
            |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c: In function 'qd_message_send':
      /builddir/build/BUILD/qpid-dispatch-1.19.0/src/message.c:1806:27: note: 'in_trace.cursor' was declared here
       1806 |         qd_buffer_field_t in_trace;
            |                           ^~~~~~~~
      cc1: all warnings being treated as errors
      make[2]: *** [src/CMakeFiles/qpid-dispatch.dir/build.make:405: src/CMakeFiles/qpid-dispatch.dir/message.c.o] Error 1
      make[2]: Leaving directory '/builddir/build/BUILD/qpid-dispatch-1.19.0'
      make[1]: *** [CMakeFiles/Makefile2:1030: src/CMakeFiles/qpid-dispatch.dir/all] Error 2
      make[1]: Leaving directory '/builddir/build/BUILD/qpid-dispatch-1.19.0'
      make: *** [Makefile:149: all] Error 2
      error: Bad exit status from /var/tmp/rpm-tmp.XW4Weo (%build)
      RPM build warnings:
      RPM build errors:
          line 56: It's not recommended to have unversioned Obsoletes: Obsoletes: libqpid-dispatch
          line 57: It's not recommended to have unversioned Obsoletes: Obsoletes: libqpid-dispatch-devel
          line 110: It's not recommended to have unversioned Obsoletes: Obsoletes:  qpid-dispatch-router-docs
          Bad exit status from /var/tmp/rpm-tmp.XW4Weo (%build)
      Child return code was: 1
      EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 59981b45e3a84010bd25b5df4ad8b522 -D /var/lib/mock/f39-build-41300068-5058376/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.uytbst9d:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007" --setenv=PS1=<mock-chroot> \\s-\\v\\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/qpid-dispatch.spec\n', 1)]
      Traceback (most recent call last):
        File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
          result = func(*args, **kw)
                   ^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status
          raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
      mockbuild.exception.Error: Command failed: 
       # /usr/bin/systemd-nspawn -q -M 59981b45e3a84010bd25b5df4ad8b522 -D /var/lib/mock/f39-build-41300068-5058376/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.uytbst9d:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/qpid-dispatch.spec 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: