Latest GIT version fails to compile on Linux - setjmp.h problem

Bug #802588 reported by Nigel Horne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Stefan Weil

Bug Description

Git version: f26e428da505709ec03b2ed2c9eb3db82b30bd7b
Gcc: 4.6.1
Host: Debinan/x86_64

Fails to compile at

In file included from /usr/include/png.h:518:0,
                 from ui/vnc-enc-tight.c:37:
/usr/include/pngconf.h: At top level:
/usr/include/pngconf.h:371:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
/usr/include/pngconf.h:372:12: error: unknown type name ‘__dont__’
/usr/include/pngconf.h:372:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘it’
/usr/include/pngconf.h:372:29: error: unknown type name ‘it’

Looking at pngconf.h around line 370 gives the reason for the compilation failure:

# ifdef _SETJMP_H
       /* If you encounter a compiler error here, see the explanation
        * near the end of INSTALL.
        */
           __pngconf.h__ in libpng already includes setjmp.h;
           __dont__ include it again.;
# endif

Revision history for this message
Stefan Hajnoczi (stefanha) wrote : Re: [Qemu-devel] [Bug 802588] [NEW] Latest GIT version fails to compile on Linux - setjmp.h problem

On Mon, Jun 27, 2011 at 4:28 PM, Nigel Horne <email address hidden> wrote:
> Git version: f26e428da505709ec03b2ed2c9eb3db82b30bd7b

Fixed in 2fb0c09f4ff036f68474277ed4edc036f6529de8.

Stefan

Revision history for this message
Yongjie Ren (yongjie-ren) wrote :

I found this issue is also exist in latest qemu-kvm.git
commit d58931037dbb4fbc2fbb33858629d3fabfd1b0d4
Merge: bcd4f22... f8121c4...
Author: Avi Kivity <email address hidden>
Date: Tue Jun 28 15:11:13 2011 +0300

Git log shows it has merged commit 2fb0c09f4f*, but the bug is not fixed.

Revision history for this message
Stefan Weil (ubuntu-weilnetz) wrote :

Patch http://patchwork.ozlabs.org/patch/103157/ is a possible solution for this problem.

Changed in qemu:
assignee: nobody → Stefan Weil (ubuntu-weilnetz)
status: New → Fix Committed
Revision history for this message
Yongjie Ren (yongjie-ren) wrote :

this issue got fixed. It doesn't exist in qemu-kvm.git fda19064e889d4419dd3dc69ca8e6e7a1535fdf5

Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.