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

Client Compilation fails on Apple Silicon #187

Open
RiRa12621 opened this issue Dec 7, 2023 · 0 comments · May be fixed by #188
Open

Client Compilation fails on Apple Silicon #187

RiRa12621 opened this issue Dec 7, 2023 · 0 comments · May be fixed by #188

Comments

@RiRa12621
Copy link

RiRa12621 commented Dec 7, 2023

Description

Compiling the client using the make command fails on apple Silicon based Macs

How to reproduce

  • git clone https://github.com/iagox86/dnscat2.git
  • cd dnscat2/client
  • make

Expected behaviour

Compiles the client

Observed behaviour

$ make
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o controller/packet.o controller/packet.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o controller/session.o controller/session.c
controller/session.c:187:22: warning: expression which evaluates to zero treated as a null pointer constant of type 'uint8_t *' (aka 'unsigned char *') [-Wnon-literal-null-conversion]
              return FALSE;
                     ^~~~~
1 warning generated.
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o controller/controller.o controller/controller.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o drivers/driver.o drivers/driver.c
cc -c --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g -o drivers/command/driver_command.o drivers/command/driver_command.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o drivers/command/command_packet.o drivers/command/command_packet.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o drivers/driver_console.o drivers/driver_console.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o drivers/driver_exec.o drivers/driver_exec.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o drivers/driver_ping.o drivers/driver_ping.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o libs/buffer.o libs/buffer.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o libs/crypto/encryptor.o libs/crypto/encryptor.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o libs/crypto/micro-ecc/uECC.o libs/crypto/micro-ecc/uECC.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o libs/crypto/salsa20.o libs/crypto/salsa20.c
cc --std=c89 -I. -Wall -D_DEFAULT_SOURCE  -Wformat -Wformat-security -g   -c -o libs/crypto/sha3.o libs/crypto/sha3.c
In file included from libs/crypto/sha3.c:22:
libs/crypto/byte_order.h:59:3: error: "Can't detect CPU architechture"
# error "Can't detect CPU architechture"
  ^
1 error generated.
make: *** [libs/crypto/sha3.o] Error 1

Environment

$ uname -a
Darwin F7MQJ63XL2 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 arm64

Apple MacBook Pro M2 Max, MacOS Sonoma 14.0 (23A344)

@bobo-le bobo-le linked a pull request Mar 14, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant