[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pspell] Building on IRIX
From: |
Daniel Richard G. |
Subject: |
[pspell] Building on IRIX |
Date: |
Wed, 5 Jul 2000 00:15:19 -0400 (EDT) |
I tried building pspell on IRIX, but ran smack into a wall of C++ quirks. I
thought I'd post the results here, should they be of any help.
Attached is a patch containing a few changes I made initially, to smooth
out a few bumps that CC choked on. Mainly changing things like "#include
<cstring>" to "#include <string.h>", since IRIX's C++ headers don't seem to
include the c* family. (I'm no C++ expert by any means; this should give
the same result, no?)
However, compiling one particular file gives a barrage of errors I was
unable to resolve:
--------(snip)--------
stripes:~/pspell-.11.0.2-sgi> gmake
Making all in modules
gmake[1]: Entering directory `/home/skunk/pspell-.11.0.2-sgi/modules'
gmake[1]: Leaving directory `/home/skunk/pspell-.11.0.2-sgi/modules'
Making all in interface
gmake[1]: Entering directory `/home/skunk/pspell-.11.0.2-sgi/interface'
/bin/sh ../libtool --mode=compile CC -DPACKAGE=\"pspell\"
-DVERSION=\".11.0.2\" -DDATADIR=\"/usr/local/share/pspell\"
-DLIBDIR=\"/usr/local/lib\" -I../modules/ -I./ -O3 -LANG:std -c
config_impl.cc
rm -f .libs/config_impl.lo
CC -DPACKAGE=\"pspell\" -DVERSION=\".11.0.2\"
-DDATADIR=\"/usr/local/share/pspell\" -DLIBDIR=\"/usr/local/lib\"
-I../modules/ -I./ -O3 -LANG:std -c config_impl.cc -DPIC -o
.libs/config_impl.lo
cc-1682 CC: WARNING File = string.hh, Line = 16
The overloaded virtual function "PspellAppendableString::append" is only
partially overridden in class "PspellString".
class PspellString : public PspellAppendableString
^
cc-1116 CC: WARNING File = error_impl.hh, Line = 50
Non-void function "PspellCanHaveErrorImpl::set_error(PspellCanHaveError *)"
(declared at line 43) should return a value.
}
^
cc-1020 CC: ERROR File = config_impl.hh, Line = 134
The identifier "ostream" is undefined.
void write_to_stream(ostream & out, bool include_extra = false);
^
cc-1020 CC: ERROR File = config_impl.hh, Line = 137
The identifier "istream" is undefined.
bool read_in_stream(istream & in);
^
cc-1020 CC: ERROR File = getdata.hh, Line = 38
The identifier "istream" is undefined.
istream * in;
^
cc-1020 CC: ERROR File = getdata.hh, Line = 41
The identifier "istream" is undefined.
PspellGetLineFromStream(istream * i, char d = '\n')
^
cc-1515 CC: ERROR File = config_impl.cc, Line = 32
A value of type "PspellNotifier *" cannot be assigned to an entity of
type
"PspellNotifier **".
notifier_list = new (PspellNotifier *)[1];
^
cc-1515 CC: ERROR File = config_impl.cc, Line = 45
A value of type "PspellNotifier *" cannot be assigned to an entity of type
"PspellNotifier **".
notifier_list = new (PspellNotifier *)[1];
^
cc-1515 CC: ERROR File = config_impl.cc, Line = 56
A value of type "PspellNotifier *" cannot be assigned to an entity of type
"PspellNotifier **".
notifier_list = new (PspellNotifier *)[1];
^
cc-1515 CC: ERROR File = config_impl.cc, Line = 108
A value of type "PspellNotifier *" cannot be assigned to an entity of type
"PspellNotifier **".
notifier_list = new (PspellNotifier *)[old_size + 2];
^
cc-1515 CC: ERROR File = config_impl.cc, Line = 129
A value of type "PspellNotifier *" cannot be assigned to an entity of type
"PspellNotifier **".
notifier_list = new (PspellNotifier *)[old_size];
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 631
The identifier "ostream" is undefined.
ostream * out;
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 634
The identifier "ostream" is undefined.
PspellListDump(ostream & o, const char * n)
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 647
The identifier "ostream" is undefined.
void PspellConfigImpl::write_to_stream(ostream & out,
^
cc-3168 CC: ERROR File = config_impl.cc, Line = 650
A name followed by "::" must be a class or namespace name.
ios::fmtflags f = out.flags();
^
cc-1065 CC: ERROR File = config_impl.cc, Line = 650
A semicolon is expected at this point.
ios::fmtflags f = out.flags();
^
cc-3168 CC: ERROR File = config_impl.cc, Line = 651
A name followed by "::" must be a class or namespace name.
out.setf(ios::left);
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 668
The identifier "setw" is undefined.
out << setw(15) << i->name << " " << value << "\n";
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 678
The identifier "f" is undefined.
out.flags(f);
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 693
The identifier "istream" is undefined.
bool PspellConfigImpl::read_in_stream(istream & in)
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 700
The identifier "ifstream" is undefined.
ifstream in(file);
^
cc-1065 CC: ERROR File = config_impl.cc, Line = 700
A semicolon is expected at this point.
ifstream in(file);
^
cc-1020 CC: ERROR File = config_impl.cc, Line = 701
The identifier "in" is undefined.
if (in.rdstate() & ios::badbit) {
^
cc-3168 CC: ERROR File = config_impl.cc, Line = 701
A name followed by "::" must be a class or namespace name.
if (in.rdstate() & ios::badbit) {
^
22 errors detected in the compilation of "config_impl.cc".
gmake[1]: *** [config_impl.lo] Error 1
gmake[1]: Leaving directory `/home/skunk/pspell-.11.0.2-sgi/interface'
gmake: *** [all-recursive] Error 1
stripes:~/pspell-.11.0.2-sgi>
--------(snip)--------
The "undefined identifier" errors have me particularly baffled, as I added
"include <iostream>" to the top of config_impl.cc, and
/usr/include/CC/iostream includes the lines:
extern istream cin;
extern ostream cout;
extern ostream cerr;
extern ostream clog;
that do not generate any errors.
Anyway, I hope this helps, and if further testin/reporting would be useful
please feel free to contact me. (note, I'm not subscribed to this list...)
--Straker
//,, //,,
//=================// ////// ////// //==================================\\
Straker Skunk / ////// ////// / Skunks are such wonderful
<address@hidden> / ////// ////// / creatures... soft, and cuddly,
-- -- -- -- -- --\ \\\\\\ \\\\\\ \ and if you annoy them they
Daniel Richard G. \ \\\\\\ \\\\\\ \ make you stink like hell
========--====--==-\ \\\\\\ \\\\\\ \---------------=--==--====--========
//mit.edu/straker / ////// ////// / Furry|Course VI-3|MIT Class of 2001
//skunk.mit.edu / ////// ////// / 80% Beaver 90% Penguin 100% SKUNK!!!
\\===============// ////// ////// //====================================//
''// ''//
diff -ur pspell-.11.0.2/interface/app_string.hh
pspell-.11.0.2-sgi/interface/app_string.hh
--- pspell-.11.0.2/interface/app_string.hh Sun Jun 11 14:09:30 2000
+++ pspell-.11.0.2-sgi/interface/app_string.hh Tue Jul 4 19:57:50 2000
@@ -11,7 +11,7 @@
#ifndef PSPELL_APP_STRING__HH
#define PSPELL_APP_STRING__HH
-#include <cstring>
+#include <string.h>
class PspellAppendableString {
public:
diff -ur pspell-.11.0.2/interface/config_impl.cc
pspell-.11.0.2-sgi/interface/config_impl.cc
--- pspell-.11.0.2/interface/config_impl.cc Sun Jun 11 00:01:41 2000
+++ pspell-.11.0.2-sgi/interface/config_impl.cc Tue Jul 4 20:09:15 2000
@@ -1,10 +1,11 @@
-#include <cstdio>
-#include <cstring>
-#include <cstdlib>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
#include <iomanip>
#include <fstream>
-#include <cassert>
+#include <iostream>
+#include <assert.h>
#include "error.h"
#include "config_impl.hh"
diff -ur pspell-.11.0.2/interface/error_impl.hh
pspell-.11.0.2-sgi/interface/error_impl.hh
--- pspell-.11.0.2/interface/error_impl.hh Fri Jun 9 16:32:57 2000
+++ pspell-.11.0.2-sgi/interface/error_impl.hh Tue Jul 4 20:03:53 2000
@@ -93,4 +93,4 @@
};
-#endif;
+#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [pspell] Building on IRIX,
Daniel Richard G. <=