[Rpm-maint] [rpm-software-management/rpm] configure.ac: reference zlib when checking libmagic (#118)
jdknight-rockwellcollins
notifications at github.com
Sat Jan 7 00:11:09 UTC 2017
When attempting to check for `magic_open` in libmagic (aka file),
linking can fail as libmagic and zlib may have been statically built:
configure:20636: .../arm-linux-gcc -std=gnu99 -o conftest ... conftest.c -lmagic -lpthread >&5
conftest.c:42:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
...
.../sysroot/usr/lib/libmagic.a(compress.o): In function `uncompresszlib':
compress.c:(.text+0x190): undefined reference to `inflateInit_'
compress.c:(.text+0x1a8): undefined reference to `inflateInit2_'
compress.c:(.text+0x1bc): undefined reference to `inflate'
compress.c:(.text+0x1d4): undefined reference to `inflateEnd'
compress.c:(.text+0x1fc): undefined reference to `zError'
collect2: error: ld returned 1 exit status
...
configure:20645: result: no
configure:20654: error: missing required library 'libmagic'
The following adds the rpm-dependent zlib library to ensure the check
for `magic_open` can find the dependent decompression methods.
Signed-off-by: James Knight <james.knight at rockwellcollins.com>
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/118
-- Commit Summary --
* configure.ac: reference zlib when checking libmagic
-- File Changes --
M configure.ac (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/118.patch
https://github.com/rpm-software-management/rpm/pull/118.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/118
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170106/aa6a9778/attachment-0001.html>
More information about the Rpm-maint
mailing list