FS#74092 - [libnsbmp] 0.1.6-3 cannot be linked against
Attached to Project:
Community Packages
Opened by Peter F (peterfab9845) - Friday, 11 March 2022, 06:24 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 14 March 2022, 10:03 GMT
Opened by Peter F (peterfab9845) - Friday, 11 March 2022, 06:24 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 14 March 2022, 10:03 GMT
|
Details
Description:
As of libnsbmp-0.1.6-3, the library archive /usr/lib/libnsbmp.a does not contain any of the library code, causing linking to fail when attempting to use the library. Using objdump on src_libnsbmp.o, contained in this archive, the symbol table only contains one item (__gnu_lto_slim), and the .text section is zero bytes. Additional info: * package version(s): libnsbmp 0.1.6-3 * config and/or log files etc. Symbol table of src_libnsbmp.o in version 0.1.6-3: src_libnsbmp-3.o: file format elf64-x86-64 SYMBOL TABLE: 0000000000000001 O *COM* 0000000000000001 __gnu_lto_slim There should be several symbols such as bmp_create, bmp_analyse, and bmp_decode. * link to upstream bug report, if any N/A Forum post showing an example of trying to link against the library: https://bbs.archlinux.org/viewtopic.php?id=274155 Steps to reproduce: $ ar x /usr/lib/libnsbmp.a $ objdump -t src_libnsbmp.o |
This task depends upon
The static library is installed instead of the shared library. Add COMPONENT_TYPE=lib-shared to the make call in package and the shared library is installed and a static library will not be built or packaged.
Even with both -ffat-lto-objects and COMPONENT_TYPE=lib-shared, no .a file is packaged here.
Here's the WIP PKGBUILD: http://ix.io/3Sab
Is there a reason this package can not supply a shared library?
Edit:
See shared.diff and static.diff
static.diff (0.8 KiB)
Without options=(staticlibs), the .a file is not included. I thought netsurf might need the static library when building, but I'll double check.