https://bugs.winehq.org/show_bug.cgi?id=55297
Bug ID: 55297 Summary: dlls/ntdll/unix fails to build with gcc-10 and AddressSanitizer Product: Wine Version: 8.13 Hardware: x86-64 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Debian
Building Wine with AddressSanitizer enabled fails in dlls/ntdll/unix with pthread errors. To reproduce:
#!/bin/bash
export ASAN_OPTIONS=detect_leaks=0 export CFLAGS="-O0 -g -fsanitize=address" export LDFLAGS="-fsanitize=address" ./configure make
...
/usr/bin/ld: dlls/ntdll/unix/loader.o: in function `init_paths': /home/austin/wine/dlls/ntdll/unix/loader.c:618: undefined reference to `dladdr' /usr/bin/ld: dlls/ntdll/unix/loader.o: in function `dlopen_dll': /home/austin/wine/dlls/ntdll/unix/loader.c:1166: undefined reference to `dlerror' /usr/bin/ld: /home/austin/wine/dlls/ntdll/unix/loader.c:1170: undefined reference to `dlsym' /usr/bin/ld: dlls/ntdll/unix/thread.o: in function `start_thread': /home/austin/wine/dlls/ntdll/unix/thread.c:1102: undefined reference to `pthread_setspecific'