Compiling g++ on Decstation 3100, anyone?

Stuart R Kemp cpsrk at iceman.jcu.oz
Thu Aug 2 18:53:40 AEST 1990


Platform: Decstation 3100, Ultrix V3.1D (rev 54) Worksystem V2.2

Problem:
  Trying to install g++ v1.37.1, after successfully installing gcc v1.37.1
  Get errors with N_TXTOFF macro in ld.c module
  The macro has one parameter, but is defined with 2 parameters
   in the include file /usr/include/a.out.h; defn as follows:

 * have to be inspected.  The macro N_TXTOFF() takes pointers to file header
 * and optional header and returns the file offset to the start of the raw
 * data for the .text section.  The raw data for the three data sections
 * follows the start of the .text section by the value of tsize in the optional
 * header.
 *
 * Object files produced by pre 0.23 versions of the compiler had their sections
 * rounded to 8 byte boundaries.  0.23 and later versions have their sections
 * rounded to 16 (SCNROUND in scnhdr.h) byte boundaries.
 */
#define N_TXTOFF(f, a) \
 ((a).magic == ZMAGIC || (a).magic == LIBMAGIC ? 0 : \
  ((a).vstamp < 23 ? \
   ((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + 7) & 0xfffffff8) : \
   ((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + SCNROUND-1) & ~(SCNROUND-1)) ) )

Takes two parameters... This is inside a #ifdef mips #endif pair

Surely someone else has encountered this problem - how do
I get around it?

Replies via email, please.

Thanks,

-Stuart Kemp
stuart at sheila.jcu.edu.au



More information about the Comp.unix.ultrix mailing list