Article View: gnu.gcc.help
Article #51621compiling octave
From: Keerthi Angammana
Date: Mon, 26 Apr 1993 07:06
Date: Mon, 26 Apr 1993 07:06
77 lines
2979 bytes
2979 bytes
Hi,
I am trying to compile octave-0.70 on a Sun SPARC 2 running SunOs 4.1.1
and gcc/g++ 2.3.3. I am kind of new to unix/gnu, and I am pretty sure It
must be something totally boneheaded that I am doing. Would really
appreciate any help I can get.
1) At the beginning, gcc complained about being unable to find various
include files. I poked around the system, and gave the following
paths (in the given order) :-
*/lib/gcc-lib/sparc/2.3.3
*/lib/g++-include
Is this the correct thing to do ?
2) So it starts compiling, and after some time says :-
tree.cc: In method `class tree_constant tree_matrix::eval (int)':
tree.cc:284: parse error before `else'
The offending piece of code seems to be :-
281: direct = list->dir;
282: if (list == this)
283: assert (direct == tree::md_none);
284: else if (first)
285: direct = md_none;
What might I be doing wrong ?
Actually, if I comment out the assert() the compile goes through that
point. But the documentation that comes with the distribution from
ftp.che.utexas.edu says the program should compile fine with gcc 2.3.3
as it is. (Although they say SunOs 4.1.2, whereas I am using 4.1.1. could
this make a difference ?)
3) Now if I comment out the assertion, and let it continue, I get a number of
errors. A couple of samples follow :-
sample 1
--------
In file included from ../bsd-math/log1p.c:97:
/afs/ir/systems/sun4c_411/newsw/lib/g++-include/errno.h:3:
parse error before string constant
In file included from ../bsd-math/log1p.c:97:
/afs/ir/systems/sun4c_411/newsw/lib/g++-include/errno.h:22:
parse error before `}'
Here is part of the file <errno.h> :-
1: #ifndef errno_h
2:
3: extern "C" {
sample 2
--------
../bsd-math/log1p.c:114: conflicting types for `finite'
/afs/ir/systems/sun4c_411/newsw/lib/gcc-lib/sparc/2.3.3/include/math.h:56:
previous declaration of `finite'
../bsd-math/log1p.c:35: warning: `sccsid' defined but not used
gmake[1]: *** Error 1
Here is part of the file "log1p.h" :-
114: extern double scalb(), copysign(), logb(), finite(), log__L();
thanks
-keerthi
Technical Details
Message-ID:
<1993Apr26.070618.12205@leland.Stanford.EDU>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!linac!unixhub!headwall.Stanford.EDU!nntp.Stanford.EDU!leland.Stanford.EDU!keerthiShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b688acb05362a831,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-26 00:44:10 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!linac!unixhub!headwall.Stanford.EDU!nntp.Stanford.EDU!leland.Stanford.EDU!keerthi From: keerthi@leland.Stanford.EDU (Keerthi Angammana) Subject: compiling octave Message-ID: <1993Apr26.070618.12205@leland.Stanford.EDU> Keywords: octave Sender: news@leland.Stanford.EDU (Mr News) Organization: DSG, Stanford University, CA 94305, USA Date: Mon, 26 Apr 93 07:06:18 GMT Lines: 78