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

fails to build on macos (x64) #166

Closed
nullbyteptr opened this issue Jul 3, 2023 · 1 comment
Closed

fails to build on macos (x64) #166

nullbyteptr opened this issue Jul 3, 2023 · 1 comment

Comments

@nullbyteptr
Copy link

Tried to export path as mentioned in #161 , but it didn't work.

export PATH=/usr/local/bin:$PATH
vtls/openssl.c:2742:24: error: unknown type name 'CRYPTO_BUFFER'
                       CRYPTO_BUFFER** out,
                       ^
vtls/openssl.c:2749:3: error: use of undeclared identifier 'CRYPTO_BUFFER'
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
  ^
vtls/openssl.c:2749:18: error: use of undeclared identifier 'decompressed'
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
                 ^
vtls/openssl.c:2749:33: error: implicit declaration of function 'CRYPTO_BUFFER_alloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
                                ^
vtls/openssl.c:2750:7: error: use of undeclared identifier 'decompressed'
  if(!decompressed) {
      ^
vtls/openssl.c:2763:5: error: implicit declaration of function 'CRYPTO_BUFFER_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    CRYPTO_BUFFER_free(decompressed);
    ^
vtls/openssl.c:2763:5: note: did you mean 'CRYPTO_BUFFER_alloc'?
vtls/openssl.c:2749:33: note: 'CRYPTO_BUFFER_alloc' declared here
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
                                ^
vtls/openssl.c:2763:24: error: use of undeclared identifier 'decompressed'
    CRYPTO_BUFFER_free(decompressed);
                       ^
vtls/openssl.c:2771:5: error: implicit declaration of function 'CRYPTO_BUFFER_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    CRYPTO_BUFFER_free(decompressed);
    ^
vtls/openssl.c:2771:24: error: use of undeclared identifier 'decompressed'
    CRYPTO_BUFFER_free(decompressed);
                       ^
vtls/openssl.c:2776:10: error: use of undeclared identifier 'decompressed'
  *out = decompressed;
         ^
vtls/openssl.c:2787:26: error: unknown type name 'CRYPTO_BUFFER'
                         CRYPTO_BUFFER** out,
                         ^
vtls/openssl.c:2792:3: error: use of undeclared identifier 'CRYPTO_BUFFER'
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
  ^
vtls/openssl.c:2792:18: error: use of undeclared identifier 'decompressed'
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
                 ^
vtls/openssl.c:2792:33: error: implicit declaration of function 'CRYPTO_BUFFER_alloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  CRYPTO_BUFFER* decompressed = CRYPTO_BUFFER_alloc(&data, uncompressed_len);
                                ^
vtls/openssl.c:2793:8: error: use of undeclared identifier 'decompressed'
  if (!decompressed) {
       ^
vtls/openssl.c:2801:5: error: implicit declaration of function 'CRYPTO_BUFFER_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    CRYPTO_BUFFER_free(decompressed);
    ^
vtls/openssl.c:2801:24: error: use of undeclared identifier 'decompressed'
    CRYPTO_BUFFER_free(decompressed);
                       ^
vtls/openssl.c:2805:10: error: use of undeclared identifier 'decompressed'
  *out = decompressed;
         ^
vtls/openssl.c:2814:3: error: unknown type name 'ssl_cert_compression_func_t'
  ssl_cert_compression_func_t compress;
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
@lwthiker
Copy link
Owner

Fixed in #160

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

2 participants