lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #60592] problems compiling lwip module inside pico-ext


From: Leandro Loureiro
Subject: [lwip-devel] [bug #60592] problems compiling lwip module inside pico-extras
Date: Wed, 12 May 2021 12:54:55 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

URL:
  <https://savannah.nongnu.org/bugs/?60592>

                 Summary: problems compiling lwip module inside pico-extras
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: lealoureiro
            Submitted on: Wed 12 May 2021 04:54:53 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

Hello,

Not sure if is the right place to report this issue. I also reported it in
github for pico-extras repo.

I'm having problems to compile lwip lib that is inside pico-extras.



```
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/netif.c.obj:
in function `netif_set_addr':
netif.c:(.text.netif_set_addr+0x7e): undefined reference to
`acd_netif_ip_addr_changed'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
netif.c:(.text.netif_set_addr+0xb6): undefined reference to
`acd_netif_ip_addr_changed'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/timeouts.c.obj:(.rodata.lwip_cyclic_timers+0x2c):
undefined reference to `acd_tmr'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c.obj:
in function `dhcp_recv':
dhcp.c:(.text.dhcp_recv+0x416): undefined reference to `acd_start'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/dhcp.c.obj:
in function `dhcp_start':
dhcp.c:(.text.dhcp_start+0x42): undefined reference to `acd_add'
/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:
CMakeFiles/rmiieth.dir/Users/leandro/Projects/pico-extras/lib/lwip/src/core/ipv4/etharp.c.obj:
in function `etharp_input':
etharp.c:(.text.etharp_input+0x72): undefined reference to `acd_arp_reply'
collect2: error: ld returned 1 exit status
make[2]: *** [rmiieth.elf] Error 1
make[1]: *** [CMakeFiles/rmiieth.dir/all] Error 2
make: *** [all] Error 2
```

The functions are defined inside **acd.c** but seems like this file is not
listed for compilation and thus functions will be missing during linkage.

I'm trying to compile and test this project/repo:
https://github.com/strags/pico-rmiieth , out of the box without modification.


OS: Mac OS X 10.15.7 (also tried inside Debian Docker image)
CMake Version: 3.20.2

Thanks in advance!

Regards,
Leandro




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?60592>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]