You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nitpicky build failure on freebsd 10.3-RELEASE-p4. A normal make works just fine; doing clang -Weverything -Werror -Wno-a-bunch-of-specific-warnings produces this:
../libcperciva/util/monoclock.c:41:6: error: implicit declaration of function
'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (gettimeofday(tv, NULL)) {
gettimeofday() is hidden inside #if __XSI_VISIBLE in /usr/include/sys/time.h. This isn't necessarily a huge problem since:
We defined -DPOSIXFAIL_CLOCK_REALTIME in Makefile.am in 00bf976.
There's obviously a few solutions we could use here:
enable XSI stuff in the Tarsnap build.
use more intelligent checking to see whether we need -DPOSIXFAIL_CLOCK_REALTIME or not.
fancier code in monoclock.c. For example, scrypt selects clocktouse by going through CLOCK_VIRTUAL, CLOCK_MONOTONIC, CLOCK_REALTIME, and if all those fail, it bails. If that works on OSX, maybe we could do a similar thing in monoclock.c?
stop testing with -Weverything -Werror. :)
The text was updated successfully, but these errors were encountered:
Nitpicky build failure on freebsd 10.3-RELEASE-p4. A normal
make
works just fine; doingclang -Weverything -Werror -Wno-a-bunch-of-specific-warnings
produces this:gettimeofday()
is hidden inside#if __XSI_VISIBLE
in/usr/include/sys/time.h
. This isn't necessarily a huge problem since:and
monoclock.c
tries to useclock_gettime()
first. However, in order to work around OSX failing:We defined
-DPOSIXFAIL_CLOCK_REALTIME
inMakefile.am
in 00bf976.There's obviously a few solutions we could use here:
-DPOSIXFAIL_CLOCK_REALTIME
or not.monoclock.c
. For example, scrypt selectsclocktouse
by going throughCLOCK_VIRTUAL
,CLOCK_MONOTONIC
,CLOCK_REALTIME
, and if all those fail, it bails. If that works on OSX, maybe we could do a similar thing inmonoclock.c
?-Weverything -Werror
. :)The text was updated successfully, but these errors were encountered: