Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2000 09:32:28 -0700 (MST)
From:      "David A. Bader" <dbader@eece.unm.edu>
To:        freebsd-stable@freebsd.org
Cc:        Aron Warren <warren@eece.unm.edu>, Chuck Robey <chuckr@mat.net>
Subject:   Re: make world problem with 4.2-R (work around)
Message-ID:  <200011241632.JAA08991@eece.unm.edu>

next in thread | raw e-mail | index | archive | help

Regarding the problem I reported two days ago with "make buildworld"
on 4.2-RELEASE, I removed my /usr/src completely and CVSup'ed
4.2-RELEASE again, but still have an internal compiler error at the
same place (ncurses' alloc_entry.c).  At the time, I was running
4.1-RELEASE on a Cyrix P166 processor.  After many attempts to compile
this file by hand, I found a hack to get it to work, but have
absolutely no idea why this worked:

% grep  MAX_ENTRY_SIZE /usr/src/contrib/ncurses/include/tic.h
#define MAX_ENTRY_SIZE  4096    /* maximum legal entry size */

% diff -u /usr/src/contrib/ncurses/ncurses/tinfo/alloc_entry.c-orig  /usr/src/contrib/ncurses/ncurses/tinfo/alloc_entry.c
--- /usr/src/contrib/ncurses/ncurses/tinfo/alloc_entry.c-orig   Thu Nov 23 12:53:44 2000
+++ /usr/src/contrib/ncurses/ncurses/tinfo/alloc_entry.c        Fri Nov 24 09:22:04 2000
@@ -122,7 +122,7 @@
 _nc_wrap_entry(ENTRY * const ep)
 /* copy the string parts to allocated storage, preserving pointers to it */
 {
-    int offsets[MAX_ENTRY_SIZE / 2], useoffsets[MAX_USES];
+    int offsets[2048], useoffsets[MAX_USES];
     int i, n;
     TERMTYPE *tp = &(ep->tterm);

I successfully did a "make world", and installed a new 4.2 kernel:

% uname -a
FreeBSD bean.eece.unm.edu 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Thu Nov 23 22:12:05 MST 2000     root@bean.eece.unm.edu:/usr/obj/usr/src/sys/BEAN4  i386

Again, I have no idea of the real cause of this problem. If anyone is
curious, I could try to rebuild the 4.2-RELEASE /usr/src using the
updated version of gcc installed with 4.2-R, and see if I still have
the problem with alloc_entry.c

I do not think that this is limited to "just me", but I found several
other emails from folks trying to build 4.x-Releases who broke at this
same point.

-david

-- 
David A. Bader, Ph.D.                           Office: 505-277-6724
Dept of Electrical and Computer Engineering     FAX:    505-277-1439
EECE Building                                                       
University of New Mexico                         dbader@eece.unm.edu
Albuquerque, NM  87131               http://www.eece.unm.edu/~dbader



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?200011241632.JAA08991>