Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578212 - www-client/chromium-51.0.2687.0 fails to build with system libpng (invalid conversion from ‘png_bytep {aka unsigned char*}’ to ‘const char*’ in blink::PNGImageDecoder::headerAvailable)
Summary: www-client/chromium-51.0.2687.0 fails to build with system libpng (invalid co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-25 12:02 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2016-08-01 18:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-03-25 12:02:26 UTC
../../third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp: In member function ‘void blink::PNGImageDecoder::headerAvailable()’:
../../third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp:237:103: error: invalid conversion from ‘png_bytep {aka unsigned char*}’ to ‘const char*’ [-fpermissive]
                 setColorProfileAndTransform(profile, profileLength, imageHasAlpha, false /* useSRGB */);
                                                                                                       ^
In file included from ../../third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h:29:0,
                 from ../../third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp:39:
../../third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:236:10: note:   initializing argument 1 of ‘void blink::ImageDecoder::setColorProfileAndTransform(const char*, unsigned int, bool, bool)’
     void setColorProfileAndTransform(const char* iccData, unsigned iccLength, bool hasAlpha, bool useSRGB);
          ^

This is with libpng-1.6.21 .
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-06-14 19:57:11 UTC
Upstream is updating libpng, see https://bugs.chromium.org/p/chromium/issues/detail?id=599917 .
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2016-08-01 18:00:47 UTC
This should be fixed with https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/chromium?id=19050b84a294b9807bd6e755b75230141892f195 .