Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 863342 Details for
Bug 907902
www-servers/kore-4.2.3 - src/jsonrpc.c: error: JSONRPC_SERVER_ERROR undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
www-servers:kore-4.2.3:20230605-081314.log
www-servers:kore-4.2.3:20230605-081314.log (text/plain), 87.51 KB, created by
Toralf Förster
on 2023-06-05 19:17:18 UTC
(
hide
)
Description:
www-servers:kore-4.2.3:20230605-081314.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2023-06-05 19:17:18 UTC
Size:
87.51 KB
patch
obsolete
> * Package: www-servers/kore-4.2.3:0 > * Repository: gentoo > * Maintainer: xgqt@gentoo.org > * USE: abi_x86_64 amd64 curl elibc_glibc json kernel_linux openssl threads > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking kore-4.2.3.tar.gz to /var/tmp/portage/www-servers/kore-4.2.3/work >>>> Source unpacked in /var/tmp/portage/www-servers/kore-4.2.3/work >>>> Preparing source in /var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3 ... > * Applying kore-4.2.3-makefile.patch ... > [ ok ] > * Applying kore-4.2.3-kodev-makefile.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3 ... >make -j5 >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/buf.c -o obj/buf.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/config.c -o obj/config.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/connection.c -o obj/connection.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/domain.c -o obj/domain.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/filemap.c -o obj/filemap.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/fileref.c -o obj/fileref.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/json.c -o obj/json.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/log.c -o obj/log.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/mem.c -o obj/mem.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/msg.c -o obj/msg.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/module.c -o obj/module.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/net.c -o obj/net.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/pool.c -o obj/pool.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/runtime.c -o obj/runtime.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/sha1.c -o obj/sha1.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/sha2.c -o obj/sha2.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/timer.c -o obj/timer.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/utils.c -o obj/utils.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/worker.c -o obj/worker.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/tls_openssl.c -o obj/tls_openssl.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/keymgr_openssl.c -o obj/keymgr_openssl.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/tasks.c -o obj/tasks.o >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/jsonrpc.c -o obj/jsonrpc.o >src/tls_openssl.c: In function âkore_tls_initâ: >src/tls_openssl.c:97:9: warning: âRSA_meth_newâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 97 | if ((keymgr_rsa_meth = RSA_meth_new("kore RSA keymgr method", > | ^~ >In file included from /usr/include/openssl/x509.h:36, > from /usr/include/openssl/ssl.h:31, > from src/tls_openssl.c:28: >/usr/include/openssl/rsa.h:473:35: note: declared here > 473 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_new(const char *name, int flags); > | ^~~~~~~~~~~~ >src/tls_openssl.c:101:9: warning: âRSA_meth_set_initâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 101 | RSA_meth_set_init(keymgr_rsa_meth, tls_keymgr_rsa_init); > | ^~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:550:5: note: declared here > 550 | int RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa)); > | ^~~~~~~~~~~~~~~~~ >src/tls_openssl.c:102:9: warning: âRSA_meth_set_finishâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 102 | RSA_meth_set_finish(keymgr_rsa_meth, tls_keymgr_rsa_finish); > | ^~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:554:5: note: declared here > 554 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); > | ^~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:103:9: warning: âRSA_meth_set_priv_encâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 103 | RSA_meth_set_priv_enc(keymgr_rsa_meth, tls_keymgr_rsa_privenc); > | ^~~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:510:5: note: declared here > 510 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, > | ^~~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:105:9: warning: âEC_KEY_METHOD_newâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 105 | if ((keymgr_ec_meth = EC_KEY_METHOD_new(NULL)) == NULL) > | ^~ >In file included from src/tls_openssl.c:25: >/usr/include/openssl/ec.h:1461:38: note: declared here > 1461 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth); > | ^~~~~~~~~~~~~~~~~ >src/tls_openssl.c:108:9: warning: âEC_KEY_METHOD_set_signâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 108 | EC_KEY_METHOD_set_sign(keymgr_ec_meth, > | ^~~~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/ec.h:1480:28: note: declared here > 1480 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign > | ^~~~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c: In function âkore_tls_cleanupâ: >src/tls_openssl.c:124:9: warning: âRSA_meth_freeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 124 | RSA_meth_free(keymgr_rsa_meth); > | ^~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:474:28: note: declared here > 474 | OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth); > | ^~~~~~~~~~~~~ >src/tls_openssl.c:125:9: warning: âEC_KEY_METHOD_freeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 125 | EC_KEY_METHOD_free(keymgr_ec_meth); > | ^~~~~~~~~~~~~~~~~~ >/usr/include/openssl/ec.h:1462:28: note: declared here > 1462 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth); > | ^~~~~~~~~~~~~~~~~~ >src/tls_openssl.c: In function âkore_tls_dh_loadâ: >src/tls_openssl.c:159:9: warning: âPEM_read_bio_DHparamsâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 159 | dh_params = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); > | ^~~~~~~~~ >In file included from /usr/include/openssl/ssl.h:36: >/usr/include/openssl/pem.h:469:1: note: declared here > 469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH) > | ^~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c: In function âkore_tls_keymgr_initâ: >src/tls_openssl.c:188:9: warning: âRSA_get_default_methodâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 188 | if ((meth = RSA_get_default_method()) == NULL) > | ^~ >/usr/include/openssl/rsa.h:299:41: note: declared here > 299 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); > | ^~~~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:191:9: warning: âRSA_meth_set_pub_encâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 191 | RSA_meth_set_pub_enc(keymgr_rsa_meth, RSA_meth_get_pub_enc(meth)); > | ^~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:490:5: note: declared here > 490 | int RSA_meth_set_pub_enc(RSA_METHOD *rsa, > | ^~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:191:9: warning: âRSA_meth_get_pub_encâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 191 | RSA_meth_set_pub_enc(keymgr_rsa_meth, RSA_meth_get_pub_enc(meth)); > | ^~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:485:7: note: declared here > 485 | int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) (int flen, > | ^~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:192:9: warning: âRSA_meth_set_pub_decâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 192 | RSA_meth_set_pub_dec(keymgr_rsa_meth, RSA_meth_get_pub_dec(meth)); > | ^~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:500:5: note: declared here > 500 | int RSA_meth_set_pub_dec(RSA_METHOD *rsa, > | ^~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:192:9: warning: âRSA_meth_get_pub_decâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 192 | RSA_meth_set_pub_dec(keymgr_rsa_meth, RSA_meth_get_pub_dec(meth)); > | ^~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:495:7: note: declared here > 495 | int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) (int flen, > | ^~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:193:9: warning: âRSA_meth_set_bn_mod_expâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 193 | RSA_meth_set_bn_mod_exp(keymgr_rsa_meth, RSA_meth_get_bn_mod_exp(meth)); > | ^~~~~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:540:5: note: declared here > 540 | int RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa, > | ^~~~~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:193:9: warning: âRSA_meth_get_bn_mod_expâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 193 | RSA_meth_set_bn_mod_exp(keymgr_rsa_meth, RSA_meth_get_bn_mod_exp(meth)); > | ^~~~~~~~~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:533:7: note: declared here > 533 | int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth)) (BIGNUM *r, > | ^~~~~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c: In function âkore_tls_domain_setupâ: >src/tls_openssl.c:283:17: warning: âEVP_PKEY_get1_RSAâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 283 | if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL) > | ^~ >In file included from /usr/include/openssl/x509.h:29: >/usr/include/openssl/evp.h:1348:16: note: declared here > 1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey); > | ^~~~~~~~~~~~~~~~~ >src/tls_openssl.c:285:17: warning: âRSA_set_ex_dataâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 285 | RSA_set_app_data(rsa, dom); > | ^~~~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:445:27: note: declared here > 445 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg); > | ^~~~~~~~~~~~~~~ >src/tls_openssl.c:286:17: warning: âRSA_set_methodâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 286 | RSA_set_method(rsa, keymgr_rsa_meth); > | ^~~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:302:27: note: declared here > 302 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); > | ^~~~~~~~~~~~~~ >src/tls_openssl.c:289:17: warning: âEVP_PKEY_get1_EC_KEYâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 289 | if ((eckey = EVP_PKEY_get1_EC_KEY(pkey)) == NULL) > | ^~ >/usr/include/openssl/evp.h:1374:19: note: declared here > 1374 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey); > | ^~~~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:291:17: warning: âEC_KEY_set_ex_dataâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 291 | EC_KEY_set_ex_data(eckey, 0, dom); > | ^~~~~~~~~~~~~~~~~~ >/usr/include/openssl/ec.h:1083:27: note: declared here > 1083 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg); > | ^~~~~~~~~~~~~~~~~~ >src/tls_openssl.c:292:17: warning: âEC_KEY_set_methodâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 292 | EC_KEY_set_method(eckey, keymgr_ec_meth); > | ^~~~~~~~~~~~~~~~~ >/usr/include/openssl/ec.h:1283:27: note: declared here > 1283 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth); > | ^~~~~~~~~~~~~~~~~ >src/tls_openssl.c: In function âtls_keymgr_rsa_initâ: >src/tls_openssl.c:836:17: warning: âRSA_set_flagsâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 836 | RSA_set_flags(rsa, RSA_flags(rsa) | > | ^~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:243:28: note: declared here > 243 | OSSL_DEPRECATEDIN_3_0 void RSA_set_flags(RSA *r, int flags); > | ^~~~~~~~~~~~~ >src/tls_openssl.c:836:17: warning: âRSA_flagsâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 836 | RSA_set_flags(rsa, RSA_flags(rsa) | > | ^~~~~~~~~~~~~ >/usr/include/openssl/rsa.h:296:27: note: declared here > 296 | OSSL_DEPRECATEDIN_3_0 int RSA_flags(const RSA *r); > | ^~~~~~~~~ >src/tls_openssl.c: In function âtls_keymgr_rsa_privencâ: >src/tls_openssl.c:857:9: warning: âRSA_get_ex_dataâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 857 | if ((dom = RSA_get_app_data(rsa)) == NULL) > | ^~ >/usr/include/openssl/rsa.h:446:29: note: declared here > 446 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx); > | ^~~~~~~~~~~~~~~ >src/tls_openssl.c:878:21: warning: âRSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 878 | (int)keymgr_buflen == RSA_size(rsa)) { > | ^ >/usr/include/openssl/rsa.h:204:27: note: declared here > 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); > | ^~~~~~~~ >src/tls_openssl.c:879:25: warning: âRSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 879 | ret = RSA_size(rsa); > | ^~~ >/usr/include/openssl/rsa.h:204:27: note: declared here > 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); > | ^~~~~~~~ >src/tls_openssl.c:880:25: warning: âRSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 880 | memcpy(to, keymgr_buf, RSA_size(rsa)); > | ^~~~~~ >/usr/include/openssl/rsa.h:204:27: note: declared here > 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); > | ^~~~~~~~ >src/tls_openssl.c: In function âtls_keymgr_ecdsa_signâ: >src/tls_openssl.c:914:9: warning: âEC_KEY_get_ex_dataâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 914 | if ((dom = EC_KEY_get_ex_data(eckey, 0)) == NULL) > | ^~ >/usr/include/openssl/ec.h:1084:29: note: declared here > 1084 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx); > | ^~~~~~~~~~~~~~~~~~ >src/keymgr_openssl.c: In function âkeymgr_rsa_encryptâ: >src/keymgr_openssl.c:695:9: warning: âEVP_PKEY_get0_RSAâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 695 | rsa = EVP_PKEY_get0_RSA(key->pkey); > | ^~~ >In file included from src/keymgr_openssl.c:44: >/usr/include/openssl/evp.h:1346:22: note: declared here > 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); > | ^~~~~~~~~~~~~~~~~ >src/keymgr_openssl.c:695:13: warning: assignment discards âconstâ qualifier from pointer target type [-Wdiscarded-qualifiers] > 695 | rsa = EVP_PKEY_get0_RSA(key->pkey); > | ^ >src/keymgr_openssl.c:697:9: warning: âRSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 697 | keylen = RSA_size(rsa); > | ^~~~~~ >In file included from src/keymgr_openssl.c:45: >/usr/include/openssl/rsa.h:204:27: note: declared here > 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); > | ^~~~~~~~ >src/keymgr_openssl.c:701:9: warning: âRSA_private_encryptâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 701 | ret = RSA_private_encrypt(req->data_len, req->data, > | ^~~ >/usr/include/openssl/rsa.h:285:5: note: declared here > 285 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, > | ^~~~~~~~~~~~~~~~~~~ >src/keymgr_openssl.c:703:9: warning: âRSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 703 | if (ret != RSA_size(rsa)) > | ^~ >/usr/include/openssl/rsa.h:204:27: note: declared here > 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); > | ^~~~~~~~ >src/keymgr_openssl.c: In function âkeymgr_ecdsa_signâ: >src/keymgr_openssl.c:719:9: warning: âEVP_PKEY_get0_EC_KEYâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 719 | ec = EVP_PKEY_get0_EC_KEY(key->pkey); > | ^~ >/usr/include/openssl/evp.h:1372:25: note: declared here > 1372 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey); > | ^~~~~~~~~~~~~~~~~~~~ >src/keymgr_openssl.c:719:12: warning: assignment discards âconstâ qualifier from pointer target type [-Wdiscarded-qualifiers] > 719 | ec = EVP_PKEY_get0_EC_KEY(key->pkey); > | ^ >src/keymgr_openssl.c:721:9: warning: âECDSA_sizeâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 721 | len = ECDSA_size(ec); > | ^~~ >In file included from /usr/include/openssl/x509.h:33, > from /usr/include/openssl/pem.h:23, > from src/keymgr_openssl.c:47: >/usr/include/openssl/ec.h:1455:27: note: declared here > 1455 | OSSL_DEPRECATEDIN_3_0 int ECDSA_size(const EC_KEY *eckey); > | ^~~~~~~~~~ >src/keymgr_openssl.c:725:9: warning: âECDSA_signâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 725 | if (ECDSA_sign(EVP_PKEY_NONE, req->data, req->data_len, > | ^~ >/usr/include/openssl/ec.h:1414:27: note: declared here > 1414 | OSSL_DEPRECATEDIN_3_0 int ECDSA_sign(int type, const unsigned char *dgst, > | ^~~~~~~~~~ >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/curl.c -o obj/curl.o >src/jsonrpc.c:28:17: warning: âstruct jsonrpc_logâ declared inside parameter list will not be visible outside of this definition or declaration > 28 | init_log(struct jsonrpc_log *log) > | ^~~~~~~~~~~ >src/jsonrpc.c: In function âinit_logâ: >src/jsonrpc.c:30:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 30 | log->msg = NULL; > | ^~ >src/jsonrpc.c:31:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 31 | log->next = log; > | ^~ >src/jsonrpc.c:32:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 32 | log->prev = log; > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:36:19: warning: âstruct jsonrpc_logâ declared inside parameter list will not be visible outside of this definition or declaration > 36 | append_log(struct jsonrpc_log *prev, int lvl, char *msg) > | ^~~~~~~~~~~ >src/jsonrpc.c: In function âappend_logâ: >src/jsonrpc.c:38:54: error: invalid application of âsizeofâ to incomplete type âstruct jsonrpc_logâ > 38 | struct jsonrpc_log *new = kore_malloc(sizeof(struct jsonrpc_log)); > | ^~~~~~ >src/jsonrpc.c:40:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 40 | new->lvl = lvl; > | ^~ >src/jsonrpc.c:41:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 41 | new->msg = msg; > | ^~ >src/jsonrpc.c:43:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 43 | new->prev = prev; > | ^~ >src/jsonrpc.c:44:12: error: invalid use of undefined type âstruct jsonrpc_logâ > 44 | new->next = prev->next; > | ^~ >src/jsonrpc.c:44:25: error: invalid use of undefined type âstruct jsonrpc_logâ > 44 | new->next = prev->next; > | ^~ >src/jsonrpc.c:45:13: error: invalid use of undefined type âstruct jsonrpc_logâ > 45 | prev->next->prev = new; > | ^~ >src/jsonrpc.c:46:13: error: invalid use of undefined type âstruct jsonrpc_logâ > 46 | prev->next = new; > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:50:17: warning: âstruct jsonrpc_logâ declared inside parameter list will not be visible outside of this definition or declaration > 50 | free_log(struct jsonrpc_log *root) > | ^~~~~~~~~~~ >src/jsonrpc.c: In function âfree_logâ: >src/jsonrpc.c:52:43: error: invalid use of undefined type âstruct jsonrpc_logâ > 52 | for (struct jsonrpc_log *it = root->next; it != root; it = it->next) { > | ^~ >src/jsonrpc.c:52:70: error: invalid use of undefined type âstruct jsonrpc_logâ > 52 | for (struct jsonrpc_log *it = root->next; it != root; it = it->next) { > | ^~ > >src/jsonrpc.c: At top level: >src/jsonrpc.c:58:21: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 58 | init_request(struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âinit_requestâ: >src/jsonrpc.c:60:22: error: invalid use of undefined type âstruct jsonrpc_requestâ > 60 | init_log(&req->log); > | ^~ >src/jsonrpc.c:61:27: error: invalid use of undefined type âstruct jsonrpc_requestâ > 61 | kore_buf_init(&req->buf, 256); > | ^~ >src/jsonrpc.c:62:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 62 | req->gen = NULL; > | ^~ >src/jsonrpc.c:63:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 63 | req->http = NULL; > | ^~ >src/jsonrpc.c:64:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 64 | req->json = NULL; > | ^~ >src/jsonrpc.c:65:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 65 | req->id = NULL; > | ^~ >src/jsonrpc.c:66:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 66 | req->method = NULL; > | ^~ >src/jsonrpc.c:67:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 67 | req->params = NULL; > | ^~ >src/jsonrpc.c:68:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 68 | req->log_levels = (1 << LOG_EMERG) | (1 << LOG_ERR) | (1 << LOG_WARNING) > | ^~ >src/jsonrpc.c:70:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 70 | req->flags = 0; > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:74:32: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:74:1: warning: no previous prototype for âjsonrpc_destroy_requestâ [-Wmissing-prototypes] > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âjsonrpc_destroy_requestâ: >src/jsonrpc.c:76:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 76 | if (req->gen != NULL) { > | ^~ >src/jsonrpc.c:77:34: error: invalid use of undefined type âstruct jsonrpc_requestâ > 77 | yajl_gen_free(req->gen); > | ^~ >src/jsonrpc.c:78:20: error: invalid use of undefined type âstruct jsonrpc_requestâ > 78 | req->gen = NULL; > | ^~ >src/jsonrpc.c:80:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 80 | if (req->json != NULL) { > | ^~ >src/jsonrpc.c:81:35: error: invalid use of undefined type âstruct jsonrpc_requestâ > 81 | yajl_tree_free(req->json); > | ^~ >src/jsonrpc.c:82:20: error: invalid use of undefined type âstruct jsonrpc_requestâ > 82 | req->json = NULL; > | ^~ >src/jsonrpc.c:84:30: error: invalid use of undefined type âstruct jsonrpc_requestâ > 84 | kore_buf_cleanup(&req->buf); > | ^~ >src/jsonrpc.c:85:22: error: invalid use of undefined type âstruct jsonrpc_requestâ > 85 | free_log(&req->log); > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:89:20: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:89:1: warning: no previous prototype for âjsonrpc_logâ [-Wmissing-prototypes] > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ^~~~~~~~~~~ >src/jsonrpc.c: In function âjsonrpc_logâ: >src/jsonrpc.c:93:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 93 | size_t start = req->buf.offset; > | ^~ >src/jsonrpc.c:96:30: error: invalid use of undefined type âstruct jsonrpc_requestâ > 96 | kore_buf_appendv(&req->buf, fmt, ap); > | ^~ >src/jsonrpc.c:99:38: error: invalid use of undefined type âstruct jsonrpc_requestâ > 99 | msg = kore_buf_stringify(&req->buf, NULL) + start; > | ^~ >src/jsonrpc.c:101:24: error: invalid use of undefined type âstruct jsonrpc_requestâ > 101 | append_log(&req->log, lvl, msg); > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:105:54: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 105 | read_json_body(struct http_request *http_req, struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:105:23: warning: âstruct http_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 105 | read_json_body(struct http_request *http_req, struct jsonrpc_request *req) > | ^~~~~~~~~~~~ >src/jsonrpc.c: In function âread_json_bodyâ: >src/jsonrpc.c:113:29: warning: implicit declaration of function âhttp_body_readâ [-Wimplicit-function-declaration] > 113 | chunk_len = http_body_read(http_req, chunk_buffer, > | ^~~~~~~~~~~~~~ >src/jsonrpc.c:116:37: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 116 | jsonrpc_log(req, LOG_CRIT, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/linux.c -o obj/linux.o >make -C kodev >src/jsonrpc.c:118:33: error: âJSONRPC_SERVER_ERRORâ undeclared (first use in this function) > 118 | return (JSONRPC_SERVER_ERROR); > | ^~~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:118:33: note: each undeclared identifier is reported only once for each function it appears in >src/jsonrpc.c:125:37: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 125 | jsonrpc_log(req, LOG_CRIT, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:131:37: error: invalid use of undefined type âstruct jsonrpc_requestâ > 131 | kore_buf_append(&req->buf, chunk_buffer, chunk_len); > | ^~ >src/jsonrpc.c:135:46: error: invalid use of undefined type âstruct jsonrpc_requestâ > 135 | body_string = kore_buf_stringify(&req->buf, NULL); > | ^~ >src/jsonrpc.c:139:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 139 | req->json = yajl_tree_parse(body_string, error_buffer, > | ^~ >src/jsonrpc.c:141:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 141 | if (req->json == NULL) { > | ^~ >src/jsonrpc.c:143:37: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 143 | jsonrpc_log(req, LOG_ERR, "Invalid json: %s", > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:146:37: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 146 | jsonrpc_log(req, LOG_ERR, "Invalid json"); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >make[1]: Entering directory '/var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3/kodev' >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iincludes -std=c99 -pedantic -DPREFIX='"/usr"' -D_GNU_SOURCE=1 -c ../src/cli.c -o obj/cli.o >src/jsonrpc.c:148:25: error: âJSONRPC_PARSE_ERRORâ undeclared (first use in this function) > 148 | return (JSONRPC_PARSE_ERROR); > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:155:24: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 155 | parse_json_body(struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âparse_json_bodyâ: >src/jsonrpc.c:163:43: error: invalid use of undefined type âstruct jsonrpc_requestâ > 163 | yajl_val proto = yajl_tree_get(req->json, proto_path, yajl_t_string); > | ^~ >src/jsonrpc.c:165:29: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 165 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:167:25: error: âJSONRPC_PARSE_ERRORâ undeclared (first use in this function) > 167 | return (JSONRPC_PARSE_ERROR); > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:172:29: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 172 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:178:29: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 178 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:184:17: error: invalid use of undefined type âstruct jsonrpc_requestâ > 184 | if ((req->id = yajl_tree_get(req->json, id_path, yajl_t_any)) != NULL) { > | ^~ >src/jsonrpc.c:184:41: error: invalid use of undefined type âstruct jsonrpc_requestâ > 184 | if ((req->id = yajl_tree_get(req->json, id_path, yajl_t_any)) != NULL) { > | ^~ >In file included from src/jsonrpc.c:20: >src/jsonrpc.c:185:39: error: invalid use of undefined type âstruct jsonrpc_requestâ > 185 | if (YAJL_IS_NUMBER(req->id)) { > | ^~ >src/jsonrpc.c:185:39: error: invalid use of undefined type âstruct jsonrpc_requestâ > 185 | if (YAJL_IS_NUMBER(req->id)) { > | ^~ >src/jsonrpc.c:186:49: error: invalid use of undefined type âstruct jsonrpc_requestâ > 186 | if (!YAJL_IS_INTEGER(req->id)) { > | ^~ >src/jsonrpc.c:186:49: error: invalid use of undefined type âstruct jsonrpc_requestâ > 186 | if (!YAJL_IS_INTEGER(req->id)) { > | ^~ >src/jsonrpc.c:186:49: error: invalid use of undefined type âstruct jsonrpc_requestâ > 186 | if (!YAJL_IS_INTEGER(req->id)) { > | ^~ >src/jsonrpc.c:187:45: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 187 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:192:47: error: invalid use of undefined type âstruct jsonrpc_requestâ > 192 | } else if (!YAJL_IS_STRING(req->id)) { > | ^~ >src/jsonrpc.c:192:47: error: invalid use of undefined type âstruct jsonrpc_requestâ > 192 | } else if (!YAJL_IS_STRING(req->id)) { > | ^~ >src/jsonrpc.c:193:37: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 193 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:200:17: error: invalid use of undefined type âstruct jsonrpc_requestâ > 200 | if ((req->method = YAJL_GET_STRING(yajl_tree_get(req->json, method_path, > | ^~ >src/jsonrpc.c:200:61: error: invalid use of undefined type âstruct jsonrpc_requestâ > 200 | if ((req->method = YAJL_GET_STRING(yajl_tree_get(req->json, method_path, > | ^~ >src/jsonrpc.c:200:61: error: invalid use of undefined type âstruct jsonrpc_requestâ > 200 | if ((req->method = YAJL_GET_STRING(yajl_tree_get(req->json, method_path, > | ^~ >src/jsonrpc.c:200:61: error: invalid use of undefined type âstruct jsonrpc_requestâ > 200 | if ((req->method = YAJL_GET_STRING(yajl_tree_get(req->json, method_path, > | ^~ >src/jsonrpc.c:202:29: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 202 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:208:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 208 | req->params = yajl_tree_get(req->json, params_path, yajl_t_any); > | ^~ >src/jsonrpc.c:208:40: error: invalid use of undefined type âstruct jsonrpc_requestâ > 208 | req->params = yajl_tree_get(req->json, params_path, yajl_t_any); > | ^~ >src/jsonrpc.c:209:18: error: invalid use of undefined type âstruct jsonrpc_requestâ > 209 | if (!(req->params == NULL || YAJL_IS_ARRAY(req->params) > | ^~ >src/jsonrpc.c:209:55: error: invalid use of undefined type âstruct jsonrpc_requestâ > 209 | if (!(req->params == NULL || YAJL_IS_ARRAY(req->params) > | ^~ >src/jsonrpc.c:209:55: error: invalid use of undefined type âstruct jsonrpc_requestâ > 209 | if (!(req->params == NULL || YAJL_IS_ARRAY(req->params) > | ^~ >src/jsonrpc.c:210:34: error: invalid use of undefined type âstruct jsonrpc_requestâ > 210 | || YAJL_IS_OBJECT(req->params))) { > | ^~ >src/jsonrpc.c:210:34: error: invalid use of undefined type âstruct jsonrpc_requestâ > 210 | || YAJL_IS_OBJECT(req->params))) { > | ^~ >src/jsonrpc.c:211:29: warning: passing argument 1 of âjsonrpc_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 211 | jsonrpc_log(req, LOG_ERR, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:89:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 89 | jsonrpc_log(struct jsonrpc_request *req, int lvl, const char *fmt, ...) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:220:60: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 220 | jsonrpc_read_request(struct http_request *http_req, struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:220:29: warning: âstruct http_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 220 | jsonrpc_read_request(struct http_request *http_req, struct jsonrpc_request *req) > | ^~~~~~~~~~~~ >src/jsonrpc.c:220:1: warning: no previous prototype for âjsonrpc_read_requestâ [-Wmissing-prototypes] > 220 | jsonrpc_read_request(struct http_request *http_req, struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âjsonrpc_read_requestâ: >src/jsonrpc.c:224:22: warning: passing argument 1 of âinit_requestâ from incompatible pointer type [-Wincompatible-pointer-types] > 224 | init_request(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:58:38: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 58 | init_request(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:225:12: error: invalid use of undefined type âstruct jsonrpc_requestâ > 225 | req->http = http_req; > | ^~ >src/jsonrpc.c:227:35: warning: passing argument 1 of âread_json_bodyâ from incompatible pointer type [-Wincompatible-pointer-types] > 227 | if ((ret = read_json_body(http_req, req)) != 0) > | ^~~~~~~~ > | | > | struct http_request * >src/jsonrpc.c:105:37: note: expected âstruct http_request *â but argument is of type âstruct http_request *â > 105 | read_json_body(struct http_request *http_req, struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ >src/jsonrpc.c:227:45: warning: passing argument 2 of âread_json_bodyâ from incompatible pointer type [-Wincompatible-pointer-types] > 227 | if ((ret = read_json_body(http_req, req)) != 0) > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:105:71: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 105 | d_json_body(struct http_request *http_req, struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ > >src/jsonrpc.c:230:32: warning: passing argument 1 of âparse_json_bodyâ from incompatible pointer type [-Wincompatible-pointer-types] > 230 | return parse_json_body(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:155:41: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 155 | parse_json_body(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c: In function âwrite_idâ: >src/jsonrpc.c:238:13: warning: implicit declaration of function âYAJL_GEN_KOâ [-Wimplicit-function-declaration] > 238 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(gen, "id"))) > | ^~~~~~~~~~~ >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/seccomp.c -o obj/seccomp.o >src/jsonrpc.c:238:34: warning: implicit declaration of function âYAJL_GEN_CONST_STRINGâ; did you mean âYAJL_GET_STRINGâ? [-Wimplicit-function-declaration] > 238 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(gen, "id"))) > | ^~~~~~~~~~~~~~~~~~~~~ > | YAJL_GET_STRING >src/jsonrpc.c: At top level: >src/jsonrpc.c:289:18: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 289 | write_log(struct jsonrpc_request *req) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âwrite_logâ: >src/jsonrpc.c:294:43: error: invalid use of undefined type âstruct jsonrpc_requestâ > 294 | for (struct jsonrpc_log *log = req->log.next; log != &req->log; > | ^~ >src/jsonrpc.c:294:9: error: âstruct jsonrpc_logâ declared in âforâ loop initial declaration > 294 | for (struct jsonrpc_log *log = req->log.next; log != &req->log; > | ^~~ >src/jsonrpc.c:294:66: error: invalid use of undefined type âstruct jsonrpc_requestâ > 294 | for (struct jsonrpc_log *log = req->log.next; log != &req->log; > | ^~ >src/jsonrpc.c:295:26: error: invalid use of undefined type âstruct jsonrpc_logâ > 295 | log = log->next) { > | ^~ >src/jsonrpc.c:297:31: error: invalid use of undefined type âstruct jsonrpc_logâ > 297 | if (((1 << log->lvl) & req->log_levels) == 0) > | ^~ >src/jsonrpc.c:297:43: error: invalid use of undefined type âstruct jsonrpc_requestâ > 297 | if (((1 << log->lvl) & req->log_levels) == 0) > | ^~ >src/jsonrpc.c:301:75: error: invalid use of undefined type âstruct jsonrpc_requestâ > 301 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(req->gen, > | ^~ > >src/jsonrpc.c:304:73: error: invalid use of undefined type âstruct jsonrpc_requestâ > 304 | if (YAJL_GEN_KO(status = yajl_gen_array_open(req->gen))) > | ^~ > >src/jsonrpc.c:306:44: error: invalid use of undefined type âstruct jsonrpc_requestâ > 306 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 1); > | ^~ >src/jsonrpc.c:310:65: error: invalid use of undefined type âstruct jsonrpc_requestâ > 310 | if (YAJL_GEN_KO(status = yajl_gen_array_open(req->gen))) > | ^~ > >src/jsonrpc.c:312:62: error: invalid use of undefined type âstruct jsonrpc_requestâ > 312 | if (YAJL_GEN_KO(status = yajl_gen_integer(req->gen, log->lvl))) > | ^~ > >src/jsonrpc.c:312:72: error: invalid use of undefined type âstruct jsonrpc_logâ > 312 | if (YAJL_GEN_KO(status = yajl_gen_integer(req->gen, log->lvl))) > | ^~ > >src/jsonrpc.c:314:61: error: invalid use of undefined type âstruct jsonrpc_requestâ > 314 | if (YAJL_GEN_KO(status = yajl_gen_string(req->gen, > | ^~ >src/jsonrpc.c:315:41: error: invalid use of undefined type âstruct jsonrpc_logâ > 315 | (unsigned char *)log->msg, strlen(log->msg)))) > | ^~ >src/jsonrpc.c:315:58: error: invalid use of undefined type âstruct jsonrpc_logâ > 315 | (unsigned char *)log->msg, strlen(log->msg)))) > | ^~ >src/jsonrpc.c:317:66: error: invalid use of undefined type âstruct jsonrpc_requestâ > 317 | if (YAJL_GEN_KO(status = yajl_gen_array_close(req->gen))) > | ^~ > >src/jsonrpc.c:322:36: error: invalid use of undefined type âstruct jsonrpc_requestâ > 322 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 0); > | ^~ >src/jsonrpc.c:323:50: error: invalid use of undefined type âstruct jsonrpc_requestâ > 323 | status = yajl_gen_array_close(req->gen); > | ^~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:330:20: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 330 | write_error(struct jsonrpc_request *req, int code, const char *message) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c: In function âwrite_errorâ: >src/jsonrpc.c:334:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 334 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 0); > | ^~ >src/jsonrpc.c:336:51: error: invalid use of undefined type âstruct jsonrpc_requestâ > 336 | if (YAJL_GEN_KO(status = open_response(req->gen, req->id))) > | ^~ >src/jsonrpc.c:336:61: error: invalid use of undefined type âstruct jsonrpc_requestâ > 336 | if (YAJL_GEN_KO(status = open_response(req->gen, req->id))) > | ^~ >src/jsonrpc.c:338:59: error: invalid use of undefined type âstruct jsonrpc_requestâ > 338 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(req->gen, "error"))) > | ^~ >src/jsonrpc.c:340:55: error: invalid use of undefined type âstruct jsonrpc_requestâ > 340 | if (YAJL_GEN_KO(status = yajl_gen_map_open(req->gen))) > | ^~ >src/jsonrpc.c:342:59: error: invalid use of undefined type âstruct jsonrpc_requestâ > 342 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(req->gen, "code"))) > | ^~ >src/jsonrpc.c:344:54: error: invalid use of undefined type âstruct jsonrpc_requestâ > 344 | if (YAJL_GEN_KO(status = yajl_gen_integer(req->gen, code))) > | ^~ >src/jsonrpc.c:346:59: error: invalid use of undefined type âstruct jsonrpc_requestâ > 346 | if (YAJL_GEN_KO(status = YAJL_GEN_CONST_STRING(req->gen, "message"))) > | ^~ >src/jsonrpc.c:349:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 349 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 1); > | ^~ >src/jsonrpc.c:351:53: error: invalid use of undefined type âstruct jsonrpc_requestâ > 351 | if (YAJL_GEN_KO(status = yajl_gen_string(req->gen, > | ^~ >src/jsonrpc.c:355:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 355 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 0); > | ^~ >src/jsonrpc.c:357:44: warning: passing argument 1 of âwrite_logâ from incompatible pointer type [-Wincompatible-pointer-types] > 357 | if (YAJL_GEN_KO(status = write_log(req))) > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:289:35: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 289 | write_log(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:360:36: error: invalid use of undefined type âstruct jsonrpc_requestâ > 360 | status = close_response(req->gen); > | ^~ >src/jsonrpc.c: In function âknown_msgâ: >src/jsonrpc.c:369:14: error: âJSONRPC_PARSE_ERRORâ undeclared (first use in this function) > 369 | case JSONRPC_PARSE_ERROR: > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:370:25: error: âJSONRPC_PARSE_ERROR_MSGâ undeclared (first use in this function) > 370 | return (JSONRPC_PARSE_ERROR_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~ >../src/cli.c: In function âcli_build_assetâ: >../src/cli.c:1266:9: warning: âSHA256_Initâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1266 | (void)SHA256_Init(&sctx); > | ^ >In file included from /usr/include/openssl/x509.h:41, > from /usr/include/openssl/pem.h:23, > from ../src/cli.c:27: >/usr/include/openssl/sha.h:73:27: note: declared here > 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); > | ^~~~~~~~~~~ >../src/cli.c:1267:9: warning: âSHA256_Updateâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1267 | (void)SHA256_Update(&sctx, base, st.st_size); > | ^ >/usr/include/openssl/sha.h:74:27: note: declared here > 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, > | ^~~~~~~~~~~~~ >../src/cli.c:1268:9: warning: âSHA256_Finalâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1268 | (void)SHA256_Final(digest, &sctx); > | ^ >/usr/include/openssl/sha.h:76:27: note: declared here > 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); > | ^~~~~~~~~~~~ >../src/cli.c: In function âcli_generate_certsâ: >../src/cli.c:1474:9: warning: âRSA_newâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1474 | if ((kpair = RSA_new()) == NULL) > | ^~ >In file included from /usr/include/openssl/x509.h:36: >/usr/include/openssl/rsa.h:201:28: note: declared here > 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); > | ^~~~~~~ >../src/cli.c:1481:9: warning: âRSA_generate_key_exâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1481 | if (!RSA_generate_key_ex(kpair, 2048, e, NULL)) > | ^~ >/usr/include/openssl/rsa.h:260:27: note: declared here > 260 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, > | ^~~~~~~~~~~~~~~~~~~ >../src/cli.c:1486:9: warning: âEVP_PKEY_assignâ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] > 1486 | if (!EVP_PKEY_assign_RSA(pkey, kpair)) > | ^~ >In file included from /usr/include/openssl/pem.h:22: >/usr/include/openssl/evp.h:1328:5: note: declared here > 1328 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:371:14: error: âJSONRPC_INVALID_REQUESTâ undeclared (first use in this function); did you mean âRSA_R_INVALID_REQUESTâ? > 371 | case JSONRPC_INVALID_REQUEST: > | ^~~~~~~~~~~~~~~~~~~~~~~ > | RSA_R_INVALID_REQUEST >In file included from include/kore/kore.h:27, > from src/curl.c:21: >src/curl.c: In function âkore_curl_cleanupâ: >src/curl.c:206:24: error: invalid use of undefined type âstruct http_headerâ > 206 | next = TAILQ_NEXT(hdr, list); > | ^~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/curl.c:207:17: error: invalid use of undefined type âstruct http_headerâ > 207 | TAILQ_REMOVE(&client->http.resp_hdrs, hdr, list); > | ^~~~~~~~~~~~ >src/jsonrpc.c:372:25: error: âJSONRPC_INVALID_REQUEST_MSGâ undeclared (first use in this function); did you mean âRSA_R_INVALID_REQUESTâ? > 372 | return (JSONRPC_INVALID_REQUEST_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > | RSA_R_INVALID_REQUEST >src/curl.c:208:32: error: âhttp_header_poolâ undeclared (first use in this function); did you mean âhttp_headerâ? > 208 | kore_pool_put(&http_header_pool, hdr); > | ^~~~~~~~~~~~~~~~ > | http_header >src/curl.c:208:32: note: each undeclared identifier is reported only once for each function it appears in >src/curl.c: In function âkore_curl_bind_requestâ: >src/curl.c:305:9: warning: implicit declaration of function âhttp_request_sleepâ [-Wimplicit-function-declaration] > 305 | http_request_sleep(req); > | ^~~~~~~~~~~~~~~~~~ >src/curl.c:308:30: error: invalid use of undefined type âstruct http_requestâ > 308 | LIST_INSERT_HEAD(&req->chandles, client, list); > | ^~ >src/curl.c:308:30: error: invalid use of undefined type âstruct http_requestâ > 308 | LIST_INSERT_HEAD(&req->chandles, client, list); > | ^~ >src/curl.c:308:30: error: invalid use of undefined type âstruct http_requestâ > 308 | LIST_INSERT_HEAD(&req->chandles, client, list); > | ^~ >src/curl.c:308:30: error: invalid use of undefined type âstruct http_requestâ > 308 | LIST_INSERT_HEAD(&req->chandles, client, list); > | ^~ >src/jsonrpc.c:373:14: error: âJSONRPC_METHOD_NOT_FOUNDâ undeclared (first use in this function) > 373 | case JSONRPC_METHOD_NOT_FOUND: > | ^~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c -o obj/version.o obj/version.c >x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/usr"' -DTLS_BACKEND_OPENSSL -DKORE_NO_HTTP -DKORE_USE_TASKS -DKORE_USE_JSONRPC -DKORE_USE_CURL -D_GNU_SOURCE=1 -c src/kore.c -o obj/kore.o >src/curl.c: In function âkore_curl_http_setupâ: >src/curl.c:409:14: error: âHTTP_METHOD_GETâ undeclared (first use in this function) > 409 | case HTTP_METHOD_GET: > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:374:25: error: âJSONRPC_METHOD_NOT_FOUND_MSGâ undeclared (first use in this function) > 374 | return (JSONRPC_METHOD_NOT_FOUND_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >src/curl.c:410:14: error: âHTTP_METHOD_OPTIONSâ undeclared (first use in this function) > 410 | case HTTP_METHOD_OPTIONS: > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:375:14: error: âJSONRPC_INVALID_PARAMSâ undeclared (first use in this function) > 375 | case JSONRPC_INVALID_PARAMS: > | ^~~~~~~~~~~~~~~~~~~~~~ >src/curl.c:412:14: error: âHTTP_METHOD_HEADâ undeclared (first use in this function) > 412 | case HTTP_METHOD_HEAD: > | ^~~~~~~~~~~~~~~~ >src/curl.c:415:14: error: âHTTP_METHOD_PUTâ undeclared (first use in this function) > 415 | case HTTP_METHOD_PUT: > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:376:25: error: âJSONRPC_INVALID_PARAMS_MSGâ undeclared (first use in this function) > 376 | return (JSONRPC_INVALID_PARAMS_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >src/curl.c:419:14: error: âHTTP_METHOD_PATCHâ undeclared (first use in this function) > 419 | case HTTP_METHOD_PATCH: > | ^~~~~~~~~~~~~~~~~ >src/jsonrpc.c:377:14: error: âJSONRPC_INTERNAL_ERRORâ undeclared (first use in this function); did you mean âSSL_AD_INTERNAL_ERRORâ? > 377 | case JSONRPC_INTERNAL_ERROR: > | ^~~~~~~~~~~~~~~~~~~~~~ > | SSL_AD_INTERNAL_ERROR >src/curl.c:420:14: error: âHTTP_METHOD_DELETEâ undeclared (first use in this function) > 420 | case HTTP_METHOD_DELETE: > | ^~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:378:25: error: âJSONRPC_INTERNAL_ERROR_MSGâ undeclared (first use in this function) > 378 | return (JSONRPC_INTERNAL_ERROR_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >src/curl.c:421:25: warning: implicit declaration of function âhttp_method_textâ [-Wimplicit-function-declaration] > 421 | mname = http_method_text(method); > | ^~~~~~~~~~~~~~~~ >src/curl.c:421:23: warning: assignment to âconst char *â from âintâ makes pointer from integer without a cast [-Wint-conversion] > 421 | mname = http_method_text(method); > | ^ >src/curl.c:423:14: error: âHTTP_METHOD_POSTâ undeclared (first use in this function) > 423 | case HTTP_METHOD_POST: > | ^~~~~~~~~~~~~~~~ >src/jsonrpc.c:379:14: error: âJSONRPC_SERVER_ERRORâ undeclared (first use in this function) > 379 | case JSONRPC_SERVER_ERROR: > | ^~~~~~~~~~~~~~~~~~~~ >src/curl.c: In function âkore_curl_http_get_headerâ: >src/curl.c:494:9: error: invalid use of undefined type âstruct http_headerâ > 494 | TAILQ_FOREACH(hdr, &(client->http.resp_hdrs), list) { > | ^~~~~~~~~~~~~ >src/curl.c:495:36: error: invalid use of undefined type âstruct http_headerâ > 495 | if (!strcasecmp(hdr->header, header)) { > | ^~ >src/curl.c:496:35: error: invalid use of undefined type âstruct http_headerâ > 496 | *out = hdr->value; > | ^~ >src/jsonrpc.c:380:25: error: âJSONRPC_SERVER_ERROR_MSGâ undeclared (first use in this function) > 380 | return (JSONRPC_SERVER_ERROR_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~ >src/curl.c: In function âkore_curl_http_parse_headersâ: >src/curl.c:509:57: error: âHTTP_REQ_HEADER_MAXâ undeclared (first use in this function) > 509 | char *value, *hbuf, *headers[HTTP_REQ_HEADER_MAX]; > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:381:14: error: âJSONRPC_LIMIT_REACHEDâ undeclared (first use in this function) > 381 | case JSONRPC_LIMIT_REACHED: > | ^~~~~~~~~~~~~~~~~~~~~ >src/curl.c:523:30: warning: implicit declaration of function âhttp_validate_headerâ [-Wimplicit-function-declaration] > 523 | if ((value = http_validate_header(headers[i])) == NULL) > | ^~~~~~~~~~~~~~~~~~~~ >src/curl.c:529:38: error: âhttp_header_poolâ undeclared (first use in this function); did you mean âhttp_headerâ? > 529 | hdr = kore_pool_get(&http_header_pool); > | ^~~~~~~~~~~~~~~~ > | http_header >src/curl.c:530:20: error: invalid use of undefined type âstruct http_headerâ > 530 | hdr->header = headers[i]; > | ^~ >src/curl.c:531:20: error: invalid use of undefined type âstruct http_headerâ > 531 | hdr->value = value; > | ^~ >src/curl.c:532:17: error: invalid use of undefined type âstruct http_headerâ > 532 | TAILQ_INSERT_TAIL(&(client->http.resp_hdrs), hdr, list); > | ^~~~~~~~~~~~~~~~~ >src/curl.c:532:17: error: invalid use of undefined type âstruct http_headerâ > 532 | TAILQ_INSERT_TAIL(&(client->http.resp_hdrs), hdr, list); > | ^~~~~~~~~~~~~~~~~ >src/curl.c:532:17: error: invalid use of undefined type âstruct http_headerâ > 532 | TAILQ_INSERT_TAIL(&(client->http.resp_hdrs), hdr, list); > | ^~~~~~~~~~~~~~~~~ >src/curl.c:509:49: warning: unused variable âheadersâ [-Wunused-variable] > 509 | char *value, *hbuf, *headers[HTTP_REQ_HEADER_MAX]; > | ^~~~~~~ >src/jsonrpc.c:382:25: error: âJSONRPC_LIMIT_REACHED_MSGâ undeclared (first use in this function) > 382 | return (JSONRPC_LIMIT_REACHED_MSG); > | ^~~~~~~~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:389:22: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 389 | jsonrpc_error(struct jsonrpc_request *req, int code, const char *msg) > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:389:1: warning: no previous prototype for âjsonrpc_errorâ [-Wmissing-prototypes] > 389 | jsonrpc_error(struct jsonrpc_request *req, int code, const char *msg) > | ^~~~~~~~~~~~~ >src/jsonrpc.c: In function âjsonrpc_errorâ: >src/jsonrpc.c:396:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 396 | if (req->id == NULL) > | ^~ >src/jsonrpc.c:399:17: error: invalid use of undefined type âstruct jsonrpc_requestâ > 399 | if ((req->gen = yajl_gen_alloc(NULL)) == NULL) { > | ^~ >src/jsonrpc.c:404:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 404 | yajl_gen_config(req->gen, yajl_gen_beautify, > | ^~ >src/jsonrpc.c:405:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 405 | req->flags & yajl_gen_beautify); > | ^~ >src/jsonrpc.c:411:36: error: invalid use of undefined type âstruct jsonrpc_requestâ > 411 | size_t start = req->buf.offset; > | ^~ >src/jsonrpc.c:412:38: error: invalid use of undefined type âstruct jsonrpc_requestâ > 412 | kore_buf_appendf(&req->buf, "%d", code); > | ^~ >src/jsonrpc.c:413:55: error: invalid use of undefined type âstruct jsonrpc_requestâ > 413 | msg_fallback = kore_buf_stringify(&req->buf, NULL) + start; > | ^~ >src/jsonrpc.c:416:46: warning: passing argument 1 of âwrite_errorâ from incompatible pointer type [-Wincompatible-pointer-types] > 416 | if (YAJL_GEN_KO(status = write_error(req, code, > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:330:37: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 330 | write_error(struct jsonrpc_request *req, int code, const char *message) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/curl.c: In function âcurl_processâ: >src/curl.c:636:25: warning: implicit declaration of function âhttp_request_wakeupâ [-Wimplicit-function-declaration] > 636 | http_request_wakeup(client->req); > | ^~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:423:9: warning: implicit declaration of function âhttp_response_headerâ [-Wimplicit-function-declaration] > 423 | http_response_header(req->http, "content-type", "application/json"); > | ^~~~~~~~~~~~~~~~~~~~ >src/jsonrpc.c:423:33: error: invalid use of undefined type âstruct jsonrpc_requestâ > 423 | http_response_header(req->http, "content-type", "application/json"); > | ^~ >src/jsonrpc.c:424:29: error: invalid use of undefined type âstruct jsonrpc_requestâ > 424 | yajl_gen_get_buf(req->gen, &body, &body_len); > | ^~ >src/jsonrpc.c:426:9: warning: implicit declaration of function âhttp_responseâ; did you mean âopen_responseâ? [-Wimplicit-function-declaration] > 426 | http_response(req->http, HTTP_STATUS_OK, body, body_len); > | ^~~~~~~~~~~~~ > | open_response >src/jsonrpc.c:426:26: error: invalid use of undefined type âstruct jsonrpc_requestâ > 426 | http_response(req->http, HTTP_STATUS_OK, body, body_len); > | ^~ >src/jsonrpc.c:426:34: error: âHTTP_STATUS_OKâ undeclared (first use in this function); did you mean âASYNC_STATUS_OKâ? > 426 | http_response(req->http, HTTP_STATUS_OK, body, body_len); > | ^~~~~~~~~~~~~~ > | ASYNC_STATUS_OK >src/jsonrpc.c:427:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 427 | if (req->gen != NULL) > | ^~ >src/jsonrpc.c:428:35: error: invalid use of undefined type âstruct jsonrpc_requestâ > 428 | yajl_gen_clear(req->gen); > | ^~ >src/jsonrpc.c:429:33: warning: passing argument 1 of âjsonrpc_destroy_requestâ from incompatible pointer type [-Wincompatible-pointer-types] > 429 | jsonrpc_destroy_request(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:74:49: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:432:26: error: invalid use of undefined type âstruct jsonrpc_requestâ > 432 | http_response(req->http, HTTP_STATUS_INTERNAL_ERROR, NULL, 0); > | ^~ >make: *** [Makefile:278: obj/curl.o] Error 1 >make: *** Waiting for unfinished jobs.... >src/jsonrpc.c:432:34: error: âHTTP_STATUS_INTERNAL_ERRORâ undeclared (first use in this function); did you mean âSSL_AD_INTERNAL_ERRORâ? > 432 | http_response(req->http, HTTP_STATUS_INTERNAL_ERROR, NULL, 0); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > | SSL_AD_INTERNAL_ERROR >src/jsonrpc.c:433:33: warning: passing argument 1 of âjsonrpc_destroy_requestâ from incompatible pointer type [-Wincompatible-pointer-types] > 433 | jsonrpc_destroy_request(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:74:49: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c: At top level: >src/jsonrpc.c:438:23: warning: âstruct jsonrpc_requestâ declared inside parameter list will not be visible outside of this definition or declaration > 438 | jsonrpc_result(struct jsonrpc_request *req, > | ^~~~~~~~~~~~~~~ >src/jsonrpc.c:438:1: warning: no previous prototype for âjsonrpc_resultâ [-Wmissing-prototypes] > 438 | jsonrpc_result(struct jsonrpc_request *req, > | ^~~~~~~~~~~~~~ >src/jsonrpc.c: In function âjsonrpc_resultâ: >src/jsonrpc.c:444:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 444 | if (req->id == NULL) > | ^~ >src/jsonrpc.c:447:17: error: invalid use of undefined type âstruct jsonrpc_requestâ > 447 | if ((req->gen = yajl_gen_alloc(NULL)) == NULL) { > | ^~ >src/jsonrpc.c:452:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 452 | yajl_gen_config(req->gen, yajl_gen_beautify, > | ^~ >src/jsonrpc.c:453:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 453 | req->flags & yajl_gen_beautify); > | ^~ >src/jsonrpc.c:455:28: error: invalid use of undefined type âstruct jsonrpc_requestâ > 455 | yajl_gen_config(req->gen, yajl_gen_validate_utf8, 0); > | ^~ >src/jsonrpc.c:457:42: error: invalid use of undefined type âstruct jsonrpc_requestâ > 457 | if (YAJL_GEN_KO(open_response(req->gen, req->id))) > | ^~ >src/jsonrpc.c:457:52: error: invalid use of undefined type âstruct jsonrpc_requestâ > 457 | if (YAJL_GEN_KO(open_response(req->gen, req->id))) > | ^~ >src/jsonrpc.c:459:50: error: invalid use of undefined type âstruct jsonrpc_requestâ > 459 | if (YAJL_GEN_KO(YAJL_GEN_CONST_STRING(req->gen, "result"))) > | ^~ >src/jsonrpc.c:463:47: error: invalid use of undefined type âstruct jsonrpc_requestâ > 463 | if (YAJL_GEN_KO(yajl_gen_map_close(req->gen))) > | ^~ >src/jsonrpc.c:466:33: error: invalid use of undefined type âstruct jsonrpc_requestâ > 466 | http_response_header(req->http, "content-type", "application/json"); > | ^~ >src/jsonrpc.c:467:29: error: invalid use of undefined type âstruct jsonrpc_requestâ > 467 | yajl_gen_get_buf(req->gen, &body, &body_len); > | ^~ >src/jsonrpc.c:469:26: error: invalid use of undefined type âstruct jsonrpc_requestâ > 469 | http_response(req->http, HTTP_STATUS_OK, body, body_len); > | ^~ >src/jsonrpc.c:469:34: error: âHTTP_STATUS_OKâ undeclared (first use in this function); did you mean âASYNC_STATUS_OKâ? > 469 | http_response(req->http, HTTP_STATUS_OK, body, body_len); > | ^~~~~~~~~~~~~~ > | ASYNC_STATUS_OK >src/jsonrpc.c:470:16: error: invalid use of undefined type âstruct jsonrpc_requestâ > 470 | if (req->gen != NULL) > | ^~ >src/jsonrpc.c:471:35: error: invalid use of undefined type âstruct jsonrpc_requestâ > 471 | yajl_gen_clear(req->gen); > | ^~ >src/jsonrpc.c:472:33: warning: passing argument 1 of âjsonrpc_destroy_requestâ from incompatible pointer type [-Wincompatible-pointer-types] > 472 | jsonrpc_destroy_request(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:74:49: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >src/jsonrpc.c:475:26: error: invalid use of undefined type âstruct jsonrpc_requestâ > 475 | http_response(req->http, HTTP_STATUS_INTERNAL_ERROR, NULL, 0); > | ^~ >src/jsonrpc.c:475:34: error: âHTTP_STATUS_INTERNAL_ERRORâ undeclared (first use in this function); did you mean âSSL_AD_INTERNAL_ERRORâ? > 475 | http_response(req->http, HTTP_STATUS_INTERNAL_ERROR, NULL, 0); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > | SSL_AD_INTERNAL_ERROR >src/jsonrpc.c:476:33: warning: passing argument 1 of âjsonrpc_destroy_requestâ from incompatible pointer type [-Wincompatible-pointer-types] > 476 | jsonrpc_destroy_request(req); > | ^~~ > | | > | struct jsonrpc_request * >src/jsonrpc.c:74:49: note: expected âstruct jsonrpc_request *â but argument is of type âstruct jsonrpc_request *â > 74 | jsonrpc_destroy_request(struct jsonrpc_request *req) > | ~~~~~~~~~~~~~~~~~~~~~~~~^~~ >make: *** [Makefile:278: obj/jsonrpc.o] Error 1 >x86_64-pc-linux-gnu-gcc obj/cli.o -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic -lssl -lcrypto -lpthread -lyajl -lcurl -ldl -lcrypto -o kodev >make[1]: Leaving directory '/var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3/kodev' > * ERROR: www-servers/kore-4.2.3::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=www-servers/kore-4.2.3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=www-servers/kore-4.2.3::gentoo'`. > * The complete build log is located at '/var/log/portage/www-servers:kore-4.2.3:20230605-081314.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-servers/kore-4.2.3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/www-servers/kore-4.2.3/temp/environment'. > * Working directory: '/var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3' > * S: '/var/tmp/portage/www-servers/kore-4.2.3/work/kore-4.2.3' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 907902
:
863336
|
863337
|
863338
|
863339
|
863340
|
863341
| 863342