#ld.lld: undefined reference with SDL3 in Release build

1 messages · Page 1 of 1 (latest)

umbral prairie
#

Yesterday i update Arch, now try build in release and get many link errors

error: ld.lld: undefined reference: pthread_join@GLIBC_2.34
    note: referenced by /usr/lib/libSDL3.so (disallowed by --no-allow-shlib-undefined)
error: ld.lld: undefined reference: dlerror@GLIBC_2.34
    note: referenced by /usr/lib/libSDL3.so (disallowed by --no-allow-shlib-undefined)
error: ld.lld: undefined reference: __strlcpy_chk@GLIBC_2.38
    note: referenced by /usr/lib/libSDL3.so (disallowed by --no-allow-shlib-undefined)

but in debug(llvm and native) it's ok and i get window with my program, all works

umbral prairie
#

With -fallow-shlib-undefined works, but the reason is unclear

hearty ferry
#

What version of glibc do you have on you machine. It's probably newer then the one that was linked against sdl