errors in the current cvs...
Andreas Jaeger
aj@suse.de
Sun Aug 17 10:53:00 GMT 2003
"Alfred M. Szmidt" <ams@kemisten.nu> writes:
> I get this when compiling libc on GNU/Hurd. Looks like the following
> change broke it:
>
> 2003-07-14 Ulrich Drepper <drepper@redhat.com>
> [snip]
> * misc/syslog.c: Fix locking and cancellation cleanup handling.
>
> PS, anyone want to commit/comment on the Hurd patches I sent?
>
> make[2]: Entering directory `/home/ams/src/libc/misc'
> gcc syslog.c -c -std=gnu99 -O3 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -Wno-parentheses -fexceptions -I../include -I. -I/obj/devel/ams/libc/misc -I.. -I../libio -I../hurd -I/obj/devel/ams/libc/hurd/ -I../mach -I/obj/devel/ams/libc/mach/ -I/obj/devel/ams/libc -I../sysdeps/i386/elf -I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman -I../sysdeps/mach/i386 -I../sysdeps/mach -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/unix/bsd -I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /obj/devel/ams/libc/misc/syslog.o -MD -MP -MF /obj/devel/ams/libc/misc/syslog.o.dt
> syslog.c: In function `openlog':
> syslog.c:380: warning: function declaration isn't a prototype
> syslog.c:391: warning: function declaration isn't a prototype
> syslog.c: In function `closelog':
> syslog.c:407: warning: function declaration isn't a prototype
> syslog.c:416: parse error at end of input
> syslog.c:75: warning: `openlog_internal' declared `static' but never defined
> syslog.c:76: warning: `closelog_internal' declared `static' but never defined
> syslog.c:77: warning: `sigpipe_handler' declared `static' but never defined
Is your file broken somehow?
Line 380 is:
static void
closelog_internal()
and line 76 is:
static void closelog_internal(void);
So, these two match and therefore you should not get either of the
warnings above.
I don't see anything wrong here either. Can you look yourself at this
and analyze it, please?
Cheers,
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030817/c2d2e79e/attachment.sig>
More information about the Libc-alpha
mailing list