Re: [PATCH bpf-next] bpf, vmtest: Build test_progs and friends as statically linked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/31/23 9:02 PM, Andrii Nakryiko wrote:
On Fri, May 26, 2023 at 3:47 PM Daniel Borkmann <daniel@xxxxxxxxxxxxx> wrote:

Small fix for vmtest.sh that I've been carrying locally for quite a while
now in order to work around the following linker issue:

   # ./vmtest.sh -- ./test_progs -t lsm
   [...]
   + ip link set lo up
   + [ -x /etc/rcS.d/S50-startup ]
   + /etc/rcS.d/S50-startup
   ./test_progs -t lsm
   ./test_progs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./test_progs)
   ./test_progs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./test_progs)
   [    1.356497] ACPI: PM: Preparing to enter system sleep state S5
   [    1.358950] reboot: Power down
   [...]

With the specified TRUNNER_LDFLAGS out of vmtest to force static linking
runners like test_progs/test_maps/etc work just fine.

Should we make this a command line option to the vmtest.sh script
instead? I, for one, can't even successfully build on my machine with
this, probably due to missing some -static library package (though I
did install libzstd-static). I'm getting:

Interesting, in my case it's the other way round, but yeah that could work
as well.

Thanks,
Daniel




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux