lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Bug(BUILDING): lwip/contrib/examples/example_app/lwipop


From: Oscar pernia moreno
Subject: Re: [lwip-devel] Bug(BUILDING): lwip/contrib/examples/example_app/lwipopts.h not working
Date: Sun, 21 Apr 2024 02:56:36 -0400

The file "lwip/src/api/sockets.c" references that undefined function by including that header file.

El dom, 21 abr 2024 a las 2:54, Oscar pernia moreno (<oscarperniamoreno@gmail.com>) escribió:
Hello,

I hope you find well, I was trying to use lwip for the first time and reading the "lwip/BUILDING" file it says:
"LWIP_INCLUDE_DIRS" that contains the include base paths
- for lwIP itself (${LWIP_DIR}/src/include)
- for lwIP contrib if you use it (${LWIP_DIR}/contrib)
- to a directory containing an OS port
- to a directory containing lwipopts.h

Example:
set (LWIP_INCLUDE_DIRS
"${LWIP_DIR}/src/include"
"${LWIP_DIR}/contrib"
"${LWIP_DIR}/contrib/ports/unix/port/include"
"${LWIP_DIR}/contrib/examples/example_app"
)

It says I have to declare a "lwipopts.h" or use the example one. I'm using exactly the same "LWIP_INCLUDE_DIRS" variable definition as "BUILDING".
Found out that the file "lwipopts.h" isn't working properly, following is the error:

ERROR_START
/usr/bin/ld: liblwipcore.a(sockets.c.o): en la función `alloc_socket':
sockets.c:(.text+0x2d8): referencia a `lwip_example_app_platform_assert' sin definir
collect2: error: ld devolvió el estado de salida 1
ninja: build stopped: subcommand failed.
ERROR_END (There are more errors similar to this but they all say the same)

There is no definition of function "lwip_example_app_platform_assert" inside of that file. I want to ask if this is intentional or not and how I would solve it.

The last commit of my lwip git copy by writing "git log" command:
INIT_COMMIT
commit 1cc1536e6a7117e23ebaf5546405a843a3e558ae (HEAD -> master, origin/master, origin/HEAD)
Author: Erik Ekman <erik@kryo.se>
Date:   Tue Apr 9 20:11:39 2024 +0200

    test/unit: fix inconsistent nullness check error
   
    Inside a testcase, but still. Trying to address #160
END_COMMIT

Best regards,
Oscar Pernia.

reply via email to

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