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

Errors running make #9

Closed
uk20931085 opened this issue Apr 27, 2022 · 2 comments
Closed

Errors running make #9

uk20931085 opened this issue Apr 27, 2022 · 2 comments

Comments

@uk20931085
Copy link

uk20931085 commented Apr 27, 2022

Hi Jack

I get some errors when I run make to run the demo locally

gcc src/main.c -o bin/main src/util.o src/issue.o src/redeem.o src/key_generator.o -I./boringssl/include -L./boringssl/build/crypto -lcrypto -lpthread
src/main.c:26:14: warning: initializing 'uint8_t *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
   uint8_t* request_base64 = argv[2];
            ^                ~~~~~~~
src/main.c:27:40: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
   size_t request_base64_len = strlen(request_base64);
                                      ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                           ^
src/main.c:45:14: warning: initializing 'uint8_t *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
   uint8_t* request_base64 = argv[2];
            ^                ~~~~~~~
src/main.c:46:40: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
   size_t request_base64_len = strlen(request_base64);
                                      ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                           ^

Any bright ideas?

Thanks for the demo.

@bhavik-gujarati
Copy link

bhavik-gujarati commented Aug 16, 2022

Hey, these build instructions are for Linux environment. I ran into the same issue when running on Mac.

@JackJey
Copy link
Owner

JackJey commented Oct 6, 2022

This demo is only for a Linux (on glitch), and no support for Mac.
And now the origin trials for Trust Token is closed and this code doesn't work anymore.
Once new demo will happen, next one will have docker for build.

Thanks

@JackJey JackJey closed this as completed Oct 6, 2022
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

3 participants