jpegqual.o: In function `main':
jpegqual.c:(.text+0x5ae): undefined reference to `jpeg_std_error'
jpegqual.c:(.text+0x5c4): undefined reference to `jpeg_CreateDecompress'
jpegqual.c:(.text+0x5d2): undefined reference to `jpeg_stdio_src'
jpegqual.c:(.text+0x5dc): undefined reference to `jpeg_read_header'
jpegqual.c:(.text+0x8aa): undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make[3]: *** [jpegqual] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*
* ERROR: media-gfx/gimp-2.4.0_rc1 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_compile
* ebuild.sh, line 990: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* gimp-2.4.0_rc1.ebuild, line 99: Called die
*
* emake failed
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-gfx/gimp-2.4.0_rc1/temp/build.log'.
Downgraded gimp to v2.2.17 with the same results as v2.3.19. Unable to open or save .jpg or .png.

Suggestions?