[Gambas-user] getting Gambas version info across devices
Bruce
adamnt42 at gmail.com
Tue Mar 23 00:16:50 CET 2021
On 23/3/21 9:22 am, Benoît Minisini wrote:
> Le 22/03/2021 à 23:37, Bruce Steers a écrit :
>> What about that env arg that sets libdir, would that work?
>>
>> Cheers
>> BruceS
>>
>
> Normally 'chroot' should be enough, has 'gbc3' depends on the following
> libs only:
>
> linux-vdso.so.1 (0x00007ffee277d000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa6a6e86000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa6a6d37000)
> /lib64/ld-linux-x86-64.so.2 (0x00007fa6a70f1000)
>
> you can hardly use less.
>
Even atthat low a level I don;t think you can get a guarantee that
"that" version library works properly on "this" kernel. Also, if "that"
version changes (distro glibc upgrade) then possible instability can ensue.
It's probably a waste of your time, B, but there is documentation of the
ELF file header around which could give you an offset into the file
where the version is stored. Sadly though there is no guarantee that all
distros use the suggested convention.
b
More information about the User
mailing list