[phobos] clock_gettime changes
Brad Roberts
braddr at puremagic.com
Sat Nov 20 15:04:58 PST 2010
I have no problems with the original change, as long as the shipped dmd.conf
file is updated so that it 'just works' for everyone. The release notes would
need to call this out carefully so that those that maintain their own dmd.conf
file, for whatever reasons, also know about the change.
On 11/20/2010 10:08 AM, Sean Kelly wrote:
> Oops. I'll disable the check for clock_gettime in core.sync.config.
>
> On Nov 20, 2010, at 1:33 AM, Brad Roberts wrote:
>
>> ... seems to have broken both the druntime and phobos unit tests.
>>
>> http://d.puremagic.com/test-results/test.ghtml?runid=3025
>>
>> druntime's error:
>> unittest.o: In function
>> `_D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv':
>> src/rt/typeinfo/ti_wchar.d:(.text._D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv+0xa):
>> undefined reference to `clock_gettime'
>>
>> phobos' error:
>> unittest.o: In function
>> `_D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv':
>> src/rt/typeinfo/ti_wchar.d:(.text._D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv+0xa):
>> undefined reference to `clock_gettime'
>>
>> Adding -L-lrt to the DFLAGS variable in dmd.conf fixes the problem. That'll
>> need to be reflected in the shipped dmd.conf, assuming it's the right fix. I
>> don't have access to the other posix platforms to see if it's needed there or not.
>>
>> Later,
>> Brad
More information about the phobos
mailing list