Skip to content

Hostname on esp32 #26

@lorenzo-pirchio

Description

@lorenzo-pirchio

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

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