unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 28261@debbugs.gnu.org
Subject: bug#28261: libfreeimage has undefined references
Date: Sun, 22 Apr 2018 09:53:02 +0300	[thread overview]
Message-ID: <20180422065302.GK30951@macbook41> (raw)
In-Reply-To: <87lgdkrwl3.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 5183 bytes --]

On Thu, Apr 19, 2018 at 12:14:32AM +0200, Ludovic Courtès wrote:
> Hello Efraim,
> 
> It seems that commit a5d4c96b8d90b8bb87e07bd6a7be78991db91bc9 left
> libfreeimage with some undefined references.  For instance, the
> ‘configure’ script of ‘guile-sly’ fails like this:
> 
> --8<---------------cut here---------------start------------->8---
> configure:3888: checking for FreeImage_GetVersion in -lfreeimage
> configure:3913: gcc -o conftest -g -O2   conftest.c -lfreeimage   >&5
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PixelFormatLookup'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat16bppRGB555'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat16bppGray'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat24bppRGB'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKFormatConverter_Release'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat8bppGray'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageDecode_Create_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKAllocAligned'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageEncode_Create_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat24bppBGR'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormatDontCare'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat96bppRGBFloat'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageEncode_SetGPSInfoMetadata_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKFormatConverter_EnumConversions'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat48bppRGB'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKFreeAligned'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormatBlackWhite'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat32bppBGRA'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat32bppRGB'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat64bppRGBA'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKCodecFactory_CreateFormatConverter'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageEncode_SetEXIFMetadata_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageEncode_SetXMPMetadata_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat128bppRGBAFloat'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat32bppGrayFloat'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `PKImageEncode_SetIPTCNAAMetadata_WMP'
> /gnu/store/lsbwqzbl17xvbp4clv2mlxmly2xkz219-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `GUID_PKPixelFormat16bppRGB565'
> collect2: error: ld returned 1 exit status
> configure:3913: $? = 1
> --8<---------------cut here---------------end--------------->8---
> 
> Any ideas?
> 
> Thanks,
> Ludo’.

Interestingly guile-sly on aarch64 doesn't find freeimage at all. In any
case, the same issue happens with emulation-station, and from this
not-related-at-all bug
https://github.com/openframeworks/openFrameworks/issues/4993 it looks
like they're all related to libjxr. `guix gc --references $(guix build
--no-grafts freeimage)' doesn't list libjxr, and adding it as a
propagated input doesn't magically fix it. libjxr seems to be abandoned
upstream. The easiest option might be to use the bundled libjxr but I'm
still looking at it.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-04-22  6:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-28 12:11 bug#28261: freeimage uses bundled libraries Efraim Flashner
2018-04-13  8:00 ` bug#28261: patch pushed Efraim Flashner
2018-04-18 22:14 ` bug#28261: libfreeimage has undefined references Ludovic Courtès
2018-04-22  6:53   ` Efraim Flashner [this message]
2018-04-23  9:46     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180422065302.GK30951@macbook41 \
    --to=efraim@flashner.co.il \
    --cc=28261@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).