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

Hostname on esp32 #26

Open
lorenzo-pirchio opened this issue Jun 19, 2024 · 0 comments
Open

Hostname on esp32 #26

lorenzo-pirchio opened this issue Jun 19, 2024 · 0 comments

Comments

@lorenzo-pirchio
Copy link

lorenzo-pirchio commented Jun 19, 2024

Hi,
I'm developing a xmpp client for esp32 using rust.
But I have problems with the dependencies, especially with this crate.
When I compile the project I get this error generated by the linker:
note: [ldproxy] Running ldproxy
Error: Linker C:/.embuild/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe failed: exit code: 1
STDERR OUTPUT:
c:/.embuild/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\S3WifiC\xtensa-esp32s3-espidf\debug\deps\libhostname-c83a955bc1dd5dc9.rlib(hostname-c83a955bc1dd5dc9.1wq21g0sr3imvl6y.rcgu.o):(.literal._ZN8hostname3nix3get17hbd00b343233444fcE+0x1c): undefined reference to `gethostname'

I'm trying to add esp-idf-sys::gethostname instead of libc::gethostname but I have been having a lot of difficulties due to lack of documentation

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

1 participant