Subject: bug#29186: building guile-emacs fails: required libaries not found: libjpeg

From: Mark H Weaver <[email-masked]>
Date: Tue, 07 Nov 2017 00:53:24 -0500

Jan Nieuwenhuizen <[email-masked]> writes:

> guix build guile-emacs fails with
>
> checking jerror.h usability... yes
> checking jerror.h presence... yes
> checking for jerror.h... yes
> checking for jpeg_destroy_compress in -ljpeg... yes
> configure: WARNING: libjpeg found, but not version 6b or later
> checking for library containing inflateEnd... -lz
> checking for png... yes
> checking whether png_longjmp is declared... yes
> checking tiffio.h usability... yes
> checking tiffio.h presence... yes
> checking for tiffio.h... yes
> checking for TIFFGetVersion in -ltiff... yes
> checking gif_lib.h usability... yes
> checking gif_lib.h presence... yes
> checking for gif_lib.h... yes
> checking for GifMakeMapObject in -lgif... yes
> configure: error: The following required libraries were not found:
>      libjpeg
> Maybe some development libraries/packages are missing?
> If you don't want to link with them give
>      --with-jpeg=no
> as options to configure
> phase `configure' failed after 10.5 seconds
>
> Obviously that's fu, because libjpeg-8 is available.  I tried several
> things, previous versions of libjpeg; not sure what's going on here.

Can you try building it with --keep-failed, and then look at the
config.log file in the failed build directory?  It should show details
of what went wrong.  Typically these tests try compiling small test
programs, and likely there was some other error that lead it to the
erroneous conclusion.  config.log will contain the test program and
error messages.

       Mark