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

echo_server and echo_client sample code builds fail for native_posix_64 #42746

Closed
sagarshah-leg opened this issue Feb 11, 2022 · 3 comments
Closed
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug

Comments

@sagarshah-leg
Copy link
Contributor

sagarshah-leg commented Feb 11, 2022

Building echo_server and echo_client sample code fails for the native_posix_64 board with the following error:

zephyr/subsys/net/ip/tcp2.c:17:10: fatal error: mbedtls/md5.h: No such file or directory
17 | #include <mbedtls/md5.h>
| ^~~~~~~~~~~~~~~
compilation terminated.

I have narrowed it down to CONFIG_NET_TCP config setting in prj.conf.
CONFIG_NET_TCP=y causes the error. Setting it to "n" avoids the error.

To Reproduce
Steps to reproduce the behavior:

  1. west build -b native_posix_64 -p always zephyr/samples/net/sockets/echo_server/
  2. see build error
  3. west build -b native_posix_64 -p always zephyr/samples/net/sockets/echo_client/
  4. see build error

Expected behavior
The builds should compile without errors with CONFIG_NET_TCP=y.

Impact
Medium impact, potential showstopper.

Logs and console output

Environment (please complete the following information):

  • OS: Linux
  • Zephyr SDK v 2.7.99
  • Commit SHA or Version used

Additional context

@sagarshah-leg sagarshah-leg added the bug The issue is a bug, or the PR is fixing a bug label Feb 11, 2022
@rlubos
Copy link
Contributor

rlubos commented Feb 14, 2022

@sagarshah-leg I'm not able to reproduce the issue - perhaps try calling west update? It seems that there's a problem with mbed TLS, you're likely using some older revision (there was a bump to mbed TLS 3.0.0 not long ago).

@sagarshah-leg
Copy link
Contributor Author

Hi @rlubos I've already performed west update and it didn't solve the issue. For my info, where is it supposed to get the md5.h file from? Zephyr's zephyr/include/ directory doesn't seem to have that mbedtls/ dir.

@rlubos
Copy link
Contributor

rlubos commented Feb 15, 2022

Zephyr's zephyr/include/ directory doesn't seem to have that mbedtls/ dir.

It's shipped with mbed TLS, it's in modules/crypto/mbedtls/include/ (looking from the west root directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants