You are not logged in.

#1 2012-02-20 08:54:54

psycepa
Member
Registered: 2009-02-22
Posts: 45

[SOLVED] Firefox3 3.6.25-27 nsPNGDecoder issue

Does anybody know how to get rid of the following problem?
Compiling firefox3 from AUR for the last three minor releases 25 26 and 27 (after libpng upgrade to 1.5) ends up in the following way:

nsPNGDecoder.cpp: In member function ‘void nsPNGDecoder::CreateFrame(png_uint_32, png_uint_32, PRInt32, PRInt32, gfxASurface::gfxImageFormat)’:
nsPNGDecoder.cpp:119:17: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp: In function ‘nsresult ReadDataOut(nsIInputStream*, void*, const char*, PRUint32, PRUint32, PRUint32*)’:
nsPNGDecoder.cpp:379:7: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp: In function ‘qcms_profile* PNGGetColorProfile(png_structp, png_infop, int, qcms_data_type*, PRUint32*)’:
nsPNGDecoder.cpp:450:43: warning: invalid conversion from ‘char**’ to ‘png_bytepp {aka unsigned char**}’ [-fpermissive]
nsPNGDecoder.cpp: In function ‘void info_callback(png_structp, png_infop)’:
nsPNGDecoder.cpp:554:26: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp:670:26: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp:696:28: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp:703:28: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
nsPNGDecoder.cpp:725:55: warning: passing NULL to non-pointer argument 2 of ‘void png_set_crc_action(png_structp, int, int)’ [-Wconversion-null]
nsPNGDecoder.cpp: In function ‘void row_callback(png_structp, png_bytep, png_uint_32, int)’:
nsPNGDecoder.cpp:767:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
nsPNGDecoder.cpp: In function ‘void error_callback(png_structp, png_const_charp)’:
nsPNGDecoder.cpp:923:18: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
/usr/include/png.h:851:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’

I googled the sh*t out of the web and arch forums but no solution so far.
And I really need 3.6 cause 10 just sux.
Please help!

Last edited by psycepa (2012-02-24 05:09:07)

Offline

#2 2012-02-22 02:45:06

quasifilmie
Member
Registered: 2011-10-27
Posts: 296

Re: [SOLVED] Firefox3 3.6.25-27 nsPNGDecoder issue

I think someone put libpng 1.4 in AUR so you could try using that. Personally, I have no idea what the above means but since firefox 3.6 is barely supported it might not work with 1.5.

Offline

#3 2012-02-24 04:38:47

psycepa
Member
Registered: 2009-02-22
Posts: 45

Re: [SOLVED] Firefox3 3.6.25-27 nsPNGDecoder issue

Unfortunately it doesn't work...

--edit--
some guy posted a patch in firefox3 AUR thread
after application of the patch it works

Last edited by psycepa (2012-02-24 05:08:49)

Offline

Board footer

Powered by FluxBB