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

Irina Boverman commented on DISPATCH-2009:
------------------------------------------

I applied a number of patches from master, and now only have 1 warning:

[ 81%] Building C object tests/CMakeFiles/unit_tests_size.dir/buffer_test.c.o
cd /builddir/build/BUILD/qpid-dispatch-1.15.0/tests && /usr/bin/gcc 
-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 -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 -Werror -Wall -Wpedantic -o 
CMakeFiles/unit_tests_size.dir/buffer_test.c.o -c 
/builddir/build/BUILD/qpid-dispatch-1.15.0/tests/buffer_test.c
/builddir/build/BUILD/qpid-dispatch-1.15.0/tests/buffer_test.c: In function 
'test_buffer_list_append':
/builddir/build/BUILD/qpid-dispatch-1.15.0/tests/buffer_test.c:116:62: error: 
format '%ld' expects argument of type 'long int', but argument 3 has type 
'size_t' \{aka 'unsigned int'} [-Werror=format=]
 116 | sprintf(error, "Incorrect accumulated buffer size: %ld", list_len);
 | ~~^ ~~~~~~~~
 | | |
 | | size_t \{aka unsigned int}
 | long int
 | %d
cc1: all warnings being treated as errors

> Cannot build on fedora F34
> --------------------------
>
>                 Key: DISPATCH-2009
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2009
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Protocol Adaptors
>    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
>            Priority: Major
>
> build is broken on 
> [armv7hl|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]

Reply via email to