Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoodbyeDPI requires specific compiler toolkit to compile successfully / GoodbyeDPI требует конкретный инструментарий компилятора для успешной сборки #759

Closed
1 task done
MichaelAgarkov opened this issue Dec 23, 2024 · 1 comment

Comments

@MichaelAgarkov
Copy link

MichaelAgarkov commented Dec 23, 2024

CAPTCHA

  • I understand I could be banned from the repository if I misusing issue section not for posting bugs, but for question or 'broken website' report. / Я понимаю, что меня могут заблокировать в репозитории, если я буду использовать раздел issue не для сообщений об ошибках, а для вопросов или сообщении о «неработающем веб-сайте».

Operating system / операционная система

Microsoft Windows [Version 10.0.19045.4780]

Describe the bug / Опишите ошибку программы

Здравствуйте, я пытался скомпилировать GoodbyeDPI вручную (чтобы иметь отладочные символы), и сделал всё как было указано в README, но какую бы среду (пробовал MinGW/MinGW-W64/Cygwin) я не использовал, у меня ошибки компиляции, при том все разные.

MinGW:

sh-3.1$ make CPREFIX= BIT64=1 WINDIVERTHEADERS=C:\Users\micha\Downloads\WinDivert\include WINDIVERTLIBS=C:\Users\micha\Downloads\WinDivert\x64
gcc -std=c99 -pie -fPIE -pipe -IC:UsersmichaDownloadsWinDivertinclude -LC:UsersmichaDownloadsWinDivertx64 -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wextra -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wno-format-nonliteral -Wshadow -Wstrict-aliasing=1 -Wnull-dereference -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wstringop-overflow=4 -Wformat-signedness -Wstrict-overflow=2 -Wcast-align=strict -Wfloat-equal -Wcast-align -Wsign-conversion  -c blackwhitelist.c -o blackwhitelist.o
gcc.exe: error: unrecognized command line option '-Wformat-overflow=2'; did you mean '-Wstrict-overflow='?
gcc.exe: error: unrecognized command line option '-Wformat-truncation=2'; did you mean '-Wline-truncation'?
gcc.exe: error: unrecognized command line option '-Wimplicit-fallthrough=3'; did you mean '-Wno-fallthrough'?
gcc.exe: error: unrecognized command line option '-Wstringop-overflow=4'; did you mean '-Wstrict-overflow='?
gcc.exe: error: unrecognized command line option '-Wcast-align=strict'; did you mean '-Wcast-align'?
make: *** [blackwhitelist.o] Error 1

MinGW-W64:

C:\Users\micha\Downloads\GoodbyeDPI\src>C:\mingw64\bin\mingw32-make.exe CPREFIX= BIT64=1 WINDIVERTHEADERS=C:\Users\micha\Downloads\WinDivert\include WINDIVERTLIBS=C:\Users\micha\Downloads\WinDivert\x64
gcc -std=c99 -pie -fPIE -pipe -IC:\Users\micha\Downloads\WinDivert\include -LC:\Users\micha\Downloads\WinDivert\x64 -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wextra -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wno-format-nonliteral -Wshadow -Wstrict-aliasing=1 -Wnull-dereference -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wstringop-overflow=4 -Wformat-signedness -Wstrict-overflow=2 -Wcast-align=strict -Wfloat-equal -Wcast-align -Wsign-conversion  -c blackwhitelist.c -o blackwhitelist.o
gcc: error: unrecognized command line option '-Wformat-overflow=2'; did you mean '-Wstrict-overflow='?
gcc: error: unrecognized command line option '-Wformat-truncation=2'; did you mean '-Wline-truncation'?
gcc: error: unrecognized command line option '-Wimplicit-fallthrough=3'; did you mean '-Wno-fallthrough'?
gcc: error: unrecognized command line option '-Wstringop-overflow=4'; did you mean '-Wstrict-overflow='?
gcc: error: unrecognized command line option '-Wcast-align=strict'; did you mean '-Wcast-align'?
mingw32-make: *** [makefile:48: blackwhitelist.o] Error 1

Cygwin:

sh-5.2$ make CPREFIX= BIT64=1 WINDIVERTHEADERS=C:\Users\micha\Downloads\WinDivert\include WINDIVERTLIBS=C:\Users\micha\Downloads\WinDivert\x64
gcc  blackwhitelist.o  dnsredir.o  fakepackets.o  goodbyedpi.o  service.o  ttltrack.o  utils/getline.o  utils/repl_str.o goodbyedpi-rc.o -fstack-protector -Wl,-O1,-pie,--dynamicbase,--nxcompat,--sort-common,--as-needed -Wl,--disable-auto-image-base -Wl,--high-entropy-va -Wl,--pic-executable,-e,mainCRTStartup -LC:UsersmichaDownloadsWinDivertx64 -lWinDivert -lws2_32 -l:libssp.a -s -o goodbyedpi.exe
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: unrecognized option '--high-entropy-va'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status
make: *** [goodbyedpi.exe] Error 1

Можете подсказать, какую конкретно среду компилятора вы используете для компиляции GoodbyeDPI? Заранее спасибо.

@MichaelAgarkov
Copy link
Author

Неважно, скомпилировалось под MSYS2 UCRT64, но это всё равно не было указано в README.

@MichaelAgarkov MichaelAgarkov closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant