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
I tried build the gpac latest commit (9a79be3, Fri Jan 14 19:28:16 2022) with sanitizer enabled. However, the compilation failed due to undefined reference to _DYNAMIC.
Detailed fail results are sth like the following:
make[1]: Leaving directory '/src/projects/gpac-9a79be3f64/gpac/src'
make -C applications all
make[1]: Entering directory '/src/projects/gpac-9a79be3f64/gpac/applications'set -e;foriin gpac mp4box ;do make -C $i all;done
make[2]: Entering directory '/src/projects/gpac-9a79be3f64/gpac/applications/gpac'
CC main.c
afl-cc ++3.12c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
SanitizerCoveragePCGUARD++3.12c
[+] Instrumented 1898 locations with no collisions (non-hardened mode).
afl-cc ++3.12c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
/usr/bin/ld: /usr/lib/llvm-12/lib/clang/12.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors_vfork.S.o): warning: common of `__interception::real_vfork' overridden by definition from /usr/lib/llvm-12/lib/clang/12.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_interceptors.cpp.o)/usr/bin/ld: /usr/lib/llvm-12/lib/clang/12.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_linux.cpp.o): in function `__asan::AsanDoesNotSupportStaticLinkage()':(.text._ZN6__asan31AsanDoesNotSupportStaticLinkageEv+0x3): undefined reference to `_DYNAMIC'clang: error: linker command failed with exit code 1 (use -v to see invocation)make[2]: *** [Makefile:56: gpac] Error 1make[2]: Leaving directory '/src/projects/gpac-9a79be3f64/gpac/applications/gpac'make[1]: *** [Makefile:41: apps] Error 2
I mainly follow this wiki and here are the build commands:
./configure --static-mp4box --prefix=./install --enable-sanitizer --enable-afl --enable-afl-clang --cc=afl-clang-fast --cxx=afl-clang-fast++
make
May you help on this? Thank you.
The text was updated successfully, but these errors were encountered:
--static-bin (new name for --static-mp4box) will generate a complete static executable (except on osx), not compatible with asan usage. I patched the configure to throw a warning and disable static build when asan is used.
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I tried build the gpac latest commit (9a79be3, Fri Jan 14 19:28:16 2022) with sanitizer enabled. However, the compilation failed due to undefined reference to _DYNAMIC.
Detailed fail results are sth like the following:
I mainly follow this wiki and here are the build commands:
May you help on this? Thank you.
The text was updated successfully, but these errors were encountered: