Re: trafficserver 4.1.2-1.1 FTBFS on kfreebsd-*
../../lib/ts/ink_thread.h: In function 'void ink_set_thread_name(const char*)':
../../lib/ts/ink_thread.h:317:26: error: 'pthread_setname_np' was not declared in this scope
pthread_setname_np(name);
The problem is slightly different:
checking for 1-parameter version of pthread_setname_np()... yes
checking for 2-parameter version of pthread_setname_np()... yes
checking for 2-parameter version of pthread_set_name_np()... no
The primary reason is missing prototype in pthread.h,
the library call pthread_setname_np (with 2 parametres) have been added
for kfreebsd recently, but the header have not been updated.
I will prepare fix in svn for next eglibc upload.
Petr
config.log;
configure:27139: checking for 1-parameter version of pthread_setname_np()
configure:27163: cc -o conftest -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -pipe -Wall
-feliminate-unused-debug-symbols -fno-strict-aliasing -march=i586
-D_FORTIFY_SOURCE=2 -I/usr/local/include -Dkfreebsd -Dfreebsd
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT
-I/usr/include/tcl8.6 -Wl,-z,relro -L/usr/local/lib conftest.c -lpcre
-lexpat -llzma -lz -lssl -lcrypto -lcrypt -lpthread -ldl >&5
conftest.c: In function 'main':
conftest.c:126:9: warning: implicit declaration of function
'pthread_setname_np' [-Wimplicit-function-declaration]
pthread_setname_np("conftest");
^
configure:27163: $? = 0
configure:27168: result: yes
configure:27181: checking for 2-parameter version of pthread_setname_np()
configure:27205: cc -o conftest -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -pipe -Wall
-feliminate-unused-debug-symbols -fno-strict-aliasing -march=i586
-D_FORTIFY_SOURCE=2 -I/usr/local/include -Dkfreebsd -Dfreebsd
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT
-I/usr/include/tcl8.6 -Wl,-z,relro -L/usr/local/lib conftest.c -lpcre
-lexpat -llzma -lz -lssl -lcrypto -lcrypt -lpthread -ldl >&5
conftest.c: In function 'main':
conftest.c:127:9: warning: implicit declaration of function
'pthread_setname_np' [-Wimplicit-function-declaration]
pthread_setname_np(pthread_self(), "conftest");
^
configure:,27205: $? = 0
configure:27210: result: yes
Reply to: