Irina Boverman created DISPATCH-2009:
----------------------------------------
Summary: Cannot build on fedora F34
Key: DISPATCH-2009
URL: https://issues.apache.org/jira/browse/DISPATCH-2009
Project: Qpid Dispatch
Issue Type: Bug
Components: Routing Engine
Affects Versions: 1.15.0
Environment: Fedora 34,
[armv7h|https://koji.fedoraproject.org/koji/taskinfo?taskID=64057005] and
[i686|https://koji.fedoraproject.org/koji/taskinfo?taskID=64057006] arches
Reporter: Irina Boverman
build is broken on
[armv7h|https://koji.fedoraproject.org/koji/taskinfo?taskID=64057005] and
[i686|https://koji.fedoraproject.org/koji/taskinfo?taskID=64057006] 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]