Comment 5 for bug 573366

Revision history for this message
Mark Callaghan (mdcallag) wrote : Re: [Bug 573366] Re: cpu_set_t not available on OsX, line:123 ./mysys/my_perf.c, won't compile

I might submit a patch for it. I used to use OS X and had to fix it
before for another change from us that broke the OS X build. But it
will take a few days for me to get a dev setup on the family laptop.

On Mon, May 3, 2010 at 1:52 AM, Guido Serra <email address hidden> wrote:
> agree... I will try to patch it just for excercise ;-)
>
> --
> cpu_set_t not available on OsX, line:123 ./mysys/my_perf.c, won't compile
> https://bugs.launchpad.net/bugs/573366
> You received this bug notification because you are a member of
> MySQLAtFacebook, which is the registrant for MySQLAtFacebook.
>
> Status in MySQL at Facebook: New
>
> Bug description:
> as for similar software... http://blog.svilen.com/2009/05/facebooks-xhprof-php-module-patch-for.html
>
> that datatype is not available on OsX with that name, see the linked patch above, there is a quick workaround
>
> gcc -DDEFAULT_BASEDIR=\"/Users/zeph/Documents/workspace/mysqlatfacebook-5.1-build\" -DMYSQL_DATADIR="\"/Users/zeph/Documents/workspace/mysqlatfacebook-5.1-build/var\"" -DDEFAULT_CHARSET_HOME="\"/Users/zeph/Documents/workspace/mysqlatfacebook-5.1-build\"" -DSHAREDIR="\"/Users/zeph/Documents/workspace/mysqlatfacebook-5.1-build/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/Users/zeph/Documents/workspace/mysqlatfacebook-5.1-build/etc\"" -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I.    -g -O2   -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT my_perf.o -MD -MP -MF .deps/my_perf.Tpo -c -o my_perf.o my_perf.c
> my_perf.c: In function ‘my_init_fast_timer’:
> my_perf.c:123: error: ‘cpu_set_t’ undeclared (first use in this function)
> my_perf.c:123: error: (Each undeclared identifier is reported only once
> my_perf.c:123: error: for each function it appears in.)
> my_perf.c:123: error: expected ‘;’ before ‘mask’
> my_perf.c:124: error: ‘mask’ undeclared (first use in this function)
> make[1]: *** [my_perf.o] Error 1
> make: *** [all-recursive] Error 1
>
>
>

--
Mark Callaghan
<email address hidden>