aspell-devel
[Top][All Lists]
Advanced

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

[aspell-devel] aspell 0.50.3 compile error on Solaris 2.8 with Forte C++


From: Manfred . Metz
Subject: [aspell-devel] aspell 0.50.3 compile error on Solaris 2.8 with Forte C++
Date: Thu, 20 Feb 2003 09:14:09 +0100

Hi

I still have problems compiling aspell 0.50.3 on Solaris 2.8 (sparc) with Forte
Developer 7 C++ 5.4

I applied some of the suggested patches for known compile errors (See below)

diff -r aspell-0.50.3//common/string_list.hpp
aspell-0.50.3_forte//common/string_list.hpp
88c88
<     unsigned int size() const { abort(); }
---
>     unsigned int size() const { abort(); return 0; }
diff -r aspell-0.50.3//common/vector.hpp aspell-0.50.3_forte//common/vector.hpp
19c19
<       push_back(t);
---
>       this->push_back(t);
22c22
<       insert(end(), begin, begin+size);
---
>       insert(this->end(), begin, begin+size);
25c25
<       return &front();
---
>       return &this->front();
29c29
<       return &*begin();
---
>       return &*this->begin();
32c32
<       return &*end();
---
>       return &*this->end();
diff -r aspell-0.50.3//modules/speller/default/data.cpp
aspell-0.50.3_forte//modules/speller/default/data.cpp
110,111c110,113
<     const_cast<String &      >(path) = "";
<     const_cast<const char * &>(name) = path.c_str();
---
>     //const_cast<String &      >(path) = "";
>     //const_cast<const char * &>(name) = path.c_str();
>     path = "";
>     name = path.c_str();
116c118,119
<     const_cast<String &>(path) = str;
---
>     //const_cast<String &>(path) = str;
>     path = str;
126c129,130
<     const_cast<const char * &>(name) = path.c_str() + i;
---
>     //const_cast<const char * &>(name) = path.c_str() + i;
>     name = path.c_str() + i;
diff -r aspell-0.50.3//modules/speller/default/data.hpp
aspell-0.50.3_forte//modules/speller/default/data.hpp
43,44c43,46
<       const String       path;
<       const char * const name;
---
>       //const String       path;
>       //const char * const name;
>       String       path;
>       const char * name;
49,51c51,53
<       FileName() {clear();}
<       explicit FileName(ParmString str) {set(str);}
<       FileName(const FileName & other) {copy(other);}
---
>       FileName() : name("") {clear();}
>       explicit FileName(ParmString str) : name("") {set(str);}
>       FileName(const FileName & other) : name("") {copy(other);}
318c320
<     virtual StringEnumeration * elements() const {abort();} //FIXME
---
>     virtual StringEnumeration * elements() const {abort(); return 0;} //FIXME
diff -r aspell-0.50.3//modules/speller/default/readonly_ws.cpp
aspell-0.50.3_forte//modules/speller/default/readonly_ws.cpp
615c615
<     hash<const char *>  hash;
---
>     hash<const char *>  hashi;
diff -r aspell-0.50.3//modules/speller/default/speller_impl.cpp
aspell-0.50.3_forte//modules/speller/default/speller_impl.cpp
481a482
>       return no_err;
484a486
>       return no_err;
493a496
>       return no_err;
diff -r aspell-0.50.3//modules/speller/default/vector_hash.hpp
aspell-0.50.3_forte//modules/speller/default/vector_hash.hpp
60,62c60,62
<     typedef typename std::iterator_traits<TableIter>::difference_type
difference_type;
<     typedef typename std::iterator_traits<TableIter>::pointer         pointer;
<     typedef typename std::iterator_traits<TableIter>::reference
reference;
---
>     //typedef typename std::iterator_traits<TableIter>::difference_type
difference_type;
>     //typedef typename std::iterator_traits<TableIter>::pointer
pointer;
>     //typedef typename std::iterator_traits<TableIter>::reference
reference;
243c243
<       friend class HashTable;
---
>       friend HashTable;
257c257
<     friend class FindIterator;
---
>     friend FindIterator;


Now all files in the common subdirectory compile without errors and warnings but
there is still one error

source='readonly_ws.cpp' object='readonly_ws.lo' libtool=yes \
depfile='.deps/readonly_ws.Plo' tmpdepfile='.deps/readonly_ws.TPlo' \
depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I.
-I../../../common -I../../../common  -features=transitions  -g -c -o
readonly_ws.lo `test -f 'readonly_ws.cpp' || echo './'`readonly_ws.cpp
 CC -DHAVE_CONFIG_H -I. -I. -I../../../common -I../../../common
-features=transitions -g -c readonly_ws.cpp  -DPIC
"readonly_ws.cpp", line 197: Error: Redefining acommon::hash<acommon::K> after
use in aspeller_default_readonly_ws::ReadOnlyWS::SoundslikeLookupParms.
1 Error(s) detected.
make[3]: *** [readonly_ws.lo] Error 1
make[3]: Leaving directory `/data/src/aspell-0.50.3/modules/speller/default'


any suggestions?

Manfred Metz

Rohde & Schwarz GmbH & Co. KG
Postbox 80 14 69, D-81614 Muenchen
Dept. RB-CK
Tel ++ 49 89 4129 13159
Fax ++ 49 89 4129 13683
Internet: address@hidden









reply via email to

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