Build fails in DragonFly BSD

Daniel Poirot dtpoirot at gmail.com
Sat Dec 5 18:36:05 UTC 2015


 

The 'git clone' from today (5 December) builds on FreeBSD-64 but fails on
DragonFly BSD 64.

 

'./waf configure' reports an error:

 

Warning libevent2 does not work

This means ntpdig will not be built

While not nessicary you will lose 'ntpdate' functionality.

 

 

'./waf build' fails:

 

[114/163] Compiling tests/unity/unity.c

[115/163] Compiling tests/unity/unity_fixture.c

[116/163] Compiling tests/libntp/a_md5encrypt.c

[117/163] Compiling tests/libntp/authkeys.c

[118/163] Compiling tests/libntp/calendar.c

[119/163] Compiling tests/libntp/caljulian.c

[120/163] Compiling tests/libntp/caltontp.c

[121/163] Compiling tests/libntp/calyearstart.c

[122/163] Compiling tests/libntp/clocktime.c

[123/163] Compiling tests/libntp/decodenetnum.c

[124/163] Compiling tests/libntp/hextolfp.c

[125/163] Compiling tests/libntp/humandate.c

[126/163] Compiling tests/libntp/lfptostr.c

[127/163] Compiling tests/libntp/modetoa.c

../tests/libntp/lfptostr.c:27:33: error: initializer element is not constant

static const int THREE_FOURTH = -ONE_FOURTH;

                                 ^

 

Waf: Leaving directory `/home/user/NTPsec/build'

Build failed

-> task in 'test_libntp' failed (exit status 1):

        {task 34383789200: c lfptostr.c -> lfptostr.c.2.o}

['/usr/bin/gcc', '-Wall', '-Wextra', '-I/home/user/NTPsec/tests/unity',
'-I/home/user/NTPsec/tests/libntp', '-I/home/user/NTPsec/tests/ntpdig',
'-I/home/user/NTPsec/tests/common', '-I/home/user/NTPsec/build',
'-I/home/user/NTPsec/include', '-I/home/user/NTPsec/libisc/include',
'-I/home/user/NTPsec/libisc/unix/include', '-DTEST_LIBNTP=1',
'../tests/libntp/lfptostr.c', '-c', '-o',
'/home/user/NTPsec/build/tests/libntp/lfptostr.c.2.o']

user at DragonFly-64%

 

 

'./waf' fails:

 

user at DragonFly-64% ./waf

Waf: Entering directory `/home/user/NTPsec/build'

[ 92/163] Linking build/ntpd/libntpd_lib.a

[ 97/163] Compiling build/ntpd/version.c

[114/163] Linking build/ntpfrob/ntpfrob

[129/163] Compiling build/ntpq/version.c

[130/163] Linking build/ntpkeygen/ntpkeygen

[131/163] Linking build/ntptime/ntptime

[132/163] Linking build/util/bumpclock

[133/163] Linking build/util/hist

[134/163] Linking build/util/propdelay

[135/163] Linking build/util/sht

[136/163] Linking build/util/tg2

[137/163] Compiling tests/libntp/lfptostr.c

[138/163] Compiling tests/libntp/modetoa.c

../tests/libntp/lfptostr.c:27:33: error: initializer element is not constant

static const int THREE_FOURTH = -ONE_FOURTH;

                                 ^

 

Waf: Leaving directory `/home/user/NTPsec/build'

Build failed

-> task in 'test_libntp' failed (exit status 1):

        {task 34384559312: c lfptostr.c -> lfptostr.c.2.o}

['/usr/bin/gcc', '-Wall', '-Wextra', '-I/home/user/NTPsec/tests/unity',
'-I/home/user/NTPsec/tests/libntp', '-I/home/user/NTPsec/tests/ntpdig', '-I
/home/user/NTPsec/tests/common', '-I/home/user/NTPsec/build',
'-I/home/user/NTPsec/include', '-I/home/user/NTPsec/libisc/include',
'-I/home/user/NT
Psec/libisc/unix/include', '-DTEST_LIBNTP=1', '../tests/libntp/lfptostr.c',
'-c', '-o', '/home/user/NTPsec/build/tests/libntp/lfptostr.c.2.o']

user at DragonFly-64% ./waf

Waf: Entering directory `/home/user/NTPsec/build'

[112/163] Linking build/ntpq/ntpq

[113/163] Linking build/ntpd/ntpd

[140/163] Compiling tests/libntp/lfptostr.c

[141/163] Compiling tests/libntp/msyslog.c

../tests/libntp/lfptostr.c:27:33: error: initializer element is not constant

static const int THREE_FOURTH = -ONE_FOURTH;

                                 ^

 

../tests/libntp/msyslog.c: In function
'TEST_msyslog_msnprintfHangingPercent_':

../tests/libntp/msyslog.c:93:0: warning: ignoring #pragma clang diagnostic
[-Wunknown-pragmas]

#pragma clang diagnostic push

^

../tests/libntp/msyslog.c:94:0: warning: ignoring #pragma clang diagnostic
[-Wunknown-pragmas]

#pragma clang diagnostic ignored "-Wformat"

^

../tests/libntp/msyslog.c:95:47: warning: spurious trailing '%' in format
[-Wformat=]

  exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "percent then nul term then
non-nul %\0oops!");

                                               ^

../tests/libntp/msyslog.c:95:47: warning: embedded '\0' in format
[-Wformat-contains-nul]

../tests/libntp/msyslog.c:95:47: warning: spurious trailing '%' in format
[-Wformat=]

../tests/libntp/msyslog.c:95:47: warning: embedded '\0' in format
[-Wformat-contains-nul]

../tests/libntp/msyslog.c:96:48: warning: spurious trailing '%' in format
[-Wformat=]

  act_cnt = msnprintf(act_buf, sizeof(act_buf), "percent then nul term then
non-nul %\0oops!");

                                                ^

../tests/libntp/msyslog.c:96:48: warning: embedded '\0' in format
[-Wformat-contains-nul]

../tests/libntp/msyslog.c:97:0: warning: ignoring #pragma clang diagnostic
[-Wunknown-pragmas]

#pragma clang diagnostic pop

^

 

Waf: Leaving directory `/home/user/NTPsec/build'

Build failed

-> task in 'test_libntp' failed (exit status 1):

        {task 34384563408: c lfptostr.c -> lfptostr.c.2.o}

['/usr/bin/gcc', '-Wall', '-Wextra', '-I/home/user/NTPsec/tests/unity',
'-I/home/user/NTPsec/tests/libntp', '-I/home/user/NTPsec/tests/ntpdig', '-I
/home/user/NTPsec/tests/common', '-I/home/user/NTPsec/build',
'-I/home/user/NTPsec/include', '-I/home/user/NTPsec/libisc/include',
'-I/home/user/NT
Psec/libisc/unix/include', '-DTEST_LIBNTP=1', '../tests/libntp/lfptostr.c',
'-c', '-o', '/home/user/NTPsec/build/tests/libntp/lfptostr.c.2.o']

user at DragonFly-64%

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20151205/981884bd/attachment.html>


More information about the devel mailing list