freeimage uses bundled libraries

  • Done
  • quality assurance status badge
Details
2 participants
  • Efraim Flashner
  • Ludovic Courtès
Owner
unassigned
Submitted by
Efraim Flashner
Severity
normal

Debbugs page

E
E
Efraim Flashner wrote on 28 Aug 2017 05:11
(address . bug-guix@gnu.org)
20170828121147.GD1618@macbook42.flashner.co.il
The bundled libraries in freeimage are several years old, leading to
build errors of packages that depend on freeimage, such as ogre¹, on
architectures with neon. Debian has an extensive patch collection to use
system libraries which should fix this issue on armhf and aarch64 but I
haven't tried it yet.

/gnu/store/p9nzzckb44gbz3v2anzrx7vw10in7j7l-freeimage-3.17.0/lib/libfreeimage.so: undefined reference to `png_init_filter_functions_neon'
--
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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlmkCIMACgkQQarn3Mo9
g1G/UxAAwvYFZhKN8lU9/k0jbpjqmosoFpsXV/pLQHCyWCx+0jyFu1yKHQIfo+5V
+zOorGrv2jffWQEQBtk3IDrkW4w98H9vX2jqXgbRIvldQCYQ7cX+avbPaidzNUW7
lVYSgD+3t6QvR8yv5WzLQ46hp7ukNz1Vs7DVAwbfITQKJTUphqdvpLwDVmP8yrII
Hdtq7XHXdeBn8oGi4xOSBs1b/oiGTwCW58PsWJEesJRkFaiYgKiB5QdlkU2oJAa6
WQxwfxwf4ZpOw0bZ4+zOTWGBVD0Ps5uJXq5i8Yd2ruU9kZdkmm6TuvSAd2DXPdhU
T2tvVuRQ65YGG1GU/DPpd0XKWEoIoXdxVrc7Jmuc4pvMdaUsfV9HYlXqT94bN+an
SGB929SwsZdvwcbZgPeEjR8FYNlVslRQjEdkLo42KJtrf5QEKAebZQ1lrfkCzB+F
Cvj91HoMvX2yx64e6e9Fm5klPrvv7MLFiMncg/714VcEpthZyMSKvIXmwiEZfXtv
I2PfyZRy4kRLr1lylzFN/tURrCI9Iyjch6ZY3KF5OvRLocMdgG4QYV9haxk4d6Ht
xa9aA8w1tAMgiqtULHFgcYBY4Vf9GSHt9+SGJKUf7UNDuyVnSwehCEDTy+N8BM8u
nJQKg3K3Y5CuSGbbgx5Y7N27ywQaiisjAf+YpEbOQ0jWiucYmJ4=
=/zEX
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 30 Aug 2017 01:55
control message for bug #28261
(address . control@debbugs.gnu.org)
87d17d77tu.fsf@gnu.org
tags 28261 security
E
E
Efraim Flashner wrote on 13 Apr 2018 01:00
patch pushed
(address . 28261-done@debbugs.gnu.org)
20180413080053.GD30951@macbook41
This is fixed in commits a5d4c96b8d90b8bb87e07bd6a7be78991db91bc9 and
1606da6c07b7b35481fb410d0a679c9452f6a319.

--
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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlrQY7AACgkQQarn3Mo9
g1HLEQ//TFnjnOdF2yTrvONss2xyRmI564Rp3fDJIHcD6FuugOsqMDI43mNjIGrG
L/tCSDhMfx0cFooYednFUt9ho7u1oq/V137gcCgh4uG2UtPPlEVzUoj8Geoew/Px
Ifhh1Fqryv77MbEghK/n3PFH8/sYJtO20FYHohRV+i3M/WB6ZqY2rr5TY63f4B3A
Y6UxbCswdKmJHcEM/JaJgfdXkXkjnSd+K5zwP5G2H2dSQb1Mx5cMORxnGxCMBeRC
VC1eAZxHqmXwuPEzQZrBRapF9utGh18fFeXWlqcGCAnh0W/1cu9KPqrI160gMysT
qcN8ZKqskuhUo14v0Re9rDk4QXqmZK9Rt6av9zE5RvCGeurG1TbauhL9DTwAb4FC
7E0fLDMsjm8Z4nmkNkdqgUG8/mSrmbp4KTaJ0OmktvGr9YPY8T3nixZRyOuFmLOM
ouOhvZMY1NVoQFweLDtxIFfhuoOIBS87QKPTZDN+iB2pCpbP1sAdY2C8UYd122F2
iBK3igR+2StVRtZgY7H8qMxkoVXfee70BCupworUNsoUT6nrhFXxIY3TaFsovOfI
caQ3BYilsIHvy5vrFbj9jcOlVUndhb9mvk7g61eYlst0As+25O90JdXU/kzF7OHb
XsoAIMbPXzp5akbOE2RSxqqJ7IMui5FrXu2bTv1QN1TJ8LJUwwc=
=63mr
-----END PGP SIGNATURE-----


Closed
L
L
Ludovic Courtès wrote on 18 Apr 2018 15:14
libfreeimage has undefined references
87lgdkrwl3.fsf@gnu.org
Hello Efraim,

It seems that commit a5d4c96b8d90b8bb87e07bd6a7be78991db91bc9 left
libfreeimage with some undefined references. For instance, the
‘configure’ script of ‘guile-sly’ fails like this:

Toggle snippet (33 lines)
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

Any ideas?

Thanks,
Ludo’.
E
E
Efraim Flashner wrote on 21 Apr 2018 23:53
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 28261@debbugs.gnu.org)
20180422065302.GK30951@macbook41
Attachment: file
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlrcMUsACgkQQarn3Mo9
g1GNOw/+KvGDE9GzAU4SOoWpL/STqNgJ1mDtNhdZx5QNtZ/rGeWxcUlQtakuoHWr
C7qRDaa+TCQ0mRM9J5oZkUfb76QY5q5CXCwN0+3Fa/WQzmoUVXVv7+bq0IlC4HSX
uuxyAM8dwcLTT4wEDwyX9ITLHKSBj3LZzTb5BA5ocjLuh4CjiqkLgEjxsFhaLHpR
Re7mOg+hC2itjWa64UOT9bFfEsRizl6ZDgB5a2aohOL2Q6kya1lxyOYoJckxsO8G
BpOotz4Nm8Zs27HJ9CXALw3h10YAr+BJrEEwJ72rhWXHzL0xtnVkcT+eOlJKGEGo
8QKk7eXhzMTn7nga5KWaiwrv32gDH09Zx3nm4NVIWCRBp1cWoFZqY3Od0DimocBN
NkDA3FOGBrFWbvbz7IopbT2J5YKAaO6J4mV45VcWRMq9kaVx900s6yVpZIWVJrrI
q7Sl/omauHefFd+BtWen6uLuVXbUMfUREMK6AgIFtQ/nP1jzweBHeobeH620rg6d
gYtt1aUSzI3JawYrKqsuswsOt4dGL9IMWrZcmPpDX81r6Cb9Yh1Yymv90ilG0SCR
4qRZCXMXoBUrkzft1edMSPdPS/cXesq9XegS+fZ2EzCaJK7qbt+trEIbc5Eftp4W
RigXypOyF9CHvUkx6YdtJsuuQR7MgeUgx4zBs4zS7aPWNAYytaM=
=o/Qg
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 23 Apr 2018 02:46
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 28261@debbugs.gnu.org)
87bmea45my.fsf@gnu.org
Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (48 lines)
> 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.

Yes, same on other platforms. The snippet above are the details that
guile-sly’s ‘config.log’ provides.

Thanks for looking into it!

Ludo’.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 28261@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 28261
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch