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

Broken MK_PLUGIN_{CHEETAH,LOGGER,TLS} #336

Open
ffontaine opened this issue May 6, 2021 · 1 comment
Open

Broken MK_PLUGIN_{CHEETAH,LOGGER,TLS} #336

ffontaine opened this issue May 6, 2021 · 1 comment

Comments

@ffontaine
Copy link

MK_PLUGIN_TLS is broken because it still uses mk_server_config which is not defined anywhere since c1c0445:

/home/buildroot/autobuild/run/instance-3/output-1/build/monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b/plugins/tls/tls.c: In function 'mk_tls_plugin_init':
/home/buildroot/autobuild/run/instance-3/output-1/build/monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b/plugins/tls/tls.c:734:42: error: dereferencing pointer to incomplete type 'struct mk_server_config'
  734 |     mk_list_foreach(head, &mk_api->config->listeners) {
      |                                          ^~

The issue is also affecting MK_PLUGIN_CHEETAH and MK_PLUGIN_LOGGER.

Full build log can be found here: http://autobuild.buildroot.org/results/da8/da87d2c9bf5afe52400f921d62c0ec777c9fe0a2/build-end.log

buildroot-auto-update pushed a commit to buildroot/buildroot that referenced this issue May 8, 2021
As stated in commit 26a7d91, upstream
is aware than the lack of release is an issue but no comments since
2018: monkey/monkey#276

Moreover, TLS support is broken since 2016 but again upstream does not
seem to care about it: monkey/monkey#336

So just drop monkey

Fixes:
 - http://autobuild.buildroot.org/results/0626ebab4f084d9b97d6696c7d4ebf7760d776a3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
@rittneje
Copy link
Contributor

Given the commit you linked, my guess is this line needs to be changed to struct mk_server *config;.

struct mk_server_config *config;

The non-existent type is also referenced in a few other places.

struct mk_server_config *mk_config_init();

struct mk_server_config *mk_config;

int mk_logger_master_init(struct mk_server_config *config)

Also, that mk_config_init() function is not defined anywhere, so that prototype should probably just be removed.

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