You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Dan Horák (JIRA)" <ji...@apache.org> on 2013/01/26 11:13:14 UTC

[jira] [Commented] (PROTON-202) build on non-x86 fails with "error: 'scanned' may be used uninitialized"

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

Dan Horák commented on PROTON-202:
----------------------------------

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
                
>  build on non-x86 fails with "error: 'scanned' may be used uninitialized"
> -------------------------------------------------------------------------
>
>                 Key: PROTON-202
>                 URL: https://issues.apache.org/jira/browse/PROTON-202
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.3
>            Reporter: Darryl L. Pierce
>            Assignee: Darryl L. Pierce
>
> 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[2]: *** [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
> gcc-4.7.2-8.fc18.s390
> gcc-4.7.2-7.fc18.ppc
> Version-Release number of selected component (if applicable):
> qpid-proton-0.3-1.fc18

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira