I compiled 1.2.10 on rh7.2 successful,
but it can not be compiled correctly on rh9.
who successed in rh9?
Please help me to solve these problem,thx.
I have read some post about rh9 here,
somebody said should installed the following 4 package: 
compat-gcc-7.3-2.96.118.i386.rpm 
compat-gcc-c++-7.3-2.96.118.i386.rpm 
compat-libstdc++-7.3-2.96.118.i386.rpm 
compat-libstdc++-devel-7.3-2.96.118.i386.rpm 
but my rh9 have installed these packages,it can not be compiled correctly!

//**errors begin**//
In file included from ../../include/charsets.h:34,
                 from ../../include/ucharset.h:34,
                 from ../../include/sqldb.h:40,
                 from ../../include/mysqldb.h:30,
                 from mysqldb.cpp:26:
./../include/maps.h:38: `hash_map' not declared
./../include/maps.h:39: `hash_set' not declared
./../include/maps.h:42: `hash' is not a template
./../include/maps.h:44: can't make `operator()' into a method -- not in a 
   class
./../include/maps.h:47: declaration does not declare anything
./../include/maps.h:50: syntax error before `;' token
./../include/maps.h:51: syntax error before `;' token
./../include/maps.h:52: syntax error before `;' token
In file included from ../../include/ucharset.h:34,
                 from ../../include/sqldb.h:40,
                 from ../../include/mysqldb.h:30,
                 from mysqldb.cpp:26:
./../include/charsets.h:38: `hash_map' not declared
./../include/charsets.h:39: `hash' not declared
./../include/charsets.h:118: `hash' is not a template
./../include/charsets.h:120: can't make `operator()' into a method -- not in a 
   class
./../include/charsets.h:123: declaration does not declare anything
./../include/charsets.h:188: parse error before `<' token
./../include/charsets.h:198: parse error before `}' token
./../include/charsets.h:209: parse error before `<' token
./../include/charsets.h:220: destructors must be member functions
./../include/charsets.h: In function `void CSgmlCharMap()':
./../include/charsets.h:221: `iterator' undeclared (first use this function)
./../include/charsets.h:221: (Each undeclared identifier is reported only once 
   for each function it appears in.)
./../include/charsets.h:221: parse error before `=' token
./../include/charsets.h:221: `it' undeclared (first use this function)
./../include/charsets.h:221: `end' undeclared (first use this function)
./../include/charsets.h: At global scope:
./../include/charsets.h:226: parse error before `}' token
./../include/charsets.h:229: base class `CSgmlCharMap' has incomplete type
In file included from ../../include/sqldb.h:40,
                 from ../../include/mysqldb.h:30,
                 from mysqldb.cpp:26:
./../include/ucharset.h:38: `hash_map' not declared
./../include/ucharset.h:227: 'hash_map' is used as a type, but is not defined 
   as a type.
./../include/ucharset.h: In member function `virtual BYTE 
   CCharsetU1::Code(short unsigned int, unsigned char)':
./../include/ucharset.h:254: `hash_map' undeclared (first use this function)
./../include/ucharset.h:254: parse error before `;' token
./../include/ucharset.h:255: `m_reverseMap' undeclared (first use this 
   function)
./../include/ucharset.h: At global scope:
./../include/ucharset.h:273: parse error before `<' token
./../include/ucharset.h:281: parse error before `public'
./../include/ucharset.h: In function `CCharsetB* GetCharset(const char*)':
./../include/ucharset.h:286: new declaration `CCharsetB* GetCharset(const 
   char*)'
./../include/charsets.h:195: ambiguates old declaration `int GetCharset(const 
   char*)'
./../include/ucharset.h: In function `CCharsetB* GetCharset(const char*)':
./../include/ucharset.h:287: parse error before `=' token
./../include/ucharset.h:290: parse error before `,' token
./../include/ucharset.h:291: `ita' undeclared (first use this function)
./../include/ucharset.h:291: `m_aliasMap' undeclared (first use this function)
./../include/ucharset.h: At global scope:
./../include/ucharset.h:310: parse error before `}' token
./../include/ucharset.h:482: `hash' is not a template
./../include/ucharset.h:484: can't make `operator()' into a method -- not in a 
   class
./../include/ucharset.h:487: declaration does not declare anything
./../include/ucharset.h:575: `hash' is not a template
./../include/ucharset.h:577: can't make `operator()' into a method -- not in a 
   class
./../include/ucharset.h:580: declaration does not declare anything
./../include/ucharset.h:583: parse error before `<' token
./../include/ucharset.h: In function `void AddWord(WORD*)':
./../include/ucharset.h:588: too many arguments to function `void 
   AddWord(WORD*)'
./../include/ucharset.h:589: at this point in file
./../include/ucharset.h: In function `const CWordLetter* Find(short unsigned 
   int, const CWordLetter*)':
./../include/ucharset.h:594: parse error before `=' token
In file included from ../../include/sqldb.h:40,
                 from ../../include/mysqldb.h:30,
                 from mysqldb.cpp:26:
./../include/ucharset.h: At global scope:
./../include/ucharset.h:606: parse error before `}' token
In file included from ../../include/mysqldb.h:30,
                 from mysqldb.cpp:26:
./../include/sqldb.h:45: `hash_set' not declared
./../include/sqldb.h:46: `hash_map' not declared
./../include/sqldb.h:75: syntax error before `;' token
In file included from ../../include/sqldbi.h:32,
                 from ../../include/mysqldbi.h:25,
                 from mysqldb.cpp:27:
./../include/config.h:41: `hash_map' not declared
In file included from ../../include/squeue.h:33,
                 from ../../include/sqldbi.h:34,
                 from ../../include/mysqldbi.h:25,
                 from mysqldb.cpp:27:
./../include/hrefs.h:35: `hash_map' not declared
./../include/hrefs.h:91: `hash' is not a template
./../include/hrefs.h:93: can't make `operator()' into a method -- not in a 
   class
./../include/hrefs.h:96: declaration does not declare anything
./../include/hrefs.h:108: parse error before `<' token
./../include/hrefs.h:121: parse error before `public'
./../include/hrefs.h:125: ISO C++ forbids declaration of `m_waits' with no 
   type
./../include/hrefs.h:125: conflicting types for `int m_waits'
./../include/hrefs.h:115: previous declaration as `ULONG m_waits'
./../include/hrefs.h:126: ISO C++ forbids declaration of `pthread_mutex_init' 
   with no type
./../include/hrefs.h:126: `int pthread_mutex_init' redeclared as different 
   kind of symbol
/usr/include/pthread.h:333: previous declaration of `int 
   pthread_mutex_init(pthread_mutex_t*, const pthread_mutexattr_t*)'
./../include/hrefs.h:126: initializer list being treated as compound 
   expression
./../include/hrefs.h:126: warning: initialization to non-pointer type `int' 
   from NULL
./../include/hrefs.h:126: warning: argument to non-pointer type `int' from 
   NULL
./../include/hrefs.h:127: ISO C++ forbids declaration of `m_lru' with no type
./../include/hrefs.h:127: conflicting types for `int m_lru'
./../include/hrefs.h:118: previous declaration as `CHrefInfo*m_lru'
./../include/hrefs.h:127: warning: initialization to non-pointer type `int' 
   from NULL
./../include/hrefs.h:127: warning: argument to non-pointer type `int' from 
   NULL
./../include/hrefs.h:128: ISO C++ forbids declaration of `m_maxSize' with no 
   type
./../include/hrefs.h:128: conflicting types for `int m_maxSize'
./../include/hrefs.h:119: previous declaration as `ULONG m_maxSize'
./../include/hrefs.h:129: parse error before `}' token
./../include/hrefs.h:131: destructors must be member functions
./../include/hrefs.h:142: use of class template `template<class _Category, 
   class _Tp, class _Distance, class _Pointer, class _Reference> struct 
   std::iterator' as expression
./../include/hrefs.h:142: variable or field `MoveMRU' declared void
./../include/hrefs.h:145: parse error before `}' token
./../include/hrefs.h:147: syntax error before `;' token
./../include/hrefs.h:148: syntax error before `;' token
./../include/hrefs.h:149: syntax error before `;' token
In file included from ../../include/sqldbi.h:34,
                 from ../../include/mysqldbi.h:25,
                 from mysqldb.cpp:27:
./../include/squeue.h:36: `hash_map' not declared
./../include/squeue.h:185: parse error before `<' token
./../include/squeue.h:196: redefinition of `pthread_mutex_t m_mutex'
./../include/hrefs.h:117: `pthread_mutex_t m_mutex' previously declared here
./../include/squeue.h:198: parse error before `public'
./../include/squeue.h:202: ISO C++ forbids declaration of `m_currentFail' with 
   no type
./../include/squeue.h:202: conflicting types for `int m_currentFail'
./../include/squeue.h:193: previous declaration as `CSiteUrls*m_currentFail'
./../include/squeue.h:202: warning: initialization to non-pointer type `int' 
   from NULL
./../include/squeue.h:202: warning: argument to non-pointer type `int' from 
   NULL
./../include/squeue.h:203: ISO C++ forbids declaration of `m_qDocs' with no 
   type
./../include/squeue.h:203: conflicting types for `int m_qDocs'
./../include/squeue.h:195: previous declaration as `ULONG m_qDocs'
./../include/squeue.h:204: ISO C++ forbids declaration of `m_activeSize' with 
   no type
./../include/squeue.h:205: ISO C++ forbids declaration of `m_failedConns' with 
   no type
./../include/squeue.h:205: redefinition of `int m_failedConns'
./../include/squeue.h:190: `int m_failedConns' previously declared here
./../include/squeue.h:206: ISO C++ forbids declaration of `m_failedProcessed' 
   with no type
./../include/squeue.h:206: redefinition of `int m_failedProcessed'
./../include/squeue.h:191: `int m_failedProcessed' previously declared here
./../include/squeue.h:207: ISO C++ forbids declaration of `pthread_mutex_init' 
   with no type
./../include/squeue.h:207: redefinition of `int pthread_mutex_init'
./../include/hrefs.h:126: `int pthread_mutex_init' previously defined here
./../include/squeue.h:207: initializer list being treated as compound 
   expression
./../include/squeue.h:207: warning: initialization to non-pointer type `int' 
   from NULL
./../include/squeue.h:207: warning: argument to non-pointer type `int' from 
   NULL
./../include/squeue.h:208: parse error before `}' token
./../include/squeue.h:210: destructors must be member functions
./../include/squeue.h:223: parse error before `}' token
./../include/squeue.h:256: syntax error before `;' token
In file included from ../../include/mysqldbi.h:25,
                 from mysqldb.cpp:27:
./../include/sqldbi.h:48: 'CSitesQueue' is used as a type, but is not defined 
   as a type.
./../include/sqldbi.h:52: 'hash_map' is used as a type, but is not defined as 
   a type.
./../include/sqldbi.h:85: type specifier omitted for parameter `CIntSet'
./../include/sqldbi.h:85: parse error before `*' token
make[2]: *** [mysqldb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
//**error end**//




Reply via email to