Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 1998 09:38:39 +0100
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        stable@FreeBSD.ORG
Subject:   make buildworld of RELENG_2_2 under -current fails in libmytinfo
Message-ID:  <19980128093839.39180@klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
===> libmd
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' /usr/src/lib/libmd/mdXhl.c > md2hl.c
sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' /usr/src/lib/libmd/mdXhl.c > md4hl.c
sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' /usr/src/lib/libmd/mdXhl.c > md5hl.c
rm -f .depend
mkdep -f .depend -a  -I/usr/src/lib/libmd -I/usr/obj/usr/src/tmp/usr/include  /usr/src/lib/libmd/md2c.c /usr/src/lib/libmd/md4c.c /usr/src/lib/libmd/md5c.c md2hl.c md4hl.c md5hl.c
===> libmytinfo
/usr/bin/cc -pipe -O -Wall -I/usr/src/lib/libmytinfo -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/lib/libmytinfo/readcaps.c -o readcaps.o
In file included from /usr/src/lib/libmytinfo/readcaps.c:13:
/usr/src/lib/libmytinfo/defs.h:194: conflicting types for `sys_errlist'
/usr/obj/usr/src/tmp/usr/include/stdio.h:245: previous declaration of `sys_errlist'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

/usr/src/lib/libmytinfo/defs.h:
#if __FreeBSD__ != 2
extern char *sys_errlist[];
#endif

/usr/obj/usr/src/tmp/usr/include/stdio.h:
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern __const int sys_nerr;            /* perror(3) external variables */
extern __const char *__const sys_errlist[];
#endif

What definition is correct ?
-current has a:
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern __const int sys_nerr;            /* perror(3) external variables */
extern __const char *__const sys_errlist[];
#endif 
which looks pretty the same as -stable ...

Do we have to change or ignore (wipe out) the declaration in
RELENG_2_2's lib/libmytinfo/defs.h file ?
In -current, this declaration doesn't exist anymore ...

	Andreas ///

-- 
Andreas Klemm
powered by ,,symmetric multiprocessor FreeBSD''



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980128093839.39180>