Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573188 - dev-qt/qtsvg-5.4.2 fails to compile (PREMUL was not declared in this scope)
Summary: dev-qt/qtsvg-5.4.2 fails to compile (PREMUL was not declared in this scope)
Status: RESOLVED DUPLICATE of bug 564920
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 11:11 UTC by Johann Schmitz (ercpe) (RETIRED)
Modified: 2016-01-28 12:48 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,5.08 KB, text/plain)
2016-01-28 11:11 UTC, Johann Schmitz (ercpe) (RETIRED)
Details
build.log (build.log,19.56 KB, text/plain)
2016-01-28 11:12 UTC, Johann Schmitz (ercpe) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:11:15 UTC
Compilation failes with:


qsvggenerator.cpp:258:66: error: ‘PREMUL’ was not declared in this scope
                 QRgb fromColor = PREMUL(stops.at(0).second.rgba());
                                                                  ^
qsvggenerator.cpp:268:134: error: ‘INV_PREMUL’ was not declared in this scope
                             QRgb color = INV_PREMUL(INTERPOLATE_PIXEL_256(fromColor, 256 - 256 * j / parts, toColor, 256 * j / parts));


Reproducible: Always
Comment 1 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:11:54 UTC
Created attachment 424052 [details]
emerge --info
Comment 2 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:12:08 UTC
Created attachment 424054 [details]
build.log
Comment 3 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:12:24 UTC
https://github.com/msorvig/qt5-qtbase-nacl/issues/8
Comment 4 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:23:06 UTC
The commit which changes the PREMUL macro to qPremultiply:

https://github.com/qtproject/qtsvg/commit/b725b5fd9158d95f3693a06425924271ee4b4239
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2016-01-28 12:48:49 UTC

*** This bug has been marked as a duplicate of bug 564920 ***