pkgsrc-Users archive

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

Re: does libfetch need pthreads?

On Thu, Mar 05, 2009 at 04:06:01PM +0100, Joachim Kuebart wrote:
> It would appear they're only hiding the prototype in <time.h> as the
> symbols do appear in libc. At any rate, adding -D_REENTRANT was all I
> needed to do to make it build successfully.

OK, I've added the define.

> Having said that, bootstrapping on Interix currently fails anyway
> because of an antique <sys/queue.h> which lacks TAILQ_FIRST and
> TAILQ_LAST and has broken block macros like TAILQ_INSERT_TAIL
> (without "do {...} while(0)") which break when used inside if/else,
> for example, in pkg_delete.c. Not sure what can be done about that,
> personally I simply replaced <sys/queue.h> with a less broken version.

As long as the macros are missing, nbcompat should provide them. The
issue with TAILQ_INSERT_TAIL has been fixed already, Linux has similar
broken macros. If you have a current tree and it still happens, please
provide the full error.


Home | Main Index | Thread Index | Old Index