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.kni...@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
_______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint