[uClibc] Building NTP
Thompson Harmon [US], Stanley W.
Stanley.Harmon at sperry.ngc.com
Mon Aug 29 19:37:40 UTC 2005
Mike,
The following is what I get without "--without-crypto":
/buildroot/build_i386/staging_dir/bin/i386-linux-uclibc-gcc -Os -Wall
-Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow
-Wstrict-prototypes -L../../staging_dir/usr/lib -o ntpd cmd_args.o
ntp_config.o ntp_io.o ntpd.o version.o libntpd.a libntpd.a
../libntp/libntp.a -lm -lcrypto -lelf
libntpd.a(ntp_control.o): In function `ctl_getitem':
ntp_control.c:(.text+0x193c): undefined reference to `__ctype_b_loc'
libntpd.a(ntp_filegen.o): In function `filegen_setup':
ntp_filegen.c:(.text+0x352): undefined reference to `__xstat'
libntpd.a(refclock_heath.o): In function `heath_receive':
refclock_heath.c:(.text+0x1c5): undefined reference to `__ctype_b_loc'
libntpd.a(refclock_nmea.o): In function `nmea_receive':
refclock_nmea.c:(.text+0x224): undefined reference to `__ctype_b_loc'
libntpd.a(refclock_shm.o): In function `getShmTime':
refclock_shm.c:(.text+0x1e): undefined reference to `__assert_fail'
libntpd.a(refclock_neoclock4x.o): In function `neol_atoi_len':
refclock_neoclock4x.c:(.text+0x384): undefined reference to
`__ctype_b_loc'
libntpd.a(refclock_neoclock4x.o): In function `neol_hexatoi_len':
refclock_neoclock4x.c:(.text+0x3c5): undefined reference to
`__ctype_b_loc'
refclock_neoclock4x.c:(.text+0x3da): undefined reference to
`__ctype_toupper_loc'
refclock_neoclock4x.c:(.text+0x3e9): undefined reference to
`__ctype_toupper_loc'
libntpd.a(refclock_arc.o): In function `get2':
refclock_arc.c:(.text+0x3e4): undefined reference to `__ctype_b_loc'
libntpd.a(refclock_arc.o): In function `arc_receive':
refclock_arc.c:(.text+0x4e1): undefined reference to `__ctype_b_loc'
refclock_arc.c:(.text+0xa29): undefined reference to `__ctype_b_loc'
../libntp/libntp.a(atoint.o): In function `atoint':
atoint.c:(.text+0x3a): undefined reference to `__ctype_b_loc'
../libntp/libntp.a(atouint.o): In function `atouint':
atouint.c:(.text+0x10): undefined reference to `__ctype_b_loc'
../libntp/libntp.a(audio.o):audio.c:(.text+0x168): more undefined
references to `__ctype_b_loc' follow
../libntp/libntp.a(audio.o): In function `audio_init':
audio.c:(.text+0x1d0): undefined reference to `__ctype_toupper_loc'
../libntp/libntp.a(getopt.o): In function `badopt':
getopt.c:(.text+0x37): undefined reference to `_IO_putc'
getopt.c:(.text+0x44): undefined reference to `_IO_putc'
collect2: ld returned 1 exit status
make[3]: *** [ntpd] Error 1
The following is what I get with "--without-crypto"
Making all in libntp
make[3]: Entering directory
`.../buildroot/build_i386/ntp-stable-4.2.0a-20050815/libntp'
if /buildroot/build_i386/staging_dir/bin/i386-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -Os -Wall
-Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow
-Wstrict-prototypes -MT systime.o -MD -MP -MF ".deps/systime.Tpo" -c -o
systime.o systime.c; \
then mv -f ".deps/systime.Tpo" ".deps/systime.Po"; else rm -f
".deps/systime.Tpo"; exit 1; fi
systime.c:24:20: error: utmpx.h: No such file or directory
systime.c: In function 'step_systime':
systime.c:255: error: storage size of 'utx' isn't known
systime.c:255: warning: unused variable 'utx'
make[3]: *** [systime.o] Error 1
The following is my configure stuff from ntp.mk
$(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
(cd $(NTP_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS=-Os \
CC=${CROSS_COMPILE}gcc \
CPP=${CROSS_COMPILE}cpp \
ac_cv_lib_md5_MD5Init=no \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_TARGET_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--libdir=/buildroot/build_i386/staging_dir/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
--with-shared \
--disable-strip \
--without-privsep-user \
--without-privsep-path \
--without-ssl-dir \
--without-crypto \
--with-builtin-arc4random \
--program-transform-name=s,,, \
);
touch $(NTP_DIR)/.configured
Any help would be appreciated.
Stan
-----Original Message-----
From: Mike Frysinger [mailto:vapier at gentoo.org]
Sent: Monday, August 29, 2005 10:25 AM
To: Thompson Harmon [US], Stanley W.
Cc: uclibc at uclibc.org
Subject: Re: [uClibc] Building NTP
On Monday 29 August 2005 09:27 am, Thompson Harmon [US], Stanley W.
wrote:
> however, I am still missing libmd5. So, how is libmd5 related to
> --without-crypto?
the ntp configure script has an unconditional check for md5.h and libmd5
... i always forget about those because we disable them in Gentoo
you could export ac_cv_lib_md5_MD5Init=no before running configure ...
-mike
More information about the uClibc
mailing list