Red Hat Bugzilla – Bug 901526
build on non-x86 fails with "error: 'scanned' may be used uninitialized"
Last modified: 2015-06-21 20:08:15 EDT
Build of qpid-proton-0.3 fails on s390(x) and ppc(64) with an error from gcc
./usr/bin/cc -Dqpid_proton_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31 -march=z9-109 -mtune=z10 -fPIC -I/builddir/build/BUILD/qpid-proton-c-0.3 -I/builddir/build/BUILD/qpid-proton-c-0.3/include -Werror -Wall -pedantic-errors -std=c99 -o CMakeFiles/qpid-proton.dir/src/messenger.c.o -c /builddir/build/BUILD/qpid-proton-c-0.3/src/messenger.c
............/builddir/build/BUILD/qpid-proton-c-0.3/src/codec/codec.c: In function 'pn_data_vscan':
/builddir/build/BUILD/qpid-proton-c-0.3/src/codec/codec.c:1712:16: error: 'scanned' may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
make: *** [CMakeFiles/qpid-proton.dir/src/codec/codec.c.o] Error 1
Probably the understanding of the function by gcc differs between x86 and s390 or ppc
Version-Release number of selected component (if applicable):
Created attachment 685907 [details]
qpid-proton-0.3-2.fc17 has been submitted as an update for Fedora 17.
qpid-proton-0.3-2.fc18 has been submitted as an update for Fedora 18.
It's still failing, my proposed patch was setting the "scanned" variable, your committed patch is setting the "found" variable. See log at http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=921511
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qpid-proton-0.3-2.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
qpid-proton-0.3-3.fc18 has been submitted as an update for Fedora 18.
qpid-proton-0.3-3.fc17 has been submitted as an update for Fedora 17.
qpid-proton-0.3-3.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
qpid-proton-0.3-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.