Hi Max, Max Grobecker writes: > Hi Harlan, > > > I'm willing to use the most recent version of NTP, but unfortunately it won't > get built :-( > Has anyone been able to build 4.2.8 on Ubuntu 10.04 LTS? > > ---------------------------------------------- > make all-am > make[3]: Entering directory `/home/ntpd/ntp-4.2.8/util' > CC ntp-keygen.o > CC ntp-keygen-opts.o > env CSET=`cat ../sntp/scm-rev` ../scripts/build/mkver ntp-keygen > Version <ntp-keygen [email protected] Sat Dec 20 15:18:37 UTC 2014 (3)> > env CCACHE_DISABLE=1 gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib/isc/ > include -I../lib/isc/pthreads/include -I../lib/isc/unix/include -I../sntp/lib > opts -ffunction-sections -fdata-sections -Wall -Wcast-align -Wcast-qual -Wm > issing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow -W > strict-prototypes -g -O2 -c version.c -o version.o > CCLD ntp-keygen > ../libntp/libntp.a(ntp_crypto_rnd.o): In function `ntp_crypto_random_buf': > /home/ntpd/ntp-4.2.8/libntp/ntp_crypto_rnd.c:93: undefined reference to `arc4 > random_buf' > collect2: ld returned 1 exit status > make[3]: *** [ntp-keygen] Error 1 > make[3]: Leaving directory `/home/ntpd/ntp-4.2.8/util' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/ntpd/ntp-4.2.8/util' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ntpd/ntp-4.2.8' > make: *** [all] Error 2 > ---------------------------------------------- > > Tried to build with gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3.
This "only" affects ntp-keygen. I didn't see it in my various testing because the systems I build-tested on all have openssl. I've got a build matrtix that includes --without-crypto that should have caught this, and I don't currently know why that didn't happen. I'd look now, but it's more important that this problem is resolved. It means configure didn't find a version of openssl that provides RAND_bytes() and RAND_pool(), so it will just use arc4random_buf() instead, which is available in the versions of libevent we reqiuire. So we need to get an appropriate -levent in to the link stage of ntp-keygen. That might be as simple as adding '-levent' if the system version is being used, or something slightly more complicated to get the version that lives in sntp/libevent/ . This slightly more complicated version will be similar to how we would get libopts out of sntp/libopts/ . I'm hoping to relase a beta update later today that will fix this problem. H _______________________________________________ pool mailing list [email protected] http://lists.ntp.org/listinfo/pool
