I’m trying to compile a binary compatible with Debian Bullseye on Debian Bookworm. I’ve already unpacked old Glibc/OpenSSL for Bullseye and tried to link against them:
But in the resulting binary there still are some symbols requiring Glibc 2.33:
0000000000000000 F *UND* 0000000000000000 lstat64@GLIBC_2.33
0000000000000000 F *UND* 0000000000000000 fstat64@GLIBC_2.33
0000000000000000 F *UND* 0000000000000000 stat64@GLIBC_2.33
I underestimated the problem… there are also much more symbols requiring Glibc 2.34:
0000000000000000 F *UND* 0000000000000000 pthread_join@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_rwlock_destroy@GLIBC_2.34
0000000000000000 w F *UND* 0000000000000000 __pthread_key_create@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_rwlock_rdlock@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_mutex_trylock@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_mutexattr_settype@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_setaffinity_np@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_kill@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_mutexattr_init@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_create@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 __libc_start_main@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_attr_getstacksize@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_rwlock_init@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_detach@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_mutexattr_destroy@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_setname_np@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_rwlock_unlock@GLIBC_2.34
0000000000000000 F *UND* 0000000000000000 pthread_rwlock_wrlock@GLIBC_2.34