Hi,

Does anyone know of a program/good way to test the number of concurrent connections a MySQL server can handle?

I get errors building super smack (and I've also tried an old script called mysql-con_stress (by Sascha) with similar results...)

Can anyone help?
I'm using SuSE 8.2, gcc version 3.3 20030226 (prerelease) on a Intel Xeon system.
I'm also getting the same errors on a Gentoo Linux system (gcc version 3.2.2)


Super-smack errors:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql4/include/mysql -g -O2 -c client.cc
In file included from client.h:15,
from client.cc:1:
dictionary.h:15: error: `string' was not declared in this scope
dictionary.h:15: error: 'vector' is used as a type, but is not defined as a
type.
dictionary.h:17: error: 'string' is used as a type, but is not defined as a
type.
dictionary.h:59: error: 'string' is used as a type, but is not defined as a
type.
dictionary.h: In constructor `Unique_dictionary::Unique_dictionary()':
dictionary.h:65: error: class `Unique_dictionary' does not have any field named
`templ'
dictionary.h: In member function `void Unique_dictionary::set_template(const
char*)':
dictionary.h:71: error: 'class Unique_dictionary' has no member named 'templ'
In file included from client.h:16,
from client.cc:1:
query.h: At global scope:
query.h:14: error: 'string' is used as a type, but is not defined as a type.
query.h:15: error: 'string' is used as a type, but is not defined as a type.
query.h:16: error: 'string' is used as a type, but is not defined as a type.
query.h: In constructor `Query::Query()':
query.h:20: error: class `Query' does not have any field named `query'
query.h:20: error: class `Query' does not have any field named `name'
query.h:20: error: class `Query' does not have any field named `type_name'
query.h: In member function `Query& Query::operator=(const Query&)':
query.h:33: error: `query' undeclared (first use this function)
query.h:33: error: (Each undeclared identifier is reported only once for each
function it appears in.)
query.h:33: error: 'const class Query' has no member named 'query'
query.h:34: error: `name' undeclared (first use this function)
query.h:34: error: 'const class Query' has no member named 'name'
query.h:35: error: 'const class Query' has no member named 'type_name'
query.h: At global scope:
query.h:109: error: `string' was not declared in this scope
query.h:109: error: `less' was not declared in this scope
query.h:109: error: `string' was not declared in this scope
query.h:109: error: syntax error before `>' token
query.h:136: error: 'vector' is used as a type, but is not defined as a type.
query.h:137: error: 'vector' is used as a type, but is not defined as a type.
query.h:144: error: 'vector' is used as a type, but is not defined as a type.
query.h:171: error: `string' was not declared in this scope
query.h:171: error: parse error before `)' token
query.h:200: error: `string' was not declared in this scope
query.h:201: error: variable declaration is not allowed here
query.h:201: error: syntax error before `{' token
query.h:205: error: semicolon missing after declaration of `Query_barrel'
query.h: In member function `int Query_barrel::num_query_charges()':
query.h:154: error: `qc' undeclared (first use this function)
query.h: In member function `void Query_barrel::add_query_charge(Query&, int)':
query.h:161: error: `actions' undeclared (first use this function)
query.h:162: error: 'class Query_report' has no member named 'type_reports'
query.h:162: error: 'class Query' has no member named 'type_name'
query.h:163: error: 'class Query_report' has no member named 'type_reports'
query.h:163: error: 'class Query' has no member named 'type_name'
query.h: In member function `void Query_barrel::update_report(...)':
query.h:173: error: `q_time' undeclared (first use this function)
query.h: At global scope:
query.h:205: error: ISO C++ forbids defining types within return type
query.h:205: error: two or more data types in declaration of `get_run_time'
query.h:205: error: semicolon missing after declaration of `class Query_barrel'
query.h: In function `int get_run_time()':
query.h:205: error: `qr' undeclared (first use this function)
query.h: At global scope:
query.h:206: error: parse error before `}' token
In file included from client.h:17,
from client.cc:1:
val.h:8: error: 'string' is used as a type, but is not defined as a type.
val.h:12: error: parse error before `&' token
val.h: In constructor `Val::Val()':
val.h:11: error: class `Val' does not have any field named `strval'
val.h: At global scope:
val.h:13: error: ISO C++ forbids defining types within return type
val.h:13: error: semicolon missing after declaration of `struct Val'
val.h: In function `int Val(const char*)':
val.h:13: error: `set' undeclared (first use this function)
val.h: At global scope:
val.h:14: error: ISO C++ forbids declaration of `Val' with no type
val.h:15: error: ISO C++ forbids declaration of `Val' with no type
val.h:17: error: `string' was not declared in this scope
val.h:17: error: `s' was not declared in this scope
val.h:17: error: variable or field `set' declared void
val.h:17: error: `int set' used prior to declaration
val.h:17: error: syntax error before `{' token
val.h:17: error: ISO C++ forbids declaration of `dval' with no type
val.h:17: error: `s' was not declared in this scope
val.h:17: error: parse error before `}' token
val.h: In function `void set(const char*)':
val.h:18: error: `void set(const char*)' redeclared as different kind of symbol
val.h:17: error: previous declaration of `int set'
val.h:17: error: previous non-function declaration `int set'
val.h:18: error: conflicts with function declaration `void set(const char*)'
val.h:18: error: `strval' undeclared (first use this function)
val.h:18: warning: assignment to `int' from `double'
val.h:18: warning: argument to `int' from `double'
In file included from client.h:17,
from client.cc:1:
val.h: In function `void set(double)':
val.h:20: error: `void set(double)' redeclared as different kind of symbol
val.h:17: error: previous declaration of `int set'
val.h:17: error: previous non-function declaration `int set'
val.h:20: error: conflicts with function declaration `void set(double)'
val.h:21: warning: assignment to `int' from `double'
val.h:21: warning: argument to `int' from `double'
val.h: In function `void set(int)':
val.h:26: error: `void set(int)' redeclared as different kind of symbol
val.h:17: error: previous declaration of `int set'
val.h:17: error: previous non-function declaration `int set'
val.h:26: error: conflicts with function declaration `void set(int)'
val.h:26: error: `set' cannot be used as a function
val.h: At global scope:
val.h:27: error: `other' was not declared in this scope
val.h:28: error: variable or field `set' declared void
val.h:28: error: redefinition of `int set'
val.h:17: error: `int set' previously defined here
val.h:28: error: syntax error before `{' token
val.h:32: error: ISO C++ forbids declaration of `dval' with no type
val.h:32: error: redefinition of `int dval'
val.h:17: error: `int dval' previously defined here
val.h:32: error: `other' was not declared in this scope
val.h:33: error: parse error before `}' token
val.h:35: error: `other' was not declared in this scope
val.h:36: error: variable or field `concat' declared void
val.h:36: error: syntax error before `{' token
val.h:38: error: `tmp' was not declared in this scope
val.h:38: error: ISO C++ forbids declaration of `set' with no type
val.h:38: error: redefinition of `int set'
val.h:28: error: `int set' previously defined here
val.h:39: error: parse error before `}' token
val.h:42: error: `string' was not declared in this scope
val.h:42: error: parse error before `,' token
In file included from client.cc:1:
client.h:26: error: 'string' is used as a type, but is not defined as a type.
client.h:34: error: `string' was not declared in this scope
client.h:34: error: `less' was not declared in this scope
client.h:34: error: `string' was not declared in this scope
client.h:34: error: syntax error before `>' token
client.h:48: error: 'string' is used as a type, but is not defined as a type.
client.h:49: error: 'string' is used as a type, but is not defined as a type.
client.h:50: error: 'string' is used as a type, but is not defined as a type.
client.h:51: error: 'string' is used as a type, but is not defined as a type.
client.h:52: error: 'string' is used as a type, but is not defined as a type.
client.h:53: error: 'string' is used as a type, but is not defined as a type.
client.h:54: error: 'string' is used as a type, but is not defined as a type.
client.h:90: error: syntax error before `*' token
client.h:91: error: syntax error before `*' token
client.h:113: error: `string' was not declared in this scope
client.h:113: error: `table_name' was not declared in this scope
client.h:113: error: parse error before `char'
client.h:129: error: `map' was not declared in this scope
client.h:129: error: `string' was not declared in this scope
client.h:129: error: parse error before `*' token
client.h: In constructor `Client::Client()':
client.h:60: error: `host' undeclared (first use this function)
client.h:61: error: `user' undeclared (first use this function)
client.h:62: error: `pass' undeclared (first use this function)
client.h:63: error: `db' undeclared (first use this function)
client.h:64: error: `port' undeclared (first use this function)
client.h:65: error: `socket' undeclared (first use this function)
client.h:74: error: `dictionaries' undeclared (first use this function)
client.h: In member function `void Client::print_connect_times()':
client.h:98: error: `cout' undeclared (first use this function)
client.h:102: error: `endl' undeclared (first use this function)
client.h: In member function `void Client::set_dictionary_pool(...)':
client.h:132: error: `dict_pool' undeclared (first use this function)
In file included from client.h:172,
from client.cc:1:
mysql-client.h: At global scope:
mysql-client.h:23: error: `string' was not declared in this scope
mysql-client.h:23: error: `table_name' was not declared in this scope
mysql-client.h:23: error: parse error before `char'
In file included from /usr/include/g++/backward/fstream.h:31,
from client.cc:3:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated heade
. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X>
eader for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning u
e -Wno-deprecated.
In file included from client.cc:4:
/usr/include/g++/backward/iostream.h:40: error: `std::ostream std::cout'
redeclared as different kind of symbol


Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [client.o] Error 1
make[2]: Leaving directory `/usr/local/src/super-smack-1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/super-smack-1.0'
make: *** [all-recursive-am] Error 2

_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to