fail to compile xz - unknown type name 'clockid_t'; did you mean 'clock_t'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

fail to compile xz - unknown type name 'clockid_t'; did you mean 'clock_t'

Qianqian Fang

Dear list,

I don't know if this si common, but when I tried to install gdb (because my lazarus 1.8 complains about missing gdb) using

sudo port install gdb

I got an error when installing the dependency package xz, with the following error

my port was updated and has the latest version.

Please advise how to get around this. thanks

Qianqian


:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from common/common.c:13:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from In file included from common/hardware_physmem.c:13:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from In file included from common/block_util.c:13:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from ../../src/liblzma/common/common.h:17../../src/liblzma/common/common.hIn file included from :common/filter_common.c../../src/liblzma/common/common.h:
:<a class="moz-txt-link-freetext" href="info:build">info:build :1717../../src/common/mythread.h:
:<a class="moz-txt-link-freetext" href="info:build">info:build ::
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/common/mythread.h:13../../src/common/mythread.h:120:120::
:<a class="moz-txt-link-freetext" href="info:build">info:build 2::2In file included from In file included from 120../../src/liblzma/common/filter_common.h::162:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from :../../src/liblzma/common/common.h error:common/index.c  :error17: :
:<a class="moz-txt-link-freetext" href="info:build">info:build :13unknown type name 'clockid_t'; did you mean 'clock_t'?:
:<a class="moz-txt-link-freetext" href="info:build">info:build errorIn file included from : : common/easy_preset.c:13unknown type name 'clockid_t'; did you mean 'clock_t'?In file included from
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/liblzma/common/index.hunknown type name 'clockid_t'; did you mean 'clock_t'?:
:<a class="moz-txt-link-freetext" href="info:build">info:build 16:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from :
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from ../../src/common/mythread.h../../src/liblzma/common/easy_preset.h::12013::
:<a class="moz-txt-link-freetext" href="info:build">info:build 2In file included from :../../src/liblzma/common/common.h :error17: :
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/common/mythread.hunknown type name 'clockid_t'; did you mean 'clock_t'?:
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/liblzma/common/common.h:17:
:<a class="moz-txt-link-freetext" href="info:build">info:build         clockid_t clk_id;        clockid_t clk_id;../../src/common/mythread.h120:
:<a class="moz-txt-link-freetext" href="info:build">info:build 120:
.......
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from common/easy_preset.c:13:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from ../../src/liblzma/common/easy_preset.h:13:
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from ../../src/liblzma/common/common.h:17:
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/common/mythread.hIn file included from In file included from common/filter_common.c:13:In file included from common/hardware_physmem.c250::1319:
:<a class="moz-txt-link-freetext" href="info:build">info:build :In file included from  ../../src/liblzma/common/common.herror:
:<a class="moz-txt-link-freetext" href="info:build">info:build common/block_util.cIn file included from :../../src/liblzma/common/filter_common.h::17:
:<a class="moz-txt-link-freetext" href="info:build">info:build 13../../src/common/mythread.h:250:19: 16:
:<a class="moz-txt-link-freetext" href="info:build">info:build use of undeclared identifier 'CLOCK_REALTIME'
:<a class="moz-txt-link-freetext" href="info:build">info:build : error: use of undeclared identifier 'CLOCK_REALTIME'
:<a class="moz-txt-link-freetext" href="info:build">info:build In file included from :
:<a class="moz-txt-link-freetext" href="info:build">info:build common/index.c:In file included from 13:
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/liblzma/common/common.hIn file included from :../../src/liblzma/common/index.h17::
:<a class="moz-txt-link-freetext" href="info:build">info:build 16../../src/common/mythread.h:250:19In file included from         mycond->clk_id = CLOCK_REALTIME;
:<a class="moz-txt-link-freetext" href="info:build">info:build ../../src/liblzma/common/common.h                         ^:

Reply | Threaded
Open this post in threaded view
|

Re: fail to compile xz - unknown type name 'clockid_t'; did you mean 'clock_t'

Ryan Schmidt-24

On Mar 22, 2018, at 18:26, Qianqian Fang wrote:

> I don't know if this si common, but when I tried to install gdb (because my lazarus 1.8 complains about missing gdb) using
>
> sudo port install gdb
>
> I got an error when installing the dependency package xz, with the following error
>
> my port was updated and has the latest version.

I have not seen this problem with the xz port. Could you tell us what version of macOS and Xcode you have installed?