[Bug 2045844] Re: FTBFS oprofile in noble

Sergio Durigan Junior 2045844 at bugs.launchpad.net
Thu Dec 7 22:01:38 UTC 2023


Thank you, Sudip.

The changes you're proposing LGTM, but the d/changelog entry could be
improved.  In order to not waste time with a back-and-forth exchange of
messages regarding this (mostly cosmetic) adjustment, I took the liberty
to write the entry myself while still keeping you as the author.  Here's
what I wrote:

oprofile (1.4.0-0ubuntu8) noble; urgency=medium

  * Fix FTBFS due to libbfd's requirement to be linked against libzstd
    and libsframe. (LP: #2045844)
    - d/control: Build-Depend on libzstd-dev.
    - d/p/static-libbfd.patch: Check for -lzstd and -lsframe.

 -- Sudip Mukherjee <sudipm.mukherjee at gmail.com>  Thu, 07 Dec 2023
12:21:47 +0000

I have also incorporated your changes using git-ubuntu and created a
commit (again, with you listed as author) to make sure that we carry
this in the rich history.

Uploaded, and therefore unsubscribed ubuntu-sponsors.  Thank you.

** Changed in: oprofile (Ubuntu)
       Status: New => Fix Committed

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

Title:
  FTBFS oprofile in noble

Status in oprofile package in Ubuntu:
  Fix Committed

Bug description:
  The package fails to build in noble with the following error log:

  ---------
  checking for cplus_demangle in -liberty... yes
  checking for xcalloc... yes
  checking for xmemdup... yes
  checking for dlopen in -ldl... yes
  checking for main in -lintl... no
  checking for compress in -lz... yes
  checking for bfd_close... no
  configure: error: libbfd library not found
  make: *** [debian/rules:17: config-stamp] Error 1
  dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
  --------------------------------------------------------------------------------
  Build finished at 2023-12-04T10:52:06Z

  Finished
  --------
  ---------------

  The related config.log has following errors
  --------
  configure:19292: checking for bfd_close
  configure:19292: x86_64-linux-gnu-gcc -o conftest -g -O2 -ffile-prefix-map=/build/oprofile-8aGXH1/oprofile-1.4.0=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/oprofile-8aGXH1/oprofile-1.4.0=/usr/src/oprofile-1.4.0-0ubuntu7 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro conftest.c /usr/lib/x86_64-linux-gnu/libbfd.a -liberty -lpopt  -ldl -lz >&5
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elfxx-x86.o): in function `_bfd_x86_elf_write_sframe_plt':
  ./builddir-single/bfd/../../bfd/elfxx-x86.c:1991:(.text+0xaa9): undefined reference to `sframe_encoder_write'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1997:(.text+0xade): undefined reference to `sframe_encoder_free'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elfxx-x86.o): in function `_bfd_x86_elf_create_sframe_plt':
  ./builddir-single/bfd/../../bfd/elfxx-x86.c:1886:(.text+0xbe6): undefined reference to `sframe_encode'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1894:(.text+0xbf6): undefined reference to `sframe_calc_fre_type'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1895:(.text+0xc01): undefined reference to `sframe_fde_create_func_info'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1903:(.text+0xc1b): undefined reference to `sframe_encoder_add_funcdesc_v2'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1914:(.text+0xc68): undefined reference to `sframe_encoder_add_fre'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1886:(.text+0xcce): undefined reference to `sframe_encode'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1894:(.text+0xcde): undefined reference to `sframe_calc_fre_type'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1895:(.text+0xce9): undefined reference to `sframe_fde_create_func_info'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1886:(.text+0xd57): undefined reference to `sframe_encode'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1894:(.text+0xd67): undefined reference to `sframe_calc_fre_type'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1895:(.text+0xd72): undefined reference to `sframe_fde_create_func_info'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1926:(.text+0xd90): undefined reference to `sframe_fde_create_func_info'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1932:(.text+0xdaf): undefined reference to `sframe_encoder_add_funcdesc_v2'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1945:(.text+0xdf6): undefined reference to `sframe_encoder_add_fre'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elfxx-x86.c:1886:(.text+0xe4e): undefined reference to `sframe_encode'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `_bfd_elf_parse_sframe':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:220:(.text+0x105): undefined reference to `sframe_decode'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `sframe_decoder_init_func_bfdinfo':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:107:(.text+0x11e): undefined reference to `sframe_decoder_get_num_fidx'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `_bfd_elf_parse_sframe':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:229:(.text+0x20e): undefined reference to `sframe_decoder_free'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `_bfd_elf_discard_section_sframe':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:278:(.text+0x2ec): undefined reference to `sframe_decoder_get_num_fidx'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `_bfd_elf_merge_section_sframe':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:396:(.text+0x524): undefined reference to `sframe_decoder_get_abi_arch'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:397:(.text+0x52e): undefined reference to `sframe_encoder_get_abi_arch'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:406:(.text+0x54f): undefined reference to `sframe_decoder_get_version'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:407:(.text+0x559): undefined reference to `sframe_encoder_get_version'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:422:(.text+0x57b): undefined reference to `sframe_decoder_get_num_fidx'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:423:(.text+0x589): undefined reference to `sframe_encoder_get_num_fidx'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:437:(.text+0x644): undefined reference to `sframe_decoder_get_funcdesc_v2'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:468:(.text+0x68e): undefined reference to `sframe_decoder_get_hdr_size'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:494:(.text+0x718): undefined reference to `sframe_encoder_add_funcdesc_v2'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:504:(.text+0x754): undefined reference to `sframe_decoder_get_fre'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:506:(.text+0x76d): undefined reference to `sframe_encoder_add_fre'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:514:(.text+0x7b4): undefined reference to `sframe_decoder_free'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:358:(.text+0x985): undefined reference to `sframe_decoder_get_abi_arch'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:359:(.text+0x995): undefined reference to `sframe_decoder_get_fixed_fp_offset'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:360:(.text+0x9a4): undefined reference to `sframe_decoder_get_fixed_ra_offset'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:366:(.text+0x9c9): undefined reference to `sframe_encode'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(elf-sframe.o): in function `_bfd_elf_write_section_sframe':
  ./builddir-single/bfd/../../bfd/elf-sframe.c:544:(.text+0xa98): undefined reference to `sframe_encoder_write'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/elf-sframe.c:559:(.text+0xac4): undefined reference to `sframe_encoder_free'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(compress.o): in function `decompress_contents':
  ./builddir-single/bfd/../../bfd/compress.c:514:(.text+0x185): undefined reference to `ZSTD_decompress'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/compress.c:516:(.text+0x18d): undefined reference to `ZSTD_isError'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libbfd.a(compress.o): in function `bfd_compress_section_contents':
  ./builddir-single/bfd/../../bfd/compress.c:653:(.text+0x128f): undefined reference to `ZSTD_compress'
  /usr/bin/ld: ./builddir-single/bfd/../../bfd/compress.c:658:(.text+0x129c): undefined reference to `ZSTD_isError'
  collect2: error: ld returned 1 exit status
  configure:19292: $? = 1

  -------

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




More information about the Ubuntu-sponsors mailing list