You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Johnny! it's me again ,
last time I followed your instruction #2 and upgrade the gcc to higher version.
I still can not make it work, post them bellow.
or would you like to tell me your environment/version that would work?
I really appreciate your patience and help!
#g++ --version
g++ (Debian 13.2.0-13) 13.2.0
clang14
root@457ba67e0ebc:/# uname -a
Linux 457ba67e0ebc 6.6.16-linuxkit #1 SMP PREEMPT_DYNAMIC Fri Feb 16 11:55:08 UTC 2024 aarch64 GNU/Linux
I compile it with this and got error , I tried change the code and add link the -lc, and change the order.
root@ee19b7088f10:~/workspace/gmloader-next# grep -R __vsprintf .
....
./build/aarch64-linux-gnu/thunks/libc/impl_header.h:extern ABI_ATTR int __vsprintf_chk_impl(char *, int, size_t, const char *, va_list);
./build/aarch64-linux-gnu/thunks/libc/impl_tab.h:NO_THUNK("__vsprintf_chk", (uintptr_t)&__vsprintf_chk_impl),
....
./thunks/libc/fortify.cpp:// Runtime implementation of __builtin____vsprintf_chk (used directly by compiler, not in headers).
./thunks/libc/fortify.cpp:extern "C" int ABI_ATTR __vsprintf_chk_impl(char* dst, int /*flags*/,
./thunks/libc/fortify.cpp: int result = __vsprintf_chk_impl(dst, flags, dst_len_from_compiler, format, va);
./thunks/libc/stdio.cpp:extern int __vsprintf_chk(char *, int, size_t, const char *, va_list);
./thunks/libc/stdio.cpp:ABI_ATTR int __vsprintf_chk_impl(char * s, int flag, size_t slen, const char * format, va_list args)
./thunks/libc/stdio.cpp: return __vsprintf_chk(s, flag, slen, format, args);
./thunks/libc/symtab:__vsprintf_chk
headers ,and no __vsprintf available
root@ee19b7088f10:~/workspace/gmloader-next# grep vsprintf /usr/include/*.h
/usr/include/stdio.h:extern int vsprintf (char *__restrict __s, const char *__restrict __format,
/usr/include/zlib.h: zlib was compiled with the insecure functions sprintf() or vsprintf(),
/usr/bin/ld: build/aarch64-linux-gnu/thunks/libc/libc_table.cpp.o:(.data.rel+0xbe8): undefined reference to `at_quick_exit'
/usr/bin/ld: build/aarch64-linux-gnu/thunks/libc/libc_table.cpp.o:(.data.rel+0xbf8): undefined reference to `atexit'
/usr/bin/ld: build/aarch64-linux-gnu/thunks/libc/libc_table.cpp.o:(.data.rel+0x2338): undefined reference to `pthread_atfork'
pthread_atfork can probably be defined as a _impl stub (search for the _impl functions on the libc thunks folder to see examples, anything with a _impl suffix in these is picked up and exported automatically). pthread_atfork and atexit however are odd, seems like something on your compiler is wrong? You can also export stubs for them with _impl since they shouldnt be too important here.
or would you like to tell me your environment/version that would work?
I build using an Ubuntu 19.04 WSL2 instance with a few package backports (sdl2.18.x, cmake, etc) - I have yet to publish a guide on building these from scratch.
I really appreciate your patience and help!
I also appreciate the enthusiasm, hope we can get it to work for you :)
Hello, Johnny! it's me again ,
last time I followed your instruction #2 and upgrade the gcc to higher version.
I still can not make it work, post them bellow.
or would you like to tell me your environment/version that would work?
I really appreciate your patience and help!
I compile it with this and got error , I tried change the code and add link the -lc, and change the order.
The following is something I checked do not know if it might be useful .
I think it's there but mayby libc_hidden_proto? ref to : https://github.com/lattera/glibc/blob/master/include/stdio.h#L45
check the headers :
check the refrence:
headers ,and no __vsprintf available
here
The text was updated successfully, but these errors were encountered: