On 03/04/14 12:37, Aníbal Monsalve Salazar wrote > Could someone try to build trafficserver 4.1.2-1.1 with the patch below > on kfreebsd-amd64 or kfreebsd-i386 for me please? Sorry, it didn't work. The code you tried to use on kFreeBSD is the same as if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_NAME) The preceding code comment points out that: > // This define is from Linux's <sys/prctl.h> and is most likely very > // Linux specific... So we don't have sys/prctl.h, prctl() or PRCTL_SET_NAME: > checking sys/prctl.h usability... no > checking sys/prctl.h presence... no > checking for sys/prctl.h... no and so it fails with: > c++ -DHAVE_CONFIG_H -I. -I../../lib/ts -I../../lib -I../../lib/records -I../../lib/ts -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 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -std=c++11 -pipe -Wall -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -mcx16 -MT EventSystem.o -MD -MP -MF .deps/EventSystem.Tpo -c -o EventSystem.o EventSystem.cc > In file included from ../../lib/ts/ink_llqueue.h:33:0, > from ../../lib/ts/libts.h:60, > from P_EventSystem.h:34, > from EventSystem.cc:31: > ../../lib/ts/ink_thread.h: In function ‘void ink_set_thread_name(const char*)’: > ../../lib/ts/ink_thread.h:317:9: error: ‘PR_SET_NAME’ was not declared in this scope > prctl(PR_SET_NAME, name, 0, 0, 0); > ^ > ../../lib/ts/ink_thread.h:317:35: error: ‘prctl’ was not declared in this scope > prctl(PR_SET_NAME, name, 0, 0, 0); > ^ > make[3]: *** [EventSystem.o] Error 1 My feeling is that maybe this function should be a no-op for us. Regards, -- Steven Chamberlain steven@pyro.eu.org
Attachment:
signature.asc
Description: OpenPGP digital signature