Messages in this thread | | | Date | Mon, 11 Nov 2019 16:55:21 +0100 | From | Olaf Hering <> | Subject | Re: [PATCH v1] tools/hv: async name resolution in kvp_daemon |
| |
Am Sat, 2 Nov 2019 00:18:56 -0400 schrieb Sasha Levin <sashal@kernel.org>:
> make[1]: Leaving directory '/home/sasha/linux/tools/hv' > gcc -O2 -Wall -g -D_GNU_SOURCE -Iinclude -lpthread hv_kvp_daemon-in.o -o hv_kvp_daemon > /usr/bin/ld: hv_kvp_daemon-in.o: in function `kvp_obtain_domain_name': > /home/sasha/linux/tools/hv/hv_kvp_daemon.c:1372: undefined reference to `pthread_create' > /usr/bin/ld: /home/sasha/linux/tools/hv/hv_kvp_daemon.c:1377: undefined reference to `pthread_detach'
Is perhaps '-pthread' instead of -lpthread' required, as indicated by pthread_create(3)? Not sure why it happens to work for me. But I will make this change for the upcoming v2.
Olaf [unhandled content-type:application/pgp-signature] | |