missing symlink for libboost_program_options.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boost1.65.1 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The package is missing a symlink, so the linker doesn't find the library without prodding.
╭╴ (master *%=)╶╮
╰ [bug.out] jeff@birdsong:src $ dpkg -L libboost-
/.
/usr
/usr/lib
/usr/lib/
/usr/lib/
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/lintian
/usr/share/
/usr/share/
╭╴ (master *%=)╶╮
╰ [bug.out] jeff@birdsong:src $
Compiling against the library fails.
╭╴ (master *%=)╶╮
╰ jeff@birdsong:src $ g++ -ggdb3 -Wall -std=c++14 -o myname myname1.o ... mynameN.o -lprotobuf -lboost_
/usr/bin/
collect2: error: ld returned 1 exit status
╭╴ (master *%=)╶╮
╰ 1, jeff@birdsong:src $
Running strace (under "script foo.out") thus:
strace -f g++ -ggdb3 -Wall -std=c++14 -o myname myname1.o ... mynameN.o -lboost_
shows that the linker is looking for only these paths in /usr/lib/
╭╴ (master *%=)╶╮
╰ jeff@birdsong:src $ grep boost foo.out | grep /usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "/usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "/usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
╭╴ (master *%=)╶╮
╰ jeff@birdsong:src $ grep boost foo.out | grep /usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "/usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "/usr/lib/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
[pid 6715] stat("/
[pid 6715] openat(AT_FDCWD, "//usr/
╭╴ (master *%=)╶╮
╰ jeff@birdsong:src $
Adding this symlink fixes the problem:
jeff@birdsong:~ $ cd /usr/lib/
jeff@birdsong:
[sudo] password for jeff:
jeff@birdsong:
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libboost-
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: i3
Date: Thu Jun 14 10:39:31 2018
Dependencies:
gcc-8-base 8-20180414-1ubuntu2
libc6 2.27-3ubuntu1
libgcc1 1:8-20180414-
libstdc++6 8-20180414-1ubuntu2
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-10-23 (964 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: boost1.65.1
UpgradeStatus: Upgraded to bionic on 2018-06-14 (0 days ago)