Open florianHarmuth opened 9 months ago
I'm not seeing this problem when i try it on x86-64, though i do see some surprising complaints from LD_DEBUG=libs
, which i don't understand):
0 dkg@alice:~$ date; LD_DEBUG=libs LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 FAKETIME='2023-10-10 01:01:01' date
Fri Oct 20 05:41:22 PM EDT 2023
2395154: find library=libc.so.6 [0]; searching
2395154: search cache=/etc/ld.so.cache
2395154: trying file=/lib/x86_64-linux-gnu/libc.so.6
2395154:
2395154: find library=libm.so.6 [0]; searching
2395154: search cache=/etc/ld.so.cache
2395154: trying file=/lib/x86_64-linux-gnu/libm.so.6
2395154:
2395154:
2395154: calling init: /lib64/ld-linux-x86-64.so.2
2395154:
2395154:
2395154: calling init: /lib/x86_64-linux-gnu/libc.so.6
2395154:
2395154:
2395154: calling init: /lib/x86_64-linux-gnu/libm.so.6
2395154:
2395154:
2395154: calling init: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
2395154:
2395154: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1: error: symbol lookup error: undefined symbol: __ftime (fatal)
2395154: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1: error: symbol lookup error: undefined symbol: timer_settime, version GLIBC_2.2 (fatal)
2395154: /usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1: error: symbol lookup error: undefined symbol: timer_gettime, version GLIBC_2.2 (fatal)
2395154:
2395154: initialize program: date
2395154:
2395154:
2395154: transferring control: date
2395154:
Tue Oct 10 01:01:01 AM EDT 2023
0 dkg@alice:~$
I can try to dig up access to a 32-bit armel machine if that would be useful for testing.
Having same issue with armv7:
# ✅ amd64
$ docker run --rm --platform linux/amd64 debian bash -c \
'apt update &> /dev/null && apt install -y faketime &>/dev/null && faketime "2030-11-02 12:47:00" date'
Sat Nov 2 12:47:00 UTC 2030
# ✅ arm64
$ docker run --rm --platform linux/arm/v8 debian bash -c \
'apt update &> /dev/null && apt install -y faketime &>/dev/null && faketime "2030-11-02 12:47:00" date'
Sat Nov 2 12:47:00 UTC 2030
# ❌ arm32
$ docker run --rm --platform linux/arm/v7 debian bash -c \
'apt update &> /dev/null && apt install -y faketime &>/dev/null && faketime "2030-11-02 12:47:00" date'
Sat Mar 30 00:06:22 UTC 2024
Hello all, I am trying to use libfaketime (0.9.10-2.1) on a debian based system but it doesn't work as expected.
After adding LD_DEBUG flags I see the following output:
Any ideas how to solve this problem?
This problem can also be reproduced in a docker container:
Regards, flo