🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Joseph E. Sacco Fri, 06 Nov 1992 14:49
gcc-2.3.1 breaks oleo-1.0
#1293
Author: Joseph E. Sacco
Date: Fri, 06 Nov 1992 14:49
53 lines
2731 bytes
Tried to build oleo-1.0 using gcc-2.3.1 on a SUN IPX running OS-4.1.3.
After editing one include file to fix a bad prototype:

    *** io_utils.h  Thu Nov  5 10:37:58 1992
    --- io_utils.h.dist     Thu Nov  5 10:37:41 1992
    ***************
    *** 24,30 ****
      #ifdef __STDC__
      extern void clear_spreadsheet ();
      extern char *print_cell (CELL *);
    ! extern char *cell_value_string (CELLREF r, CELLREF c);
      extern char *col_to_str (CELLREF);
      extern char *flt_to_str (double);
      char *backslash_a_string (char *, int);
    --- 24,30 ----
      #ifdef __STDC__
      extern void clear_spreadsheet ();
      extern char *print_cell (CELL *);
    ! extern char *cell_value_string (int r, int c);
      extern char *col_to_str (CELLREF);
      extern char *flt_to_str (double);
      char *backslash_a_string (char *, int);


I ran into an alignment error:

                            .
                            .
                            .

eileen% gcc -v -O -c -g  -DSTDC_HEADERS=1 -DHAVE_X11_X_H=1 -DHAVE_UALARM=1 -DHAVE_SETITIMER=1 -DHAVE_RENAME=1 -DHAVE_VPRINTF=1  io_utils.c

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.1/specs
gcc version 2.3.1
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.1/cpp -lang-c -v -DSTDC_HEADERS=1 -DHAVE_X11_X_H=1 -DHAVE_UALARM=1 -DHAVE_SETITIMER=1 -DHAVE_RENAME=1 -DHAVE_VPRINTF=1 -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -D__OPTIMIZE__ -g io_utils.c /usr/tmp/cca12771.i
GNU CPP version 2.3.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.1/cc1 /usr/tmp/cca12771.i -quiet -dumpbase io_utils.c -g -O -version -o /usr/tmp/cca12771.s
GNU C version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
 as -o io_utils.o /usr/tmp/cca12771.s
as: "/usr/tmp/cca12771.s", line 111: error: location counter not on word boundary
gcc: io_utils.o: No such file or directory



Note that this code compiles and runs under SUN's C-compiler.

-Joseph

-- 
Dr. Joseph E. Sacco            | UUCP: ...!uunet!pws.ma30.bull.com!eileen!sacco
Mitchell & Gauthier Associates | Internet: sacco@mga.com
200 Baker Avenue               | Fax:      (508)-369-0013
Concord, MA 01742-2100         | Voice:    (508)-369-5115
Re: gcc-2.3.1 breaks oleo-1.0
#1327
Author: George Lindholm
Date: Mon, 09 Nov 1992 19:17
15 lines
1356 bytes
In article <9211070046.AA09089@slug.unidesk.com>, sacco@mga.COM (Joseph E. Sacco) writes:
> Tried to build oleo-1.0 using gcc-2.3.1 on a SUN IPX running OS-4.1.3.
...
>  as -o io_utils.o /usr/tmp/cca12771.s
> as: "/usr/tmp/cca12771.s", line 111: error: location counter not on word boundary

The problem is that oleo assumes that if you are using gcc to compile the
source, you are also using gas as the assembler. You can either install
gas in the gcc tree or rip out the "asm" statements in io_utils.c.

-- 
George Lindholm                                  phone:    (604) 822-4375
University Computing Services, UBC               fax:      (604) 822-5116
6356 Agricultural Road, Vancouver, B.C., Canada  internet: lindholm@ucs.ubc.ca
V6T 1Z2                                          bitnet:   USERGNL@UBCMTSG
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads