[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Tests build fails with "multiple definition of `net_test'"
From: |
Szabolcs Szekelyi |
Subject: |
[lwip-devel] Tests build fails with "multiple definition of `net_test'" |
Date: |
Sun, 13 Dec 2020 19:58:39 -0500 |
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] Tests build fails with "multiple definition of `net_test'",
Szabolcs Szekelyi <=