Package: trafficserver Version: 4.1.2-1.1 Severity: Serious User: debian-...@lists.debian.org Usertags: kfreebsd X-Debbugs-CC: debian-...@lists.debian.org, Dejan Latinovic <dejan.latino...@imgtec.com>
On Thu, 2014-04-03 16:52:56 +0200, Petr Salinger wrote: > On Thu, 2014-04-03 11:37:54 +0000, Aníbal Monsalve Salazar wrote: >> >> On both kfreebsd-amd64 and kfreebsd-i386, trafficserver 4.1.2-1.1 >> FTBFS with the same error message. >> >> Build logs are available at: >> >> https://buildd.debian.org/status/fetch.php?pkg=trafficserver&arch=kfreebsd-amd64&ver=4.1.2-1.1&stamp=1396503334 >> https://buildd.debian.org/status/fetch.php?pkg=trafficserver&arch=kfreebsd-i386&ver=4.1.2-1.1&stamp=1396503411 >> >> The build log extract with the error message is below. >> >> from IOBuffer.cc:28: >> ../../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); >>../../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 Hello, Thank you all for the quick response to this bug. Petr, I would really appreciate a patch for trafficserver with the prototype to fix this bug, until your fix for eglibc is available in unstable. As you could guess we don't have a Debian kfreebsd machine to test patches. Dejan and I are following up the NMU of trafficserver 4.1.2-1.1 to fix bugs on mips/mipsel and we noticed it FTBFS on kfreebsd-*. Cheers, Anibal
signature.asc
Description: Digital signature