+ -
当前位置:首页 → 问答吧 → speech-tools编译错误

speech-tools编译错误

时间:2006-08-09

来源:互联网

emerge speech-tools 时:
代码:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from ../include/EST_String.h:50,
 from ../include/siod.h:17,
 from slib.cc:88:
../include/EST_iostream.h:54:26: error: strstream.h: No such file or directory
../include/EST_Chunk.h:131: error: ‘EST_ChunkPtr’ does not name a type
../include/EST_Chunk.h:132: error: ‘EST_ChunkPtr’ does not name a type
../include/EST_Chunk.h:133: error: ‘EST_ChunkPtr’ does not name a type
../include/EST_Chunk.h:135: error: ‘EST_ChunkPtr’ has not been declared
../include/EST_Chunk.h:136: error: ‘EST_ChunkPtr’ has not been declared
../include/EST_Chunk.h:138: error: ‘EST_ChunkPtr’ has not been declared
../include/EST_Chunk.h:139: error: ‘EST_ChunkPtr’ has not been declared
../include/EST_String.h: In member function ‘void EST_String::make_updatable()’:
../include/EST_String.h:253: error: no matching function for call to ‘make_updatable(EST_ChunkPtr&, int)’
../include/EST_TIterator.h: In constructor ‘EST_TStructIterator<Container, IPointer, Entry>::EST_TStructIterator()’:
../include/EST_TIterator.h:204: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘EST_TIterator<Container, IPointer, Entry>& EST_TStructIterator<Container, IPointer, Entry>::operator=(const EST_TIterator<Container, IPointer, Entry>&)’:
../include/EST_TIterator.h:208: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:208: error: ‘pos’ was not declared in this scope
../include/EST_TIterator.h:208: error: ‘pointer’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘const Entry* EST_TStructIterator<Container, IPointer, Entry>::operator->() const’:
../include/EST_TIterator.h:215: error: there are no arguments to ‘current’ that depend on a template parameter, so a declaration of ‘current’ must be available
../include/EST_TIterator.h:215: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../include/EST_TIterator.h: In constructor ‘EST_TRwIterator<Container, IPointer, Entry>::EST_TRwIterator()’:
../include/EST_TIterator.h:234: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘EST_TIterator<Container, IPointer, Entry>& EST_TRwIterator<Container, IPointer, Entry>::operator=(const EST_TIterator<Container, IPointer, Entry>&)’:
../include/EST_TIterator.h:238: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:238: error: ‘pos’ was not declared in this scope
../include/EST_TIterator.h:238: error: ‘pointer’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘void EST_TRwIterator<Container, IPointer, Entry>::begin(Container&)’:
../include/EST_TIterator.h:246: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:246: error: there are no arguments to ‘beginning’ that depend on a template parameter, so a declaration of ‘beginning’ must be available
../include/EST_TIterator.h: In member function ‘Entry& EST_TRwIterator<Container, IPointer, Entry>::current() const’:
../include/EST_TIterator.h:253: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:253: error: ‘pointer’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘Entry& EST_TRwIterator<Container, IPointer, Entry>::next_element()’:
../include/EST_TIterator.h:267: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:267: error: ‘pointer’ was not declared in this scope
../include/EST_TIterator.h: In constructor ‘EST_TRwStructIterator<Container, IPointer, Entry>::EST_TRwStructIterator()’:
../include/EST_TIterator.h:284: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘EST_TIterator<Container, IPointer, Entry>& EST_TRwStructIterator<Container, IPointer, Entry>::operator=(const EST_TIterator<Container, IPointer, Entry>&)’:
../include/EST_TIterator.h:288: error: ‘cont’ was not declared in this scope
../include/EST_TIterator.h:288: error: ‘pos’ was not declared in this scope
../include/EST_TIterator.h:288: error: ‘pointer’ was not declared in this scope
../include/EST_TIterator.h: In member function ‘Entry* EST_TRwStructIterator<Container, IPointer, Entry>::operator->() const’:
../include/EST_TIterator.h:295: error: there are no arguments to ‘current’ that depend on a template parameter, so a declaration of ‘current’ must be available
../include/EST_TList.h: At global scope:
../include/EST_TList.h:226: warning: friend declaration ‘std::ostream& operator<<(std::ostream&, const EST_TList<T>&)’ declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:312: warning: friend declaration ‘std::ostream& operator<<(std::ostream&, const EST_TVector<T>&)’ declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration ‘std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&)’ declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration ‘std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&)’ declares a non-template function
../include/EST_TMatrix.h:307: warning: friend declaration ‘std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&)’ declares a non-template function
../include/EST_TMatrix.h: In member function ‘unsigned int EST_TMatrix<T>::mcell_pos(int, int) const’:
../include/EST_TMatrix.h:107: error: ‘p_column_step’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘const T& EST_TMatrix<T>::fast_a_m(int, int) const’:
../include/EST_TMatrix.h:119: error: ‘p_memory’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘T& EST_TMatrix<T>::fast_a_m(int, int)’:
../include/EST_TMatrix.h:121: error: ‘p_memory’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘const T& EST_TMatrix<T>::fast_a_1(int, int) const’:
../include/EST_TMatrix.h:124: error: ‘p_memory’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘T& EST_TMatrix<T>::fast_a_1(int, int)’:
../include/EST_TMatrix.h:126: error: ‘p_memory’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘int EST_TMatrix<T>::num_columns() const’:
../include/EST_TMatrix.h:178: error: ‘p_num_columns’ was not declared in this scope
../include/EST_TMatrix.h: In member function ‘void EST_TMatrix<T>::fill()’:
../include/EST_TMatrix.h:217: error: ‘def_val’ was not declared in this scope
../include/EST_TSimpleVector.h: In member function ‘void EST_TSimpleVector<T>::empty()’:
../include/EST_TSimpleVector.h:77: error: ‘def_val’ was not declared in this scope
../include/EST_TSimpleVector.h:77: error: there are no arguments to ‘fill’ that depend on a template parameter, so a declaration of ‘fill’ must be available
slib.cc: In function ‘void gc_mark_and_sweep()’:
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/speech-tools-1.2.3-r3 failed.
Call stack:
 ebuild.sh, line 1543: Called dyn_compile
 ebuild.sh, line 938: Called src_compile
 speech-tools-1.2.3-r3.ebuild, line 51: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

作者: 食古不化   发布时间: 2006-08-09

似乎是 gcc 3.X 的产物。。
http://naranja.umh.es/~atg/B10983703...909/index.html

作者: 晨想   发布时间: 2006-08-09

strstream.h 是C++标准化之前的头文件
现在改为sstream

作者: minyoad   发布时间: 2006-08-09

我做了链接:
ln -s sstream strstream.h

第一个错误没有了,余下的错误呢?

作者: 食古不化   发布时间: 2006-08-09