From: jep@ohriman.mi.org (John Perry)
Newsgroups: biz.sco.general
Subject: compiling GNU programs
Date: 31 Dec 92 01:46:28 GMT
Reply-To: jep@ohriman.mi.org
Organization: Arbornet, Inc. (M-Net Public Access Unix: 313-996-4644)
Resent-From: mmdf@xenitec.on.ca
Submit-To: scogen@xenitec.on.ca
Content-Type: text
Content-Length: 2808
Precedence: bulk


	I've got a few problems compiling GNU software which I'm hoping
someone here can help with.
	I'm running gcc 2.3.3 (which, by the way, appears to compile without 
problems using the instructions for SCO).  I've had the same problems
with 2.2.2 and 2.3.2 in the past, which I compiled using different
sets of instructions and patches provided by people on this list.
	When I try to compile gdb 4.7, everything appears to go smoothly
until it gets to "readline.c".  There I get massive errors; parse
errors originating with /usr/include/sys/stream.h, including:

/usr/include/sys/stream.h:118: parse error before `sd_iocwait`
/usr/include/sys/stream.h:118: warning: data definition has no type or
storage class

	There are between dozens and hundreds of these.  I also get error
messages originating with ptem.h and file.h, which are also in
/usr/include/sys.  The compilation goes on to complain about "storage
size of (many names) isn't known (a couple are otio and tio), and a
lot of "(NAME) undeclared (first use this function)" messages.  (NAME)
is `TGETCA', `TCSETAW', and a dozen other things beginning with TC.

	I'm no programmer.  I don't really need gdb or know how to use
it, but I'm frustrated that I can't get it to compile.

	I'm having problems with libg++ 2.3 as well.  This fails very
quickly.  I get to "ar gc libiberty.a", and then "true libiberty.a",
and then get a:

sh: syntax error at line 67: `end of file' unexpected.

	The default Makefile produced by './configure i386-sco3.2v4'
compiles all the object files for libiberty.a with cc.  I tried to do
a "CC=gcc;export CC" and then run "make clean" and then "make" again.
The gcc version fails at the same point.

	I do need libg++, since I want to compile groff 1.06, and groff
fails in absence of libg++.  Groff is the main reason I started trying
to compile gcc, since SCO doesn't offer nroff.  I do have the binary
for groff 1.0, which I got from anomaly.  It works, but I want to be
able to compile the latest and presumably greatest.

	What am I doing wrong?  I'm hoping this is a laugher for someone,
which can be easily solved.

	I got no errors compiling gcc.  I can compile some other programs
using gcc.  (Most of shellutils 1.8, which fails when it gets to 'su';
most of the binutils 1.9, fileutils 3.4, textutils 1.3, and binutils
2.0, but not all of them.  I don't remember which programs fail in
these packages.)   I had similar problems with gcc 2.2.2 and 2.3.2 as
well.  2.3.2 could compile emacs and sed, but not oleo.  2.3.3
compiles gzip 0.5 just fine.

	Any help would be appreciated very much.

-- 
"Veni, Vidi, Visa: We came, We saw, We spent."  Meg Geddes, December 1992
     ~     ~     ~     ~     ~     ~     ~     ~     ~     ~     ~
John Perry      jep@ohriman.mi.org      ..!destroyer!netmeg!ohriman!jep
Xref: sparky biz.sco.general:4886 biz.sco.opendesktop:899 comp.unix.sysv386:17644