Ericsson / libpaf

Pathfinder service discovery client library
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Compilation/linking problems on Ubuntu Bionic (18.04) with gcc 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) #18

Closed k3sail closed 2 years ago

k3sail commented 2 years ago

rc/util.c: In function ‘ut_net_ns_enter’: src/util.c:249:57: warning: implicit declaration of function ‘gettid’; did you mean ‘getgid’? [-Wimplicit-function-declaration] snprintf(old_ns, sizeof(old_ns), "/proc/%d/ns/net", gettid()); ^~ getgid

libtool: link: gcc -Wall -g -O2 -o .libs/client example/client-client.o ./.libs/libpaf.so -llttng-ust -ljansson -lxcm ./.libs/libpaf.so: undefined reference to `gettid' collect2: error: ld returned 1 exit status