[ntp:bugs] [Bug 1861] Compilation error on tickadj.c

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Thu Mar 24 13:44:15 UTC 2011


http://bugs.ntp.org/show_bug.cgi?id=1861

--- Comment #3 from Stefan olsson <misca at hotmail.com> 2011-03-24 13:44:15 UTC ---
Hi

I can confirm that I get the compilation error 

tickadj.c:436: error: 'txc' undeclared (first use in this function)

with both ntp-4.2.6p2 and ntp-4.2.6p3.


My configure line is as follow
./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include
--enable-dst-minutes --disable-ipv6 --with-binsubdir=bin --with-crypto
--with-openssl-libdir=/ffp/lib --with-openssl-incdir=/ffp/include
--with-lineeditlibs

(Yes, I know that ntp do not have the flag --disable-ipv6 but I am tracking
down another compilation error)


> The code seems to assume any linux will have both sys/timex.h and __adjtimex.

Note that my system do not have GNU's libc but only uClibc.

(Not my decision, I curse the system architect on daily basis)


Yes, the guard

#ifdef HAVE_SYS_TIMEX_H
# include <sys/timex.h>
struct timex txc;
#endif

#ifdef HAVE___ADJTIMEX        /* Linux */


works, the file compiles without error, thanks





/Stefan

-- 
Configure bugmail: http://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the bugs mailing list