Guillaume Bibaut
2015-Oct-27 10:48 UTC
Compilation problem since SA-15:25 for FreeBSD 10.2-RELEASE
Hello, I?ve been applying NTP patches successfully recently, but when I try to compile once patches applied, the make fails badly on ntp folders. I?ve tried to download FreeBSD 10.2-RELEASE sources, and to reapply patches since that release to be up to date, but the compilation fails in the same folder: # make -j 10 buildworld [?] --- depend_subdir_ntp --- /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/rc_cmdlength.c:2:10: fatal error: 'rc_cmdlength.h' file not found #include <rc_cmdlength.h> ^ 1 error generated. [?] when I get in this folder: /usr/src/usr.sbin/ntp/ntpd, then type 'make depend' or 'make' # make clean rm -f .version version.c ntpd cmd_args.o ntp_config.o ntp_control.o ntp_crypto.o ntp_filegen.o ntp_io.o ntp_leapsec.o ntp_loopfilter.o ntp_monitor.o ntp_parser.o ntp_peer.o ntp_proto.o ntp_refclock.o ntp_request.o ntp_restrict.o ntp_scanner.o ntp_signd.o ntp_timer.o ntp_util.o ntpd-opts.o ntpd.o rc_cmdlength.o refclock_acts.o refclock_arbiter.o refclock_arc.o refclock_as2201.o refclock_atom.o refclock_bancomm.o refclock_chronolog.o refclock_chu.o refclock_conf.o refclock_datum.o refclock_dumbclock.o refclock_fg.o refclock_gpsdjson.o refclock_gpsvme.o refclock_heath.o refclock_hopfpci.o refclock_hopfser.o refclock_hpgps.o refclock_irig.o refclock_jjy.o refclock_jupiter.o refclock_leitch.o refclock_local.o refclock_nmea.o refclock_neoclock4x.o refclock_oncore.o refclock_palisade.o refclock_parse.o refclock_pcf.o refclock_pst.o refclock_ripencc.o refclock_shm.o refclock_tpro.o refclock_true.o refclock_tsyncpci.o refclock_tt560.o refclock_ulink.o refclock_wwv.o refclock_wwvb.o refclock_zyfer.o version.o # make depend sh -e /usr/src/usr.sbin/ntp/ntpd/../scripts/mkver ntpd Version <ntpd 4.2.8p4-a (1)> rm -f .depend mkdep -f .depend -a -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/pthreads/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/unix/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/sntp/libopts -I/usr/src/usr.sbin/ntp/ntpd/../ -I/usr/src/usr.sbin/ntp/ntpd -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY -std=gnu99 /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/cmd_args.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_config.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_control.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_crypto.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_filegen.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_io.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_leapsec.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_loopfilter.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_monitor.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_parser.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_peer.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_proto.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_refclock.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_request.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_restrict.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_scanner.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_signd.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_timer.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_util.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntpd-opts.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntpd.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/rc_cmdlength.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_acts.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_arbiter.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_arc.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_as2201.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_atom.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_bancomm.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_chronolog.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_chu.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_conf.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_datum.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_dumbclock.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_fg.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_gpsdjson.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_gpsvme.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_heath.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_hopfpci.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_hopfser.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_hpgps.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_irig.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_jjy.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_jupiter.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_leitch.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_local.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_nmea.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_neoclock4x.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_oncore.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_palisade.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_parse.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_pcf.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_pst.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_ripencc.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_shm.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_tpro.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_true.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_tsyncpci.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_tt560.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_ulink.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_wwv.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_wwvb.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/refclock_zyfer.c version.c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_control.c:31:10: fatal error: 'rc_cmdlength.h' file not found #include <rc_cmdlength.h> ^ 1 error generated. /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/rc_cmdlength.c:2:10: fatal error: 'rc_cmdlength.h' file not found #include <rc_cmdlength.h> ^ 1 error generated. mkdep: compile failed *** Error code 1 Stop. make: stopped in /usr/src/usr.sbin/ntp/ntpd # make cc -O2 -pipe -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/pthreads/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/unix/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/sntp/libopts -I/usr/src/usr.sbin/ntp/ntpd/../ -I/usr/src/usr.sbin/ntp/ntpd -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/cmd_args.c -o cmd_args.o cc -O2 -pipe -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/pthreads/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/unix/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/sntp/libopts -I/usr/src/usr.sbin/ntp/ntpd/../ -I/usr/src/usr.sbin/ntp/ntpd -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_config.c -o ntp_config.o cc -O2 -pipe -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/pthreads/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/lib/isc/unix/include -I/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/sntp/libopts -I/usr/src/usr.sbin/ntp/ntpd/../ -I/usr/src/usr.sbin/ntp/ntpd -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_control.c -o ntp_control.o /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_control.c:31:10: fatal error: 'rc_cmdlength.h' file not found #include <rc_cmdlength.h> ^ 1 error generated. *** Error code 1 Stop. make: stopped in /usr/src/usr.sbin/ntp/ntpd Did I miss anything ? Accordingly, Guillaume BIBAUT
Herbert J. Skuhra
2015-Oct-27 11:46 UTC
Compilation problem since SA-15:25 for FreeBSD 10.2-RELEASE
On Tue, Oct 27, 2015 at 11:48:24AM +0100, Guillaume Bibaut wrote:> Hello, > > I?ve been applying NTP patches successfully recently, but when I try > to compile once patches applied, the make fails badly on ntp folders. > I?ve tried to download FreeBSD 10.2-RELEASE sources, and to reapply > patches since that release to be up to date, but the compilation fails > in the same folder: > > # make -j 10 buildworld > [?]Did the patch apply cleanly? Or do you have some *.rej files in the source tree? Somehow I don't manage to do this. Does the build complete if you do: # svnlite co https://svn.freebsd.org/base/releng/10.2/ src # cd src # make -j 10 buildworld -- Herbert