Skip to content

Symbol __fgets_unlocked_chk and __strsep_g not found #3783

@binLep

Description

@binLep
mkdir build; cd build; cmake .. -DLARCH64=ON -DSTATICBUILD=ON --install-prefix=/local/usr/
  • BOX LOG
test  | [BOX64] Box64 v0.4.1 d3db6a002 built on Mar 17 2026 13:45:21
test  | [BOX64] Running on Loongson-3A6000 with 8 cores, pagesize: 16384
test  | [BOX64] Will use time-based emulation for RDTSC, even if hardware counters are available
test  | [BOX64] Will use software counter measured at 1.0 GHz emulating 2.0 GHz
test  | [BOX64] Detected 48bits at least of address space
test  | [BOX64] Warning, older then 2.34 pthread_kill not found, using current one
test  | [BOX64] Counted 19 Env var
test  | [BOX64] Library search path: 
test  | [BOX64] Binary search path: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
test  | [BOX64] Looking for /bin/sh
test  | [BOX64] argv[1]="/usr/bin/entrypoint.sh"
test  | [BOX64] argv[2]="initd"
test  | [BOX64] Rename process to "dash"
test  | [BOX64] Using native(wrapped) libc.so.6
test  | [BOX64] Using native(wrapped) ld-linux-x86-64.so.2
test  | [BOX64] Using native(wrapped) libpthread.so.0
test  | [BOX64] Using native(wrapped) libdl.so.2
test  | [BOX64] Using native(wrapped) libutil.so.1
test  | [BOX64] Using native(wrapped) libresolv.so.2
test  | [BOX64] Using native(wrapped) librt.so.1
test  | [BOX64] Running on Loongson-3A6000 with 8 cores, pagesize: 16384
test  | [BOX64] Will use time-based emulation for RDTSC, even if hardware counters are available
test  | [BOX64] Will use software counter measured at 1.0 GHz emulating 2.0 GHz
test  | [BOX64] Detected 48bits at least of address space
test  | [BOX64] Warning, older then 2.34 pthread_kill not found, using current one
test  | [BOX64] Counted 18 Env var
test  | [BOX64] Library search path: 
test  | [BOX64] Binary search path: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
test  | [BOX64] Looking for /usr/bin/initd
test  | [BOX64] argv[1]="-C"
test  | [BOX64] Running on Loongson-3A6000 with 8 cores, pagesize: 16384
test  | [BOX64] Will use time-based emulation for RDTSC, even if hardware counters are available
test  | [BOX64] Will use software counter measured at 1.0 GHz emulating 2.0 GHz
test  | [BOX64] Running on Loongson-3A6000 with 8 cores, pagesize: 16384
test  | [BOX64] [BOX64] Detected 48bits at least of address space
test  | Will use time-based emulation for RDTSC, even if hardware counters are available
test  | [BOX64] Will use software counter measured at 1.0 GHz emulating 2.0 GHz
test  | [BOX64] Warning, older then 2.34 pthread_kill not found, using current one
test  | [BOX64] Detected 48bits at least of address space
test  | [BOX64] Counted 18 Env var
test  | [BOX64] Library search path: 
test  | [BOX64] Binary search path: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:[BOX64] /sbin/:Warning, older then 2.34 pthread_kill not found, using current one
test  | /bin/
test  | [BOX64] Looking for /usr/bin/awk
test  | [BOX64] Counted 18 Env var
test  | [BOX64] Library search path: 
test  | [BOX64] Binary search path: [BOX64] ./:argv[1]="/^(default|cfg_file)[[:space:]]+dataDir[[:space:]]+/ {print $NF; exit}"
test  | bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
test  | [BOX64] Looking for /usr/bin/sed
test  | [BOX64] argv[1]="s|/*$||"
test  | [BOX64] Rename process to "mawk"
test  | [BOX64] Using native(wrapped) libm.so.6
test  | [BOX64] Rename process to "sed"
test  | [BOX64] Using native(wrapped) libc.so.6
test  | [BOX64] Using native(wrapped) ld-linux-x86-64.so.2
test  | [BOX64] Using emulated /lib/x86_64-linux-gnu/libacl.so.1
test  | [BOX64] Using native(wrapped) libpthread.so.0
test  | [BOX64] Using native(wrapped) libdl.so.2
test  | [BOX64] Using native(wrapped) libutil.so.1
test  | [BOX64] Using native(wrapped) libresolv.so.2
test  | [BOX64] Using native(wrapped) librt.so.1
test  | [BOX64] Using emulated /lib/x86_64-linux-gnu/libselinux.so.1
test  | [BOX64] Using native(wrapped) libc.so.6
test  | [BOX64] Using native(wrapped) ld-linux-x86-64.so.2
test  | [BOX64] Using native(wrapped) libpthread.so.0
test  | [BOX64] Using native(wrapped) libdl.so.2
test  | [BOX64] Using native(wrapped) libutil.so.1
test  | [BOX64] Using native(wrapped) libresolv.so.2
test  | [BOX64] Using native(wrapped) librt.so.1
test  | [BOX64] Using emulated /lib/x86_64-linux-gnu/libpcre2-8.so.0
test  | [BOX64] Error: Symbol __fgets_unlocked_chk not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff01028ec0 (0x6680) in /lib/x86_64-linux-gnu/libselinux.so.1 (optver=10 / GLIBC_2.4)
test  | [BOX64] Error: relocating Plt symbols in elf libselinux.so.1
test  | [BOX64] Error initializing needed lib libselinux.so.1
test  | [BOX64] Error loading one of needed lib
test  | [BOX64] Error: Loading needed libs in elf /usr/bin/sed
test  | [BOX64] Rename process to "initd"
test  | [BOX64] Using native(wrapped) libpthread.so.0
test  | [BOX64] Using native(wrapped) libdl.so.2
test  | [BOX64] Using native(wrapped) librt.so.1
test  | [BOX64] Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
test  | [BOX64] Using native(wrapped) libm.so.6
test  | [BOX64] Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
test  | [BOX64] Using native(wrapped) libc.so.6
test  | [BOX64] Using native(wrapped) ld-linux-x86-64.so.2
test  | [BOX64] Using native(wrapped) libutil.so.1
test  | [BOX64] Error: PltResolver: Symbol  __strsep_g(optver 4: __strsep_g@GLIBC_2.2.5) not found, cannot apply R_X86_64_JUMP_SLOT 0x2b1f8d8 in /usr/local/bin/initd (local_maplib=(nil), global maplib=0x65180da0, deepbind=0)
test  | [BOX64] endBox64: waiting emu workers to exit (n=1)
test  | [BOX64] endBox64: 1 emu workers still alive after 2000ms, skip unload/free to avoid UAF crash
Gracefully Stopping... press Ctrl+C again to force
Container test Stopping 
Container test Stopped 
test exited with code 255                                                                                                                                                                                                       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions