Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668190 - app-text/mupdf-1.13.0: thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID’ undeclared (first use in this function)
Summary: app-text/mupdf-1.13.0: thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL: https://bugs.ghostscript.com/show_bug...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2018-10-09 21:33 UTC by ernsteiswuerfel
Modified: 2018-10-16 16:57 UTC (History)
2 users (show)

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


Attachments
build.log (mupdf-1.13.0:20181009-161500.log,87.56 KB, text/plain)
2018-10-09 21:33 UTC, ernsteiswuerfel
Details
emerge --info (file_668190.txt,6.18 KB, text/plain)
2018-10-09 21:33 UTC, ernsteiswuerfel
Details
build.log (1.14.0) (mupdf-1.14.0:20181011-123714.log,97.15 KB, text/plain)
2018-10-11 12:43 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-10-09 21:33:11 UTC
Created attachment 550286 [details]
build.log

powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=powerpc64 -maltivec -mabi=altivec -pipe -Wall -Wdeclaration-after-statement -ffunction-sections -fdata-sections -fpic -Iinclude -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Ithirdparty/lcms2/include   -DSHARE_JPEG  -DFZ_ENABLE_JS=0 -I/usr/include/openjpeg-2.3  -o build/debug/lcms2/cmsplugin.o -c thirdparty/lcms2/src/cmsplugin.c -Ithirdparty/lcms2/include
thirdparty/lcms2/src/cmsmd5.c: In function ‘byteReverse’:
thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID’ undeclared (first use in this function)
         cmsUInt32Number t = _cmsAdjustEndianess32(ContextID, *(cmsUInt32Number *) buf);
                                                   ^~~~~~~~~
thirdparty/lcms2/src/cmsmd5.c:36:51: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makethird:570: build/debug/lcms2/cmsmd5.o] Error 1
make: *** Waiting for unfinished jobs....
thirdparty/lcms2/src/cmsplugin.c: In function ‘_cmsReadFloat32Number’:
thirdparty/lcms2/src/cmsplugin.c:183:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         *n = *(cmsFloat32Number*)(void*)&tmp;
         ^
thirdparty/lcms2/src/cmsplugin.c: In function ‘_cmsWriteFloat32Number’:
thirdparty/lcms2/src/cmsplugin.c:312:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     tmp = *(cmsUInt32Number*) (void*) &n;
     ^~~
 * ERROR: app-text/mupdf-1.13.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2018-10-09 21:33:50 UTC
Created attachment 550288 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2018-10-11 12:43:12 UTC
Created attachment 550574 [details]
build.log (1.14.0)

No change with mupdf-1.14.0.
Comment 3 Virgil Dupras (RETIRED) gentoo-dev 2018-10-11 22:54:53 UTC
If you disable "lcms" in 0.13 (the USE flag has been removed in 0.14), does the build still fail?
Comment 4 ernsteiswuerfel archtester 2018-10-12 00:09:05 UTC
(In reply to Virgil Dupras from comment #3)
> If you disable "lcms" in 0.13 (the USE flag has been removed in 0.14), does
> the build still fail?

You are correct, 1.13.0 succeeds building without "lcms". But 1.14.0 fails to build anyhow. See already attatched build.log. ;)

USE="lcms" is masked on ppc64, but nethertheless tries to build:

[...]
thirdparty/lcms2/src/cmsmd5.c: In function ‘byteReverse’:
thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID’ undeclared (first use in this function)
         cmsUInt32Number t = _cmsAdjustEndianess32(ContextID, *(cmsUInt32Number *) buf);
                                                   ^~~~~~~~~
thirdparty/lcms2/src/cmsmd5.c:36:51: note: each undeclared identifier is reported only once for each function it appears in
Comment 5 Virgil Dupras (RETIRED) gentoo-dev 2018-10-12 12:08:57 UTC
Would you care to open a bug upstream? With 0.14, it becomes impossible to build without lcms, so if lcms doesn't build on ppc64, it looks like we'll have to unkeyword it.
Comment 6 ernsteiswuerfel archtester 2018-10-12 18:24:55 UTC
Upstream bugreport: https://bugs.ghostscript.com/show_bug.cgi?id=699960

Tried building from git-master, but with the same result.
Comment 7 ernsteiswuerfel archtester 2018-10-12 20:00:37 UTC
Upstream is pretty quick. The problem has been identified and will be fixed sometime next week.
Comment 8 ernsteiswuerfel archtester 2018-10-16 16:57:16 UTC
Upstream fixed the bug with commit:

http://git.ghostscript.com/?p=ghostpdl.git;h=90b8faa80a4746f7f1e0966d6c56a687d2f8d333