From: alfred@arthur.et.tudelft.nl (Alfred van der Hoeven)
Subject: Re: Trying to compile xfig2.1.4
Reply-To: alfred@dutentb.et.tudelft.nl
Organization: Delft University of Technology
Date: Thu, 03 Sep 1992 09:09:48 GMT

In article <1992Sep2.110406.27715@bohra.cpg.oz.au>, als@bohra.cpg.oz.au (Anthony Shipman) writes:
|> envbvs@epb9.lbl.gov (Brian V. Smith) writes:
|> 
|> >In article <1992Aug31.161745.1912@informatik.uni-bremen.de>, cop18@lehre25.informatik.Uni-Bremen.DE (Kompilerpraktikum Gruppe18) writes:
|> >|> Today I tried to compile xfig 2.1.4 on our HP9000/720. It worked all fine 
|> >|> until u_undo.c. After this part part I got a Bus Error and signal 10.
|> >|> 
|> >|> Is there somebody who could help out ??
|> 
|> 
|> >Please send me a stack trace and I'll see what I can find.  First, compile
|> >u_undo.c with the -g option so the full symbol information is available
|> >for the stack trace.
|> 
|> 
|> Doesn't he mean the compiler crashed, not the program?  If so, try lower
|> levels of optimisation.
|> -- 
|> Anthony Shipman                 "You've got to be taught before it's too late,
|> CP Software Export Pty Ltd,      Before you are six or seven or eight,
|> 19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
|> Melbourne, Australia, 3121       You've got to be carefully taught."  R&H

The C compiler on the HP9000/700s stumbles over some of the initializations
that take place in u-undo.c (and object.c), which are probably incorrect.
Applying the following patch will probably solve your problem.

----------------------------- cut here ----------------------------
*** u_undo.c	Mon Apr 20 20:57:01 1992
--- u_undo.c	Tue Jul 28 17:39:50 1992
***************
*** 38,45 ****
   * all the "next" fields of objects pointed to by object_tails to NULL.
   */
  
! F_compound	saved_objects = {0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
! F_compound	object_tails = {0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  
  /*************** LOCAL *****************/
  
--- 38,45 ----
   * all the "next" fields of objects pointed to by object_tails to NULL.
   */
  
! F_compound	saved_objects = {0, { 0, 0 }, { 0, 0 }, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
! F_compound	object_tails = {0, { 0, 0 }, { 0, 0 }, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  
  /*************** LOCAL *****************/
  
*** object.c	Mon Apr 20 20:56:14 1992
--- object.c	Thu Sep  3 11:01:08 1992
***************
*** 21,27 ****
  
  /************************  Objects  **********************/
  
! F_compound	objects = {0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  
  /************  global object pointers ************/
  
--- 21,27 ----
  
  /************************  Objects  **********************/
  
! F_compound	objects = {0, { 0, 0 }, { 0, 0 }, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  
  /************  global object pointers ************/
  
----------------------------- cut here ----------------------------
--
Alfred van der Hoeven              |                Room 16.05, Mekelweg 4
Delft University of Technology     |        2628 CD Delft, the Netherlands
Faculty of Electrical Engineering  |  e-mail: alfred@dutentb.et.tudelft.nl
Section Network Theory             |                 tel: +31 (0)15 786621
--                                 |                 fax: +31 (0)15 623271