Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ntpd wedged by libc?



On 3/2/2012 21:19, Alexander Carver wrote:
On 3/2/2012 20:38, AGC wrote:
On 3/2/2012 05:30, Christos Zoulas wrote:
On Mar 1, 9:59pm, agcarver+netbsd%acarver.net@localhost (AGC) wrote:
-- Subject: Re: ntpd wedged by libc?

| The copy I have has a banner reading:
|
| /* $NetBSD: misc.c,v 1.4 2008/03/21 23:13:48 christos Exp $ */
|
| The copy I obtained from
| ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libc/gdtoa/misc.c
| (unless this isn't head)
|
| Has a header:
| /* $NetBSD: misc.c,v 1.11 2011/11/21 09:46:19 mlelstv Exp $ */

Yup, that's the latest.
Get /usr/src/tests/lib/libc/stdio/t_printf.c and see if the
snprintf_float
test leaks for you.

# gcc -o t_printf t_printf.c
t_printf.c: In function 'atfu_snprintf_float_body':
t_printf.c:129: error: 'for' loop initial declaration used outside C99
mode



I also tried with the makefile:

# make USETOOLS=never
# compile stdio/t_printf.o
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
-Wno-unused-parameter -std=gnu99 -Wno-missing-noreturn -Werror -c
-Wno-format-nonliteral t_printf.c
cc1: warnings being treated as errors
t_printf.c: In function 'atfu_snprintf_dotzero_body':
t_printf.c:52: warning: implicit declaration of function
'ATF_REQUIRE_STREQ'
*** Error code 1

Stop.
make: stopped in /mnt/src/tests/lib/libc/stdio


I did search for the aft-c.h file mentioned as an include in t_printf.c and it does exist on the system:

# find . -name atf-c.h
/mnt/src/dist/atf/atf-c.h

So I don't understand why the compile is failing.


Home | Main Index | Thread Index | Old Index