I have this program working on FreeBSD-12.3 running on metal.
However, on another system running FreeBSD-12.3p2 in a Jail
The same binary reports a missing library:
ldd reports this:
Any ideas of what I have tripped over? Is this somehow related to the second host being in a Jail?
Code:
freebsd-version
12.3-RELEASE-p2
Code:
[root@vhost01 ~ (master)]# !ldd
ldd /usr/local/bin/gpcl6 | sort
libICE.so.6 => /usr/local/lib/libICE.so.6 (0x801c46000)
libSM.so.6 => /usr/local/lib/libSM.so.6 (0x801c3c000)
. . .
libstdc++.so.6 => /usr/local/lib/gcc10/libstdc++.so.6 (0x80201a000)
. . .
[root@vhost01 ~ (master)]# ls -l /usr/local/lib/gcc10/libstdc++.so.6
lrwxr-xr-x 1 root wheel 19 Nov 23 01:14 /usr/local/lib/gcc10/libstdc++.so.6 -> libstdc++.so.6.0.28
[root@vhost01 ~ (master)]# ls -l /usr/local/lib/gcc10/libstdc++.so.6.0.28
-rwxr-xr-x 1 root wheel 1977216 Nov 23 01:14 /usr/local/lib/gcc10/libstdc++.so.6.0.28
However, on another system running FreeBSD-12.3p2 in a Jail
Code:
[root@sshpipe-2 ~]# freebsd-version
12.3-RELEASE-p2
The same binary reports a missing library:
Code:
g[root@sshpipe-2 ~]# lpcl6 -h
ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "gpcl6"
ldd reports this:
Code:
[root@sshpipe-2 ~]# ldd /usr/local/bin/gpcl6 | sort
libICE.so.6 => /usr/local/lib/libICE.so.6 (0x801c46000)
libSM.so.6 => /usr/local/lib/libSM.so.6 (0x801c3c000)
. . .
libstdc++.so.6 => not found (0)
. . .
[/CODE}
But, as far as I can tell, that library is present in the same location as that on the first system.
[CODE]
ls -l /usr/local/lib/gcc10/libstdc++.so.6
lrwxr-xr-x 1 root wheel 19 Feb 18 17:24 /usr/local/lib/gcc10/libstdc++.so.6 -> libstdc++.so.6.0.28
[root@sshpipe-2 ~]# ls -l /usr/local/lib/gcc10/libstdc++.so.6.0.28
-rwxr-xr-x 1 root wheel 1977216 Feb 18 17:16 /usr/local/lib/gcc10/libstdc++.so.6.0.28