On Mon, 19 Sep 2005 23:23:25 +0200, Jeroen Ruigrok/asmodai <[EMAIL PROTECTED]> wrote:
>-On [20050919 23:02], Michael Ray ([EMAIL PROTECTED]) wrote: >>/usr/src/lib/libc/../libc/string/strmode.c:44: error: conflicting >>types for 'strmode' >>/usr/obj/usr/src/world_i386/usr/include/string.h:95: error: previous >>declaration of 'strmode' was here > >Well, seems the conversion to ANSI C function declarations pays off. This >has been a wrong prototype in string.h for a long time now (read: ever since >Matt's first import of the FreeBSD code base). > >And if you want to laugh, FreeBSD 4.x, 5.x, and 6.x have the bug still. Here is some more to correct... cc -O -pipe -mtune=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -DI18NMODULE_MAJOR=1 -D_I18N_DYNAMIC -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../libc/locale -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/lib/libc/../libc/citrus/citrus_csmapper.c -o citrus_csmapper.o cc -O -pipe -mtune=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -DI18NMODULE_MAJOR=1 -D_I18N_DYNAMIC -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../libc/locale -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/lib/libc/../libc/citrus/citrus_ctype.c -o citrus_ctype.o In file included from /usr/src/lib/libc/../libc/citrus/citrus_ctype.c:40: /usr/obj/usr/src/world_i386/usr/include/wchar.h:137: warning: "struct tm" declared inside parameter list /usr/obj/usr/src/world_i386/usr/include/wchar.h:137: warning: its scope is only this definition or declaration, which is probably not what you want cc -O -pipe -mtune=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -DI18NMODULE_MAJOR=1 -D_I18N_DYNAMIC -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../libc/locale -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/lib/libc/../libc/citrus/citrus_ctype_fallback.c -o citrus_ctype_fallback.o In file included from /usr/src/lib/libc/../libc/citrus/citrus_ctype_fallback.c:32: /usr/obj/usr/src/world_i386/usr/include/wchar.h:137: warning: "struct tm" declared inside parameter list /usr/obj/usr/src/world_i386/usr/include/wchar.h:137: warning: its scope is only this definition or declaration, which is probably not what you want cc -O -pipe -mtune=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -DI18NMODULE_MAJOR=1 -D_I18N_DYNAMIC -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../libc/locale -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/lib/libc/../libc/citrus/citrus_db.c -o citrus_db.o cc -O -pipe -mtune=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -DI18NMODULE_MAJOR=1 -D_I18N_DYNAMIC -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../libc/locale -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/lib/libc/../libc/citrus/citrus_db_hash.c -o citrus_db_hash.o In file included from /usr/src/lib/libc/../libc/citrus/citrus_db_hash.c:33: /usr/obj/usr/src/world_i386/usr/include/string.h:95: error: syntax error before "char" *** Error code 1 Stop in /usr/src/lib/libc. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src.
