buglwIP - A Lightweight TCP/IP stack - Bugs: bug #60592, problems compiling lwip module...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60592: problems compiling lwip module inside pico-extras

Submitter:  Leandro Loureiro <lealoureiro>
Submitted:  Wed 12 May 2021 04:54:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Compiler Warning Status:  Invalid
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Wed 12 May 2021 07:35:34 PM UTC, comment #1: 

No, no the right place. I'm not sure what's wrong, but your build system obviously is missing acd.c.

Our prebuilt cmake helper files do include this, so it's probably a problem in the "pico" base build files somewhere?

In any case, if you want to reach more users, write a mail to our lwip-users list instead of adding a bug here.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 12 May 2021 04:54:53 PM UTC, original submission:  

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

Leandro Loureiro <lealoureiro>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by lealoureiro (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-12 goldsimon StatusNone Invalid
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code