yes, that's ok for this file. But I now have another problem with
compilation. (I have a netbsd updated to current and mysql 5.1.28:
(gcc v4.1.3)
When linking mysqld (I'm compiling pbxt in mysql):
undefined reference to `typeinfo for handler'
I will see that error as soon as possible. And try the latest mysql.
I will keep you updated.
Thank you, and Greetings from Paris.
jym
Paul McCullagh à écris:
> Hi JYM,
>
> Thanks for the bug report! Please check if the following code solves the
> problem:
>
> xtPublic void xt_yield(void)
> {
> #ifdef XT_WIN
> Sleep(0);
> #elif defined(XT_MAC)
> usleep(0);
> #else
> #if defined(__NetBSD__)
> sched_yield();
> #else
> pthread_yield();
> #endif
> #endif
> }
>
> --
> no pthread_yield() on netbsd
> https://bugs.launchpad.net/bugs/287090
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in PrimeBase XT: New
>
> Bug description:
> pthread_yield() function doesn't exist on netbsd. Use sched_yield() instead.
>
> With this modification, compilation is OK on Netbsd. MacosX seems to have the same problem (but I did not try to compile pbxt on it).
>
> jym
>
Hello,
Sorry for the late reply..
yes, that's ok for this file. But I now have another problem with
compilation. (I have a netbsd updated to current and mysql 5.1.28:
(gcc v4.1.3)
When linking mysqld (I'm compiling pbxt in mysql):
undefined reference to `typeinfo for handler'
I will see that error as soon as possible. And try the latest mysql.
I will keep you updated.
Thank you, and Greetings from Paris.
jym
Paul McCullagh à écris: /bugs.launchpad .net/bugs/ 287090
> Hi JYM,
>
> Thanks for the bug report! Please check if the following code solves the
> problem:
>
> xtPublic void xt_yield(void)
> {
> #ifdef XT_WIN
> Sleep(0);
> #elif defined(XT_MAC)
> usleep(0);
> #else
> #if defined(__NetBSD__)
> sched_yield();
> #else
> pthread_yield();
> #endif
> #endif
> }
>
> --
> no pthread_yield() on netbsd
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in PrimeBase XT: New
>
> Bug description:
> pthread_yield() function doesn't exist on netbsd. Use sched_yield() instead.
>
> With this modification, compilation is OK on Netbsd. MacosX seems to have the same problem (but I did not try to compile pbxt on it).
>
> jym
>