Skip to content

cli fails to run after bpkg install: missing libcutl-1.11.so #3

@wroyca

Description

@wroyca

After building and installing cli with bpkg, the resulting cli executable fails to start due to a missing runtime dependency (libcutl-1.11.so).

Steps to reproduce:

bpkg create cc \
  config.cxx=g++ \
  config.cc.coptions=-O3 \
  config.install.root=/usr \
  config.install.sudo=sudo

bpkg add https://github.com/codesynthesis-com/cli.git
bpkg fetch
bpkg build cli
bpkg install -a

...
pc libcutl-1.11.0/libcutl/libs{cutl} -> libcutl-1.11.0/libcutl/pcs{cutl}
ld cli-1.2.0/cli/exe{cli}            
install libcutl-1.11.0/libcutl/libs{cutl} -> /usr/lib/
[sudo] password for wroy: 
install cli-1.2.0/cli/exe{cli} -> /usr/bin/
install -d /usr/share/doc/cli/
install cli-1.2.0/doc/css{default} -> /usr/share/doc/cli/
install cli-1.2.0/doc/xhtml{cli-guide} -> /usr/share/doc/cli/
install cli-1.2.0/doc/pregenerated/man1{cli} -> /usr/share/man/man1/
install cli-1.2.0/doc/pregenerated/xhtml{cli} -> /usr/share/doc/cli/
install cli-1.2.0/doc{NEWS} -> /usr/share/doc/cli/
install cli-1.2.0/doc{README} -> /usr/share/doc/cli/
install cli-1.2.0/legal{LICENSE} -> /usr/share/doc/cli/
install cli-1.2.0/manifest{manifest} -> /usr/share/doc/cli/
installed cli/1.2.0   

Run:

cli --version

Result:

cli: error while loading shared libraries: libcutl-1.11.so: cannot open shared object file: No such file or directory
Linux fedora 6.17.10-300.fc43.x86_64
build2 0.18.0-a.0.82712fd2b433
bpkg 0.18.0-a.0.d8b5dce4bcfe
bdep 0.18.0-a.0.46c060102f11
libbutl 0.18.0-a.0.a7620d8f85fc
libbpkg 0.18.0-a.0.425f9913356e
libbutl 0.18.0-a.0.a7620d8f85fc

I can also confirm that libcutl is installed:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions