Re: Bug#725383: FTBFS on kfreebsd-*: SYS_gettid is Linux-specific

2013-10-06 Thread Robert Millan
Petr Salinger: >> I think you can avoid this by using the primitive: >> >> lwpid_t tid; >> syscall (SYS_thr_self, &tid); > > There is a mess in kernel interfaces, > the right one is > > long tid; > syscall (SYS_thr_self, &tid); Is there any lwpid_t which isn't "long" and defined by kernel heade

Re: Bug#725383: FTBFS on kfreebsd-*: SYS_gettid is Linux-specific

2013-10-06 Thread Petr Salinger
I think you can avoid this by using the primitive: lwpid_t tid; syscall (SYS_thr_self, &tid); There is a mess in kernel interfaces, the right one is long tid; syscall (SYS_thr_self, &tid); But it holds only for current pthread implementation, it can be changed anytime. Petr -- To UNSUBSCR

Re: Bug#725383: FTBFS on kfreebsd-*: SYS_gettid is Linux-specific

2013-10-05 Thread Robert Millan
Steven Chamberlain: > A workaround may be to use pthread_self(), except that the exported > getCurrentThreadId function has to return 'unsigned int'. On > kfreebsd-amd64 a 64-bit pointer to a pthread_t is not absolutely > guaranteed to be unique if truncated to 32 bits, I think you can avoid this

Bug#725383: FTBFS on kfreebsd-*: SYS_gettid is Linux-specific

2013-10-04 Thread Steven Chamberlain
Source: osgearth Version: 2.4.0+dfsg-5 Tags: patch User: debian-bsd@lists.debian.org Usertags: kfreebsd X-Debbugs-Cc: debian-bsd@lists.debian.org Severity: serious Justification: fails to build from source (but built successfully in the past) Hi, osgearth fails to build on kfreebsd-* because it t