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

Launchpad Bug Tracker 1831743 at bugs.launchpad.net
Tue Apr 23 19:53:23 UTC 2024


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: pciutils (Ubuntu)
       Status: New => Confirmed

-- 
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:
  Confirmed

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