Skip to content

Compile error with esp-idf-5.x #6

Description

@AxelLin
  1. tcpip_adapter_init no longer exist in esp-idf-5.x
/home/axel/esp/esp-idf-libssh/examples/sshd/main/wifi.c:28:5: error: implicit declaration of function 'tcpip_adapter_init' [-Werror=implicit-function-declaration]
   28 |     tcpip_adapter_init();
      |     ^~~~~~~~~~~~~~~~~~
  1. There are several format error as below:
/home/axel/esp/esp-idf-libssh/components/libssh/libssh/src/auth.c:1579:61: note: format string is defined here
 1579 |                 "Too much prompts requested by the server: %u (0x%.4x)",
      |                                                            ~^
      |                                                             |
      |                                                             unsigned int
      |                                                            %lu
/home/axel/esp/esp-idf-libssh/components/libssh/libssh/src/auth.c:1579:17: error: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
 1579 |                 "Too much prompts requested by the server: %u (0x%.4x)",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1580 |                 nprompts, nprompts);
      |                           ~~~~~~~~
      |                           |
      |                           uint32_t {aka long unsigned int}
/home/axel/esp/esp-idf-libssh/components/libssh/libssh/include/libssh/priv.h:260:43: note: in definition of macro 'ssh_set_error'
  260 |     _ssh_set_error(error, code, __func__, __VA_ARGS__)
      |                                           ^~~~~~~~~~~
/home/axel/esp/esp-idf-libssh/components/libssh/libssh/src/auth.c:1579:69: note: format string is defined here
 1579 |                 "Too much prompts requested by the server: %u (0x%.4x)",
      |                                                                  ~~~^
      |                                                                     |
      |                                                                     unsigned int
      |                                                                  %.4lx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions