esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

Not being able to build the code

Open EmersonGjR opened this issue 10 months ago • 1 comments

im trying to build using esp-idf, and every version i try, got the same output of this error: /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj):(.literal.apply_portmap_tab+0x8): undefined reference to ip_portmap_add' /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj):(.literal.delete_portmap_tab+0x0): undefined reference to ip_portmap_remove' /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj): in function apply_portmap_tab': /home/mersin/esp/esp32_nat_router/esp32_nat_router/main/esp32_nat_router.c:324: undefined reference to ip_portmap_add' /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj): in function delete_portmap_tab': /home/mersin/esp/esp32_nat_router/esp32_nat_router/main/esp32_nat_router.c:134: undefined reference to ip_portmap_remove' /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj): in function add_portmap': /home/mersin/esp/esp32_nat_router/esp32_nat_router/main/esp32_nat_router.c:201: undefined reference to ip_portmap_add' /home/mersin/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(esp32_nat_router.c.obj): in function del_portmap': /home/mersin/esp/esp32_nat_router/esp32_nat_router/main/esp32_nat_router.c:227: undefined reference to ip_portmap_remove' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1, output of the command is in the /home/mersin/esp/esp32_nat_router/esp32_nat_router/build/log/idf_py_stderr_output_8810 and /home/mersin/esp/esp32_nat_router/esp32_nat_router/build/log/idf_py_stdout_output_8810

can someone help me ?

EmersonGjR avatar Jan 21 '25 21:01 EmersonGjR

I haven't build it myself, but check out what sliacanm did in https://github.com/martin-ger/esp32_nat_router/issues/162 someone verified that it works.

georgepapas123 avatar Feb 07 '25 13:02 georgepapas123