I tried to upgrade my ntp version running on a FreeBSD 6.3-STABLE system this morning and received the following error:
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../libopts -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -MT ntp_timer.o -MD -MP -MF ".deps/ntp_timer.Tpo" -c -o ntp_timer.o ntp_timer.c; then mv -f ".deps/ntp_timer.Tpo" ".deps/ntp_timer.Po"; else rm -f ".deps/ntp_timer.Tpo"; exit 1; fi ntp_timer.c: In function `reinit_timer': ntp_timer.c:104: warning: implicit declaration of function `timer_gettime' ntp_timer.c:105: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:105: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:106: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:108: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:109: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:111: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:111: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:112: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:113: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:115: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:116: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:117: warning: implicit declaration of function `timer_settime' ntp_timer.c: In function `init_timer': ntp_timer.c:170: warning: implicit declaration of function `timer_create' ntp_timer.c:182: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:182: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:183: error: invalid use of undefined type `struct itimerspec' ntp_timer.c:183: error: invalid use of undefined type `struct itimerspec' ntp_timer.c: At top level: ntp_timer.c:91: error: storage size of `itimer' isn't known *** Error code 1 Stop in /usr/ports/net/ntp. ! net/ntp (ntp-4.2.2p4) (new compiler error) The compiler is GCC-4.2.3_20080130 and the ntp version that I was attempting to upgrade to was ntp-4.2.2p4. This version was able to be upgraded using the default GCC compiler on another system. It would appear that GCC-4.2.3 does not like something in the 'ntp_timer.c' program. Is there something that I need to do for the upgrade to complete successfully? Tom -- Public Keys: PGP KeyID = 0x5F22FDC1 GnuPG KeyID = 0x620836CF _______________________________________________ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions