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

libnpnt not compiling #7

Open
ds-master opened this issue Sep 19, 2019 · 3 comments
Open

libnpnt not compiling #7

ds-master opened this issue Sep 19, 2019 · 3 comments

Comments

@ds-master
Copy link

I have referenced this link to clone libnpnt onto my machine.
https://digitalsky.ispirt.in/t/open-source-npnt-implementation/57

When I 'make' the source, I get the following compilation error:

gcc -g -Wall -I../ -I. -I../inc -I/usr/local/opt/openssl/include -DRFL_USE_LIBOPENSSL -c test_ifaces.c -o build/test_ifaces.o
test_ifaces.c: In function ‘extract_public_key_from_xml_artefact’:
test_ifaces.c:211:36: warning: pointer targets in passing argument 2 of ‘mxmlLoadString’ differ in signedness [-Wpointer-sign]
     permart = mxmlLoadString(NULL, buffer, MXML_OPAQUE_CALLBACK);
                                    ^~~~~~
In file included from ../inc/defines.h:22:0,
                 from ../inc/control_iface.h:15,
                 from test_ifaces.c:13:
../mxml/mxml.h:185:21: note: expected ‘const char *’ but argument is of type ‘uint8_t * {aka unsigned char *}’
 extern mxml_node_t *mxmlLoadString(mxml_node_t *top, const char *s,
                     ^~~~~~~~~~~~~~
test_ifaces.c:250:37: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’
     if (EVP_PKEY_RSA == permart_pkey->save_type) {
                                     ^~
test_ifaces.c:225:17: warning: unused variable ‘type’ [-Wunused-variable]
     mxml_type_t type = mxmlGetType(certificate);
                 ^~~~
test_ifaces.c: In function ‘load_artifact’:
test_ifaces.c:291:54: warning: pointer targets in passing argument 3 of ‘base64_encode’ differ in signedness [-Wpointer-sign]
     base64_permart = base64_encode(buffer, file_len, &outlen);
                                                      ^
In file included from test_ifaces.c:21:0:
../inc/npnt_internal.h:35:10: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘int16_t * {aka short int *}’
 uint8_t* base64_encode(const uint8_t *src, uint16_t len, uint16_t *out_len);
          ^~~~~~~~~~~~~
test_ifaces.c:304:28: warning: too many arguments for format [-Wformat-extra-args]
         BIO_printf(outbio, "Artefact Set Successfully!\n", ret);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:48: recipe for target 'build/test_ifaces.o' failed
make: *** [build/test_ifaces.o] Error 1

Does anyone have a fix for it?

@nantha42
Copy link

nantha42 commented Jul 7, 2020

Have you fixed it now?. I am too getting this error!

@Senthilkumarl
Copy link

I have the same issue. How to resolve the problem?

@wikiwiki121
Copy link

I'm also facing similar problem.....!!!!

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

4 participants