Project

General

Profile

Bug #2408

[perf] error while loading shared libraries: libperl.so

glumpo - over 4 years ago - . Updated over 4 years ago.

Status:
fixed
Priority:
broken
Assignee:
% Done:

100%


Description

Running something like perf -v I get error message

perf: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

If I made a link like this

sudo ln -s /usr/lib/perl5/5.30/core_perl/CORE/libperl.so /usr/lib/perf/libperl.so

everything works fine

History

#1

Updated by bill-auger over 4 years ago

  • Priority changed from bug to broken
  • Status changed from unconfirmed to confirmed
$ pkgfile -l perl | grep libperl
core/perl    /usr/lib/perl5/5.30/core_perl/CORE/libperl.so

$ file /usr/lib/perl5/5.30/core_perl/CORE/libperl.so 
/usr/lib/perl5/5.30/core_perl/CORE/libperl.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=ea1ebe26378af4a8545d2333ef2e6c4c0919d094, not stripped

i tried building 'perf' v5.2 but it has -Werror warnings

  CC       libusbip_la-usbip_device_driver.lo
In file included from /usr/include/string.h:494,
                 from usbip_device_driver.c:13:
In function ‘strncpy’,
    inlined from ‘read_usb_vudc_device’ at usbip_device_driver.c:94:2:
/usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘read_usb_vudc_device’ at usbip_device_driver.c:113:2:
/usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 32 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:471: libusbip_la-usbip_device_driver.lo] Error 1
make[2]: Leaving directory '/code/packages/abslibre/libre/linux-libre-tools/src/linux-5.2/tools/usb/usbip/libsrc'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: Leaving directory '/code/packages/abslibre/libre/linux-libre-tools/src/linux-5.2/tools/usb/usbip'
make: *** [Makefile:365: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
#2

Updated by ovruni over 4 years ago

  • Assignee set to ovruni
#3

Updated by ovruni over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from confirmed to fixed

Also available in: Atom PDF