xloadimage fails to build if libjpeg-turbo is used, because C_ARITH_CODING_SUPPORTED is defined in /usr/include/jconfig.h, and xloadimage contains a syntax error. [ebuild R ] media-libs/libjpeg-turbo-1.1.0 USE="-static-libs" 0 kB [ebuild N ] media-gfx/xloadimage-4.1-r10 USE="jpeg png tiff" 0 kB moon ~ # equery belongs /usr/include/jconfig.h [ Searching for file(s) /usr/include/jconfig.h in *... ] media-libs/libjpeg-turbo-1.1.0 (/usr/include/jconfig.h) moon ~ # grep C_ARIT /usr/include/jconfig.h #define C_ARITH_CODING_SUPPORTED 1 snippet from /var/tmp/portage/media-gfx/xloadimage-4.1-r10/work/xloadimage.4.1/jpeg.c, after the failed build: static void parseOptions(j_compress_ptr cinfo, char *options, int verbose) { char *name, *value; while (getNextTypeOption(&options, &name, &value) > 0) { if (!strncmp("arithmetic", name, strlen(name))) { /* Use arithmetic coding. */ #ifdef C_ARITH_CODING_SUPPORTED if (verbose) printf(" Using arithmetic coding.\n"); cinfo->arith_code = TRUE; #else fprintf(stderr, "jpegDump: sorry, arithmetic coding not supported\n"); } #endif else if (!strncmp("grayscale", name, strlen(name)) || !strncmp("greyscale", name, strlen(name)) || !strncmp("monochrome", name, strlen(name))) { /* Force a monochrome JPEG file to be generated. */ if (verbose) Reproducible: Always Steps to Reproduce: 1. emerge xloadimage 2. 3. Actual Results: build fails Expected Results: build should succeed
Created attachment 268529 [details] emerge output
Created attachment 268531 [details] emerge --info
Created attachment 268533 [details, diff] possible fix
That fix works for me.
Fixed.