[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Tests build fails with "multiple definition of `net_tes
From: |
Erik Ekman |
Subject: |
Re: [lwip-devel] Tests build fails with "multiple definition of `net_test'" |
Date: |
Mon, 14 Dec 2020 07:30:32 +0100 |
You need a fix similar to this:
https://git.savannah.nongnu.org/cgit/lwip.git/commit/test/unit?id=ea111c511e8cc68c1d29be96ca26f59608a48ea3
/Erik
On Mon, 14 Dec 2020 at 02:38, Szabolcs Szekelyi <szabi@aura-labs.cc> wrote:
>
> Hi,
>
> I made a patch that implements a few more netdevice-related ioctls. I wrote
> tests for this change, but I'm unable to compile the unit tests as described
> in https://lists.nongnu.org/archive/html/lwip-devel/2020-08/msg00001.html
>
> ld gives me this error:
>
> /usr/bin/ld: test_dhcp.o:/home/szabi/lwip-contrib/ports/unix/
> check/../../../../lwip/src/../test/unit/dhcp/test_dhcp.c:9: multiple
> definition
> of `net_test'; test_netif.o:/home/szabi/lwip-contrib/ports/unix/
> check/../../../../lwip/src/../test/unit/core/test_netif.c:12: first defined
> here
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:71: lwip_unittests] Error 1
>
> Is this reasonable? Am I doing this the wrong way?
>
> Thanks,
> --
> Szabi
>
>
>
>
> _______________________________________________
> lwip-devel mailing list
> lwip-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-devel