Bug#741901: antigrav: FTBFS with libpng16

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Mon Mar 17 02:51:53 UTC 2014


Source:  antigrav
Version: 0.0.3-5
User: libpng at packages.debian.org
Usertags: libpng15-transition

Hi,

libpng maintainers have a plan transition of libpng16[0].

libpng16 is already installed in experimental, and we are re-building
the package depending on libpng16.
As a result, we checked that your package was FTBFS.
Would you check also in your environment?
And if you could confirm problem, could you fix this?

-----
m3dtexture.cpp:152:87: warning: format '%u' expects argument of type
'unsigned int', but argument 4 has type 'png_uint_32* {aka unsigned
int*}' [-Wformat=]
In file included from /usr/include/pngconf.h:72:0,
                 from /usr/include/png.h:456,
                 from m3dtexture.cpp:6:
m3dtexture.cpp: In static member function 'static int
m3dTexture::loadPNG(unsigned char**, png_uint_32*, png_uint_32*,
void*, void (*)(png_structp, png_bytep, png_size_t))':
m3dtexture.cpp:252:18: error: invalid use of incomplete type
'png_struct {aka struct png_struct_def}'
  if(setjmp(pngPtr->jmpbuf))
                  ^
In file included from m3dtexture.cpp:6:0:
/usr/include/png.h:555:16: error: forward declaration of 'png_struct
{aka struct png_struct_def}'
 typedef struct png_struct_def png_struct;
                ^
m3dtexture.cpp:277:73: error: invalid use of incomplete type 'png_info
{aka struct png_info_def}'
  if(colorType != PNG_COLOR_TYPE_RGB_ALPHA || bitDepth != 8 ||
pngInfoPtr->channels != 4)
                                                                         ^
In file included from m3dtexture.cpp:6:0:
/usr/include/png.h:569:16: error: forward declaration of 'png_info
{aka struct png_info_def}'
 typedef struct png_info_def png_info;
                ^
m3dtexture.cpp:286:63: error: invalid use of incomplete type 'png_info
{aka struct png_info_def}'
  (*data) = new unsigned char[(*width) * (*height) * pngInfoPtr->channels];
                                                               ^
In file included from m3dtexture.cpp:6:0:
/usr/include/png.h:569:16: error: forward declaration of 'png_info
{aka struct png_info_def}'
 typedef struct png_info_def png_info;
                ^
m3dtexture.cpp:307:69: error: invalid use of incomplete type 'png_info
{aka struct png_info_def}'
   rowPointers[row] = (png_bytep)*data + (row * (*width) *
pngInfoPtr->channels);
                                                                     ^
-----

Best regards,
  Nobuhiro

[0]http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650601

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: antigrav_0.0.3-5.1_amd64.build.gz
Type: application/x-gzip
Size: 9499 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140317/0541f31f/attachment.bin>


More information about the Pkg-games-devel mailing list