LINUX.ORG.RU

Чнго не хватает?


0

0

Скачал тут поисковой скрипт для web (http://www.aspseek.org/)
У меня стоит слака 10, gcc 3.3.4(jn nelf;t) и mysql тоже от туда...
Но при компиляции поисковик пишет ошибку:
Making all in src
make[1]: Entering directory `/usr/src/aspseek-1.2.10/src'
Making all in mysql
make[2]: Entering directory `/usr/src/aspseek-1.2.10/src/mysql'
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/mysql -g -O2 -D_REENTRANT -c mysqldb.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/mysql -g -O2 -D_REENTRANT -c mysqldb.cpp -fPIC -DPIC
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: error: `hash_map' not declared
../../include/maps.h:39: error: `hash_set' not declared
../../include/maps.h:42: error: `hash' is not a template
../../include/maps.h:44: error: can't make `operator()' into a method -- not in
a class
../../include/maps.h:47: error: declaration does not declare anything
../../include/maps.h:50: error: syntax error before `;' token
../../include/maps.h:51: error: syntax error before `;' token
../../include/maps.h:52: error: 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: error: `hash_map' not declared
../../include/charsets.h:39: error: `hash' not declared
../../include/charsets.h:118: error: `hash' is not a template
../../include/charsets.h:120: error: can't make `operator()' into a method --
not in a class
../../include/charsets.h:123: error: declaration does not declare anything
../../include/charsets.h:188: error: parse error before `<' token
../../include/charsets.h:198: error: parse error before `}' token
../../include/charsets.h:209: error: parse error before `<' token
../../include/charsets.h:220: error: destructors must be member functions
../../include/charsets.h: In function `void CSgmlCharMap()':
../../include/charsets.h:221: error: `iterator' undeclared (first use this
function)
../../include/charsets.h:221: error: (Each undeclared identifier is reported
only once for each function it appears in.)
../../include/charsets.h:221: error: parse error before `=' token
../../include/charsets.h:221: error: `it' undeclared (first use this function)
../../include/charsets.h:221: error: `end' undeclared (first use this function)
../../include/charsets.h: At global scope:
../../include/charsets.h:226: error: parse error before `}' token
../../include/charsets.h:229: error: base class `CSgmlCharMap' has incomplete

anonymous

Re: Чнго не хватает?

type
In file included from ../../include/sqldb.h:40,
from ../../include/mysqldb.h:30,
from mysqldb.cpp:26:
../../include/ucharset.h:38: error: `hash_map' not declared
../../include/ucharset.h:227: error: '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: error: `hash_map' undeclared (first use this
function)
../../include/ucharset.h:254: error: parse error before `;' token
../../include/ucharset.h:255: error: `m_reverseMap' undeclared (first use this
function)
../../include/ucharset.h: At global scope:
../../include/ucharset.h:273: error: parse error before `<' token
../../include/ucharset.h:281: error: parse error before `public'
../../include/ucharset.h: In function `CCharsetB* GetCharset(const char*)':
../../include/ucharset.h:286: error: new declaration `CCharsetB*
GetCharset(const char*)'
../../include/charsets.h:195: error: ambiguates old declaration `int
GetCharset(const char*)'
../../include/ucharset.h: In function `CCharsetB* GetCharset(const char*)':
../../include/ucharset.h:287: error: parse error before `=' token
../../include/ucharset.h:290: error: parse error before `,' token
../../include/ucharset.h:291: error: `ita' undeclared (first use this function)
../../include/ucharset.h:291: error: `m_aliasMap' undeclared (first use this
function)
../../include/ucharset.h: At global scope:
../../include/ucharset.h:310: error: parse error before `}' token
../../include/ucharset.h:482: error: `hash' is not a template
../../include/ucharset.h:484: error: can't make `operator()' into a method --
not in a class
../../include/ucharset.h:487: error: declaration does not declare anything
../../include/ucharset.h:575: error: `hash' is not a template
../../include/ucharset.h:577: error: can't make `operator()' into a method --
not in a class
../../include/ucharset.h:580: error: declaration does not declare anything
../../include/ucharset.h:583: error: parse error before `<' token
../../include/ucharset.h: In function `void AddWord(WORD*)':
../../include/ucharset.h:588: error: too many arguments to function `void
AddWord(WORD*)'
../../include/ucharset.h:589: error: at this point in file
../../include/ucharset.h: In function `const CWordLetter* Find(short unsigned
int, const CWordLetter*)':
../../include/ucharset.h:594: error: parse error before `=' token
../../include/ucharset.h: At global scope:
../../include/ucharset.h:606: error: parse error before `}' token
In file included from ../../include/mysqldb.h:30,
from mysqldb.cpp:26:
../../include/sqldb.h:45: error: `hash_set' not declared
../../include/sqldb.h:46: error: `hash_map' not declared
../../include/sqldb.h:75: error: 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: error: `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: error: `hash_map' not declared
../../include/hrefs.h:91: error: `hash' is not a template
../../include/hrefs.h:93: error: can't make `operator()' into a method

anonymous ()

Re: Чнго не хватает?

-- not in a class ../../include/hrefs.h:96: error: declaration does not declare anything ../../include/hrefs.h:108: error: parse error before `<' token ../../include/hrefs.h:121: error: parse error before `public' ../../include/hrefs.h:125: error: ISO C++ forbids declaration of `m_waits' with no type ../../include/hrefs.h:125: error: conflicting types for `int m_waits' ../../include/hrefs.h:115: error: previous declaration as `ULONG m_waits' ../../include/hrefs.h:126: error: ISO C++ forbids declaration of ` pthread_mutex_init' with no type ../../include/hrefs.h:126: error: `int pthread_mutex_init' redeclared as different kind of symbol /usr/include/pthread.h:333: error: previous declaration of `int pthread_mutex_init(pthread_mutex_t*, const pthread_mutexattr_t*)' ../../include/hrefs.h:126: error: initializer list being treated as compound expression ../../include/hrefs.h:126: warning: converting to non-pointer type `int' from NULL ../../include/hrefs.h:127: error: ISO C++ forbids declaration of `m_lru' with no type ../../include/hrefs.h:127: error: conflicting types for `int m_lru' ../../include/hrefs.h:118: error: previous declaration as `CHrefInfo*m_lru' ../../include/hrefs.h:128: error: ISO C++ forbids declaration of `m_maxSize' with no type ../../include/hrefs.h:128: error: conflicting types for `int m_maxSize' ../../include/hrefs.h:119: error: previous declaration as `ULONG m_maxSize' ../../include/hrefs.h:129: error: parse error before `}' token ../../include/hrefs.h:131: error: destructors must be member functions ../../include/hrefs.h:142: error: use of class template `template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' as expression ../../include/hrefs.h:142: error: variable or field `MoveMRU' declared void ../../include/hrefs.h:145: error: parse error before `}' token ../../include/hrefs.h:147: error: syntax error before `;' token ../../include/hrefs.h:148: error: syntax error before `;' token ../../include/hrefs.h:149: error: 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: error: `hash_map' not declared ../../include/squeue.h:185: error: parse error before `<' token ../../include/squeue.h:196: error: redefinition of `pthread_mutex_t m_mutex' ../../include/hrefs.h:117: error: `pthread_mutex_t m_mutex' previously declared here

anonymous ()

Re: Чнго не хватает?

../../include/squeue.h:198: error: parse error before `public'
../../include/squeue.h:202: error: ISO C++ forbids declaration of `
m_currentFail' with no type
../../include/squeue.h:202: error: conflicting types for `int m_currentFail'
../../include/squeue.h:193: error: previous declaration as `
CSiteUrls*m_currentFail'
../../include/squeue.h:203: error: ISO C++ forbids declaration of `m_qDocs'
with no type
../../include/squeue.h:203: error: conflicting types for `int m_qDocs'
../../include/squeue.h:195: error: previous declaration as `ULONG m_qDocs'
../../include/squeue.h:204: error: ISO C++ forbids declaration of `m_activeSize
' with no type
../../include/squeue.h:205: error: ISO C++ forbids declaration of `
m_failedConns' with no type
../../include/squeue.h:205: error: redefinition of `int m_failedConns'
../../include/squeue.h:190: error: `int m_failedConns' previously declared here
../../include/squeue.h:206: error: ISO C++ forbids declaration of `
m_failedProcessed' with no type
../../include/squeue.h:206: error: redefinition of `int m_failedProcessed'
../../include/squeue.h:191: error: `int m_failedProcessed' previously declared
here
../../include/squeue.h:207: error: ISO C++ forbids declaration of `
pthread_mutex_init' with no type
../../include/squeue.h:207: error: redefinition of `int pthread_mutex_init'
../../include/hrefs.h:126: error: `int pthread_mutex_init' previously defined
here
../../include/squeue.h:207: error: initializer list being treated as compound
expression
../../include/squeue.h:207: warning: converting to non-pointer type `int' from
NULL
../../include/squeue.h:208: error: parse error before `}' token
../../include/squeue.h:210: error: destructors must be member functions
../../include/squeue.h:223: error: parse error before `}' token
../../include/squeue.h:256: error: syntax error before `;' token
In file included from ../../include/mysqldbi.h:25,
from mysqldb.cpp:27:
../../include/sqldbi.h:48: error: 'CSitesQueue' is used as a type, but is not
defined as a type.
../../include/sqldbi.h:52: error: 'hash_map' is used as a type, but is not
defined as a type.
../../include/sqldbi.h:85: error: type specifier omitted for parameter `CIntSet
'
../../include/sqldbi.h:85: error: parse error before `*' token
mysqldb.cpp: In member function `virtual char* CMySQLDatabase::DispError()':
mysqldb.cpp:409: error: invalid conversion from `const char*' to `char*'
make[2]: *** [mysqldb.lo] Ошибка 1
make[2]: Leaving directory `/usr/src/aspseek-1.2.10/src/mysql'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/src/aspseek-1.2.10/src'
make: *** [all-recursive] Ошибка 1
Чего не хватает?
Зарание всем спасибо.

anonymous ()
Ответ на: Re: Чнго не хватает? от anonymous

Re: Re: Чнго не хватает?

скорее всего - несовпадение версий. смотри ридми

geek ★★★ ()

Re: Чнго не хватает?

Не стоит ее использовать, разработчики практически забили на проект.

chucha ★★★☆ ()

Re: Чнго не хватает?

mysql со всеми прибамбасами девельными - типа хедеров и т.п.? Тогда точно версия не нравится.

jackill ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.