Public bug reported:

When linking program statically with libpci.a, it reported:
ld.lld: error: 
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libpci.a(access.o):
 symbol pci_fill_info@@LIBPCI_3.3 has undefined version LIBPCI_3.3
ld.lld: error: 
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libpci.a(access.o):
 symbol pci_fill_info@LIBPCI_3.0 has undefined version LIBPCI_3.0
ld.lld: error: 
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libpci.a(access.o):
 symbol pci_fill_info@LIBPCI_3.1 has undefined version LIBPCI_3.1
ld.lld: error: 
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libpci.a(access.o):
 symbol pci_fill_info@LIBPCI_3.2 has undefined version LIBPCI_3.2

However, static library should not contain versioning information(symver
section).

objdump showed these symbols:
00000000000004f0 g     F .text  0000000000000054 pci_fill_info@LIBPCI_3.0
00000000000004f0 g     F .text  0000000000000054 pci_fill_info@LIBPCI_3.1
00000000000004f0 g     F .text  0000000000000054 pci_fill_info@LIBPCI_3.2
00000000000004f0 g     F .text  0000000000000054 pci_fill_info@@LIBPCI_3.3

Probably PCI_SHARED_LIB is defined in static build. This issue existed
in all Ubuntu releases.

Thanks.

** Affects: pciutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831743

Title:
  libpci.a static library contains symver section

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/1831743/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to