[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: trafficserver 4.1.2-1.1 FTBFS on kfreebsd-*



Hi,

From config.log, these detections are wrong:

> 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 -mcx16 -D_FORTIFY_SOURCE=2 -I/usr/local/include -Dkfreebsd -Dfreebsd -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/tcl8.6 -I/usr/include/libxml2 -Wl,-z,relro -L/usr/local/lib conftest.c -lpcre -llzma -lz -lssl -lcrypto -lcrypt -lpthread -ldl  -lxml2 >&5
> conftest.c: In function 'main':
> conftest.c:128: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 -mcx16 -D_FORTIFY_SOURCE=2 -I/usr/local/include -Dkfreebsd -Dfreebsd -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/tcl8.6 -I/usr/include/libxml2 -Wl,-z,relro -L/usr/local/lib conftest.c -lpcre -llzma -lz -lssl -lcrypto -lcrypt -lpthread -ldl  -lxml2 >&5
> conftest.c: In function 'main':
> conftest.c:129: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

(p.s. it looks like Petr may have already found the reason for this)

which despite the missing prototype, results in these defines:
> D["HAVE_PTHREAD_SETNAME_NP_1"]=" 1"
> D["HAVE_PTHREAD_SETNAME_NP_2"]=" 1"

but we don't really have this function.

If those defines are not set, ink_set_thread_name would be compiled as a
no-op on kFreeBSD and then it builds fine.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: