Re: IRIX compile problem aspell-0.60.2

Kevin Atkinson <[email protected]>
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <Pine.LNX.4.44.0503181112350.1560-100000@kevin-p3.atkinson.dhs.org>
On Fri, 18 Mar 2005, Frank Everdij wrote:

> Quoting Gary Setter <[email protected]>:
> 
> > <snip>
> > I'm not sure I can solve the problem, but since you made some
> > changes to the source, would you post the definition of the
> > QuoteChars please.
> > Best regards,
> > Gary Setter
>  
> I have made no changes to the source, trust me. This is a plain vanilla
> aspell-0.60.2.
> But i have found a solution to the 4 errors in modules/filter/email.cpp:
> 
> >From an old KDE-development discussion on porting to IRIX i remembered something
> about code not belonging in c++ source code files, but in header files.
> Aapparently the namespace section in email.cpp should belong in a header,
> atleast according to the MIPSPro compiler, so i spliced the source file into a
> header part and code part:

That is very ugly and probably unnecessary.  It may be just the anonymous 
namespace that is causing the problem.  Try simply commenting out the 
"namespace {" and the closing "}" and see if that solved the problem.

> --- common/string.hpp.save	Mon Nov 29 18:50:05 2004
> +++ common/string.hpp	Fri Mar 18 15:54:12 2005
> @@ -492,7 +492,7 @@
>  
>  namespace std
>  {
> -  template<> static inline void swap(acommon::String & x, acommon::String & y)
> {return x.swap(y);}
> +  template<> inline void swap(acommon::String & x, acommon::String & y) {return
> x.swap(y);}
>  }

That is fine.  I believe I already fixed this.  I will double check.

> --- modules/speller/default/affix.hpp.save	Fri Mar 18 09:58:10 2005
> +++ modules/speller/default/affix.hpp	Fri Mar 18 09:58:39 2005
> @@ -109,7 +109,7 @@
>      }
>      WordAff * expand_suffix(ParmString word, const unsigned char * new_aff,
>                              ObjStack &, int limit = INT_MAX,
> -                            unsigned char * new_aff = 0, WordAff * * * l = 0,
> +                            unsigned char * new_aff_ = 0, WordAff * * * l = 0,
>                              ParmString orig_word = 0) const;

Look at the file in the corresponding source file affix.hpp.  The first 
new_add should just be "aff".

> Last error i found is that when compiling i get an error in
> gen/static-filters.src.cpp:
> ..
> cc-1070 CC: ERROR File = ./gen/static_filters.src.cpp, Line = 76
>   The indicated type is incomplete.
> 
>     static KeyInfo nroff_options[] = {
>                    ^
> 
> cc-1070 CC: ERROR File = ./gen/static_filters.src.cpp, Line = 103
>   The indicated type is incomplete.
> 
>     static KeyInfo url_options[] = {
>                    ^
> 
> 2 errors detected in the compilation of "lib/new_filter.cpp".
> 
> Probably the perl scripts in directory gen got confused and decided to refrain
> from putting an option in there, which the MIPSPro compiler rejects. modifying
> them to:

No those should be empty arrays.

-- 
http://kevin.atkinson.dhs.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.