lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Lwip linker error in Mac


From: arun . mahasenan
Subject: Re: [lwip-devel] Lwip linker error in Mac
Date: Thu, 11 Feb 2021 14:38:55 -0600

Hi Simon,
I used the CMake system for building. Everything was going well till I disabled IPv4 and enabled only IPv6.

My colleague faced the same problem in Mac. He moved to Linux and it worked.

I believe this is something specific to Mac.

Regards
  Arun Mahasenan
Wireless Technologies and Ecosystems  
arun.mahasenan@apple.com

On Feb 11, 2021, at 2:32 PM, goldsimon@gmx.de wrote:

Am 10.02.2021 um 20:53 schrieb Arun via lwip-devel:
Hello All,

I tried to run the lwip example application in Mac OS with the options
as below, but I get a linker error “ip_data” symbol not found.
#define LWIP_IPV4 0
#define LWIP_IPV6 1
#define NO_SYS     1

However, if I enable LWIP_IPV4, the undefined symbol error doest appear.

Ip_data is defined in ip.c file, and ip.h file is included in ip6.c file. 

Has anyone come across this issue ?

I'm not aware of any reports like this. How did you compile the sources?
Using the existing CMake files? I'm not sure these have been used for
IPv6-only yet. What I can tell for sure is that with the Win32 VS
project, compiling for IPv6-only works (or worked last time I did that).

Regards,
Simon



Undefined symbols for architecture x86_64:
  "_ip_data", referenced from:
      _ip6_input in liblwipcore.a(ip6.c.o)
      _ip6_input_accept in liblwipcore.a(ip6.c.o)
      _ip6_reass in liblwipcore.a(ip6_frag.c.o)
      _mld6_input in liblwipcore.a(mld6.c.o)
      _nd6_input in liblwipcore.a(nd6.c.o)
      _nd6_send_na in liblwipcore.a(nd6.c.o)
      _raw_input in liblwipcore.a(raw.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[3]: *** [contrib/ports/unix/example_app/example_app] Error 1
make[2]: ***
[contrib/ports/unix/example_app/CMakeFiles/example_app.dir/all] Error 2
make[1]: ***
[contrib/ports/unix/example_app/CMakeFiles/example_app.dir/rule] Error 2
make: *** [example_app] Error 2


Regards
Arun


_______________________________________________
lwip-devel mailing list
lwip-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel




reply via email to

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