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

building failed #3

Open
JamesOlvertone opened this issue Apr 16, 2024 · 0 comments
Open

building failed #3

JamesOlvertone opened this issue Apr 16, 2024 · 0 comments

Comments

@JamesOlvertone
Copy link

/usr/bin/cc -fstack-protector -W -Wall -Wformat=2 -Wshadow -g -O2   -c -o main.o main.c
In file included from lib/nettools.h:32,
                 from lib/compat_sha1.h:32,
                 from main.c:33:
lib/net_addr.h: In function ‘ipv4_is_private’:
lib/net_addr.h:185:20: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
  185 |     ((a[0] & 0xc0) == 224)
      |                    ^~
In file included from main.c:33:
lib/compat_sha1.h: At top level:
lib/compat_sha1.h:38:2: error: #error "No SHA-1 calculation function available!"
   38 | #error "No SHA-1 calculation function available!"
      |  ^~~~~
main.c: In function ‘get_sums’:
main.c:134:22: error: storage size of ‘sha1_ctx’ isn’t known
  134 |   struct compat_sha1 sha1_ctx;
      |                      ^~~~~~~~
main.c:144:5: warning: implicit declaration of function ‘compat_sha1_init’ [-Wimplicit-function-declaration]
  144 |     compat_sha1_init(&sha1_ctx);
      |     ^~~~~~~~~~~~~~~~
main.c:159:9: warning: implicit declaration of function ‘compat_sha1_update’ [-Wimplicit-function-declaration]
  159 |         compat_sha1_update(&sha1_ctx, data, (size_t) ret);
      |         ^~~~~~~~~~~~~~~~~~
main.c:171:5: warning: implicit declaration of function ‘compat_sha1_final’ [-Wimplicit-function-declaration]
  171 |     compat_sha1_final(&sha1_ctx, sha1);
      |     ^~~~~~~~~~~~~~~~~
main.c:134:22: warning: unused variable ‘sha1_ctx’ [-Wunused-variable]
  134 |   struct compat_sha1 sha1_ctx;
      |                      ^~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant