[Bug 1831743] [NEW] libpci.a static library contains symver section

Jiaxun Yang 1831743 at bugs.launchpad.net
Wed Jun 5 13:28:39 UTC 2019


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 at 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 at 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 at 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 at LIBPCI_3.0
00000000000004f0 g     F .text  0000000000000054 pci_fill_info at LIBPCI_3.1
00000000000004f0 g     F .text  0000000000000054 pci_fill_info at 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
Foundations Bugs, which is subscribed to pciutils in Ubuntu.
https://bugs.launchpad.net/bugs/1831743

Title:
  libpci.a static library contains symver section

Status in pciutils package in Ubuntu:
  New

Bug description:
  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 at 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 at 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 at 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 at LIBPCI_3.0
  00000000000004f0 g     F .text  0000000000000054 pci_fill_info at LIBPCI_3.1
  00000000000004f0 g     F .text  0000000000000054 pci_fill_info at 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.

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



More information about the foundations-bugs mailing list