Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2001 13:50:43 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Sheldon Hearn <sheldonh@starjuice.net>
Cc:        stable@FreeBSD.ORG
Subject:   Re: Cross-building and read-only src both broken
Message-ID:  <20010914135043.A12915@sunbay.com>
In-Reply-To: <26311.1000459295@axl.seasidesoftware.co.za>; from sheldonh@starjuice.net on Fri, Sep 14, 2001 at 11:21:35AM %2B0200
References:  <26311.1000459295@axl.seasidesoftware.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 14, 2001 at 11:21:35AM +0200, Sheldon Hearn wrote:
> 
> Hi folks,
> 
> Two problems:
> 
> 1) Cross-building RELENG_4 on a -CURRENT box is broken.
> 
> cc -o make_hash -O -pipe  -I. -I/usr/src.RELENG_4/lib/libncurses -I/usr/src.RELENG_4/lib/libncurses/../../contrib/ncurses/ncurses -I/usr/src.RELENG_4/lib/libncurses/../../contrib/ncurses/include -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS  -DMAIN_PROGRAM
> /usr/src.RELENG_4/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/comp_hash.c
> In file included from curses.h:77,
>                  from
> /usr/src.RELENG_4/lib/libncurses/../../contrib/ncurses/ncurses/curses.priv.h:234,
>                  from
> /usr/src.RELENG_4/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/comp_hash.c:41:
> /usr/include/unctrl.h:57: syntax error before `unctrl'
> /usr/include/unctrl.h:57: warning: data definition has no type or storage class
> *** Error code 1
> 
OK, so far the following patches are required to pass up to the
cross-tool stage.  The patch for libncurses should also be
committed to -CURRENT.  unctrl.h was not generated, but instead
the incompatible version in /usr/include was used.

Index: lib/libncurses/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libncurses/Makefile,v
retrieving revision 1.39.2.9
diff -u -r1.39.2.9 Makefile
--- lib/libncurses/Makefile	2001/06/14 10:56:09	1.39.2.9
+++ lib/libncurses/Makefile	2001/09/14 10:49:31
@@ -326,10 +326,10 @@
 # Build tools
 build-tools: make_hash make_keys
 
-make_keys:	make_keys.c names.c curses.h ncurses_def.h
+make_keys:	make_keys.c names.c ncurses_def.h ${HEADERS}
 	${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c
 
-make_hash:	comp_hash.c hashsize.h curses.h ncurses_def.h
+make_hash:	comp_hash.c hashsize.h ncurses_def.h ${HEADERS}
 	${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \
 		${NCURSES}/ncurses/tinfo/comp_hash.c
 
Index: share/syscons/scrnmaps/mkscrfil.c
===================================================================
RCS file: /home/ncvs/src/share/syscons/scrnmaps/mkscrfil.c,v
retrieving revision 1.1
diff -u -r1.1 mkscrfil.c
--- share/syscons/scrnmaps/mkscrfil.c	1994/09/25 03:41:43	1.1
+++ share/syscons/scrnmaps/mkscrfil.c	2001/09/14 10:49:31
@@ -25,7 +25,7 @@
  */
 
 #include <sys/ioctl.h>
-#include <machine/console.h>
+#include <sys/consio.h>
 #include <stdio.h>
 
 #include FIL

-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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