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

apple macOS/windows and ios/android build error #175

Open
calvin2021y opened this issue Feb 16, 2025 · 0 comments
Open

apple macOS/windows and ios/android build error #175

calvin2021y opened this issue Feb 16, 2025 · 0 comments

Comments

@calvin2021y
Copy link

calvin2021y commented Feb 16, 2025

for macOSX:

r3/src/node.c:978:48: error: no member named '__in6_u' in 'struct in6_addr'
  978 |             unsigned int r2_addr = ntohl(addr6.__in6_u.__u6_addr32[i]);
      |                                          ~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:136:46: note: expanded from macro 'ntohl'
  136 | #define ntohl(x)        __DARWIN_OSSwapInt32(x)
      |                                              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:88:27: note: expanded from macro '__DARWIN_OSSwapInt32'
   88 |     (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
      |                           ^
r3/src/node.c:978:48: error: no member named '__in6_u' in 'struct in6_addr'
  [ 75%] Building C object src/CMakeFiles/r3.dir/str.c.o
978 |             unsigned int r2_addr = ntohl(addr6.__in6_u.__u6_addr32[i]);
      |                                          ~~~~~ ^

windows:

/r3/src/node.c:7:10: fatal error: 'netinet/in.h' file not found
    7 | #include <netinet/in.h>
      |          ^~~~~~~~~~~~~~
/r3/src/slug.c:141:124: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
  141 |             int r = asprintf(&err, "Incomplete slug pattern. PATH (%d): '%s', OFFSET: %ld, STATE: %d", needle_len, needle, p - needle, state);
      |                                                                                       ~~~                                  ^~~~~~~~~~
      |                                                                                       %lld
/r3/src/slug.c:180:120: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
  180 |             int r = asprintf(&err, "Incomplete slug pattern. PATTERN (%d): '%s', OFFSET: %ld, STATE: %d", len, needle, p - needle, state);
      |                                                                                          ~~~                           ^~~~~~~~~~
      |                                                                                          %lld
/r3/src/str.c:193:16: error: call to undeclared function 'strndup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  193 |         return strndup(str,len);

android:

      |                                                                         %zu
r3/src/node.c:978:48: error: no member named '__in6_u' in 'struct in6_addr'; did you mean 'in6_u'?
  978 |             unsigned int r2_addr = ntohl(addr6.__in6_u.__u6_addr32[i]);
      |                                                ^~~~~~~
      |                                                in6_u
@calvin2021y calvin2021y changed the title apple macOS and ios/android build error apple macOS/windows and ios/android build error Feb 16, 2025
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