Skip to contentSkip to conversation

Build break in current -git.

Qemu-devel Rob Landley 2 participants 2 messages Jun 27, 2011

lore
Share & tools
lore
#0 lore raw

In file included from /usr/include/png.h:510,

                 from ui/vnc-enc-tight.c:37:

/usr/include/pngconf.h:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token /usr/include/pngconf.h:372: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘include’
make: *** [ui/vnc-enc-tight.o] Error 1

Building on an Ubuntu 10.04 stock install.

Relevant chunk of said header:

# ifndef PNG_SKIP_SETJMP_CHECK
# ifdef __linux__
# ifdef _BSD_SOURCE
# define PNG_SAVE_BSD_SOURCE
# undef _BSD_SOURCE
# endif
# 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
# endif /* __linux__ */
# endif /* PNG_SKIP_SETJMP_CHECK */

Rob

#1 lore raw
Quoted 9 lines · Rob Landley

In file included from /usr/include/png.h:510,
                from ui/vnc-enc-tight.c:37:
/usr/include/pngconf.h:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token /usr/include/pngconf.h:372: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘include’
make: *** [ui/vnc-enc-tight.o] Error 1

Building on an Ubuntu 10.04 stock install.

Yep, the buildbot sent out a bunch of emails about this breakage. Stefan Weil has posted a patch to fix it:
http://patchwork.ozlabs.org/patch/102108/

Stefan