aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] IRIX compile problem aspell-0.60.2


From: Kevin Atkinson
Subject: Re: [aspell-devel] IRIX compile problem aspell-0.60.2
Date: Fri, 18 Mar 2005 11:21:26 -0700 (MST)

On Fri, 18 Mar 2005, Frank Everdij wrote:

> Quoting Gary Setter <address@hidden>:
> 
> > <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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]