Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Error when using -DDISABLE_C_CLUBBY flag

When I put -DDISABLE_C_CLUBBY in my Makefile.build I get an error.
Could you please fix it as I want to disable clubby.

TICC /src/fw/src/sj_updater_clubby.c -> /shelly/dinrelay/.build/sj_updater_clubby.o
"/src/fw/src/sj_updater_clubby.c", line 111: error #225: function "sj_clubby_send_status_resp" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 115: error #225: function "sj_clubby_repl_to_bytes" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 115: error #145: a value of type "int" cannot be used to initialize an entity of type "char *"
"/src/fw/src/sj_updater_clubby.c", line 133: error #225: function "sj_clubby_send_status_resp" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 145: error #225: function "sj_clubby_send_status_resp" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 156: error #225: function "sj_clubby_free_reply" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 215: error #225: function "sj_clubby_bytes_to_reply" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 215: error #515: a value of type "int" cannot be assigned to an entity of type "struct clubby_event *"
"/src/fw/src/sj_updater_clubby.c", line 251: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 251: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 252: error #225: function "sj_clubby_send_status_resp" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 255: error #225: function "sj_clubby_free_reply" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 264: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 267: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 267: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 272: error #395: pointer to incomplete class type is not allowed
"/src/fw/src/sj_updater_clubby.c", line 291: error #225: function "sj_clubby_free_reply" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 292: error #225: function "sj_clubby_create_reply" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 292: error #515: a value of type "int" cannot be assigned to an entity of type "struct clubby_event *"
"/src/fw/src/sj_updater_clubby.c", line 322: error #225: function "sj_clubby_send_status_resp" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 389: error #225: function "sj_clubby_register_global_command" declared implicitly
"/src/fw/src/sj_updater_clubby.c", line 392: error #20: identifier "clubby_cmd_ready" is undefined
22 errors detected in the compilation of "/src/fw/src/sj_updater_clubby.c".

Compilation failure

Comments

  • Do you want to disable clubby but keep JS? Or disable JS as well?
    To disable JS you can add -DCS_DISABLE_JS

  • tsvetan.filevtsvetan.filev Sofia, Bulgaria

    I want to disable both.

    Here is my config:

    APP_CFLAGS = -DCS_DISABLE_JS -DSHSW_DEVICE=SHSW_CCDIN4

    MG_FEATURES = \
    -DMG_DISABLE_JSON_RPC \
    -DMG_DISABLE_SYNC_RESOLVER \
    -DMG_DISABLE_HTTP_DIGEST_AUTH \
    -DMG_DISABLE_MD5 \
    -DMG_DISABLE_SOCKETPAIR \
    -DMG_DISABLE_HTTP_KEEP_ALIVE \
    -DMG_DISABLE_DAV_AUTH \
    -DMG_DISABLE_CGI \
    -DMG_DISABLE_SSI \
    -DMG_DISABLE_DAV \
    -DMG_ENABLE_HTTP_STREAMING_MULTIPART \
    -DMG_NO_BSD_SOCKETS \
    -DMG_LOCALS \
    -DMG_FS_SPIFFS \
    -DDISABLE_C_CLUBBY \
    -DMG_ENABLE_SSL

    Is it correct ?

  • Looks like our bug, will fix

  • tsvetan.filevtsvetan.filev Sofia, Bulgaria

    I tested with the latest changes and now code compiles.
    Tnx.

  • SergeySergey Dublin, Ireland

    Tsvetan, thanks for letting us know

Sign In or Register to comment.