не помогло
Vadim Guchenko 13.09.2004 19:54
Приведу полный вывод make оригинальных исходников. Извините, если много.
server2# make
make all-recursive
Making all in libltdl
make all-am
./../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o ltdl.lo `test -f '
ltdl.c' || echo './'`ltdl.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -fPIC -DPIC -o ltdl.lo
./../libtool --mode=link gcc -g -O2 -o libltdlc.la ltdl.lo
mkdir .libs
rm -fr .libs/libltdlc.la .libs/libltdlc.* .libs/libltdlc.*
ar cru .libs/libltdlc.al ltdl.lo
ranlib .libs/libltdlc.al
creating libltdlc.la
(cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
if ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I../../parser3/src/sql -I./libltdl
-I/usr/local/include/mysql -g -O2 -MT parser3mysql.lo -MD -MP -MF ".deps/parser3mysql.Tpo"
-c -o parser3mysql.lo `test -f 'parser3mysql.C' || echo './'`parser3mysql.C; then mv ".deps/pa
rser3mysql.Tpo" ".deps/parser3mysql.Plo"; else rm -f ".deps/parser3mysql.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -I../../parser3/src/sql -I./libltdl -I/usr/local/include/mysql -
g -O2 -MT parser3mysql.lo -MD -MP -MF .deps/parser3mysql.Tpo -c parser3mysql.C -fPIC -DPIC -o p
arser3mysql.lo
parser3mysql.C:17:27: pa_sql_driver.h: No such file or directory
parser3mysql.C:55: error: syntax error before `*' token
parser3mysql.C:65: error: syntax error before `{' token
parser3mysql.C: In function `int api_version()':
parser3mysql.C:72: error: `SQL_DRIVER_API_VERSION' undeclared (first use this
function)
parser3mysql.C:72: error: (Each undeclared identifier is reported only once for
each function it appears in.)
parser3mysql.C: In function `const char* initialize(char*)':
parser3mysql.C:76: error: `dlink' undeclared (first use this function)
parser3mysql.C: At global scope:
parser3mysql.C:91: error: syntax error before `&' token
parser3mysql.C: In function `void connect(...)':
parser3mysql.C:94: error: `url' undeclared (first use this function)
parser3mysql.C:113: error: `services' undeclared (first use this function)
parser3mysql.C:114: error: 'struct Connection' has no member named 'services'
parser3mysql.C:118: error: `connection_ref' undeclared (first use this
function)
parser3mysql.C:166: error: `exec' undeclared (first use this function)
parser3mysql.C: In function `void exec(Connection&, const char*)':
parser3mysql.C:173: error: `void exec(Connection&, const char*)' used prior to
declaration
parser3mysql.C:175: error: 'struct Connection' has no member named 'services'
parser3mysql.C: In function `const char* quote(void*, const char*, unsigned
int)':
parser3mysql.C:213: error: 'struct Connection' has no member named 'services'
parser3mysql.C: At global scope:
parser3mysql.C:220: error: syntax error before `&' token
parser3mysql.C: In function `void query(...)':
parser3mysql.C:221: error: `aconnection' undeclared (first use this function)
parser3mysql.C:222: error: `SQL_Driver_services' undeclared (first use this
function)
parser3mysql.C:222: error: 'struct Connection' has no member named 'services'
parser3mysql.C:229: error: `astatement' undeclared (first use this function)
parser3mysql.C:236: error: `offset' undeclared (first use this function)
parser3mysql.C:236: error: `limit' undeclared (first use this function)
parser3mysql.C:268: error: syntax error before `;' token
parser3mysql.C:290: error: `handlers' undeclared (first use this function)
parser3mysql.C:290: error: `sql_error' undeclared (first use this function)
parser3mysql.C: At global scope:
parser3mysql.C:330: error: syntax error before `private'
parser3mysql.C:332: error: 't_mysql_init' is used as a type, but is not defined
as a type.
parser3mysql.C:334: error: `int (*mysql_options)(MYSQL*, mysql_option, const
char*)' redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:369: error: previous declaration of `int
mysql_options(MYSQL*, mysql_option, const char*)'
parser3mysql.C:336: error: `MYSQL_RES*(*mysql_store_result)(MYSQL*)' redeclared
as different kind of symbol
/usr/local/include/mysql/mysql.h:366: error: previous declaration of `
MYSQL_RES* mysql_store_result(MYSQL*)'
parser3mysql.C:338: error: `int (*mysql_query)(MYSQL*, const char*)' redeclared
as different kind of symbol
/usr/local/include/mysql/mysql.h:302: error: previous declaration of `int
mysql_query(MYSQL*, const char*)'
parser3mysql.C:340: error: `char*(*mysql_error)(MYSQL*)' redeclared as
different kind of symbol
/usr/local/include/mysql/mysql.h:282: error: previous declaration of `const
char* mysql_error(MYSQL*)'
parser3mysql.C:349: error: `MYSQL*(*mysql_real_connect)(MYSQL*, const char*,
const char*, const char*, const char*, unsigned int, const char*, unsigned
int)' redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:299: error: previous declaration of `MYSQL*
mysql_real_connect(MYSQL*, const char*, const char*, const char*, const
char*, unsigned int, const char*, unsigned int)'
parser3mysql.C:351: error: `void (*mysql_close)(MYSQL*)' redeclared as
different kind of symbol
/usr/local/include/mysql/mysql.h:300: error: previous declaration of `void
mysql_close(MYSQL*)'
parser3mysql.C:353: error: `int (*mysql_ping)(MYSQL*)' redeclared as different
kind of symbol
/usr/local/include/mysql/mysql.h:354: error: previous declaration of `int
mysql_ping(MYSQL*)'
parser3mysql.C:356: error: `long unsigned int (*mysql_escape_string)(char*,
const char*, long unsigned int)' redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:381: error: previous declaration of `long
unsigned int mysql_escape_string(char*, const char*, long unsigned int)'
parser3mysql.C:358: error: `void (*mysql_free_result)(MYSQL_RES*)' redeclared
as different kind of symbol
/usr/local/include/mysql/mysql.h:370: error: previous declaration of `void
mysql_free_result(MYSQL_RES*)'
parser3mysql.C:360: error: `long unsigned
int*(*mysql_fetch_lengths)(MYSQL_RES*)' redeclared as different kind of
symbol
/usr/local/include/mysql/mysql.h:378: error: previous declaration of `long
unsigned int* mysql_fetch_lengths(MYSQL_RES*)'
parser3mysql.C:362: error: `char**(*mysql_fetch_row)(MYSQL_RES*)' redeclared as
different kind of symbol
/usr/local/include/mysql/mysql.h:377: error: previous declaration of `char**
mysql_fetch_row(MYSQL_RES*)'
parser3mysql.C:364: error: `MYSQL_FIELD*(*mysql_fetch_field)(MYSQL_RES*)'
redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:379: error: previous declaration of `
MYSQL_FIELD* mysql_fetch_field(MYSQL_RES*)'
parser3mysql.C:366: error: `unsigned int (*mysql_num_fields)(MYSQL_RES*)'
redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:270: error: previous declaration of `unsigned
int mysql_num_fields(MYSQL_RES*)'
parser3mysql.C:369: error: `unsigned int (*mysql_field_count)(MYSQL*)'
redeclared as different kind of symbol
/usr/local/include/mysql/mysql.h:278: error: previous declaration of `unsigned
int mysql_field_count(MYSQL*)'
parser3mysql.C:372: error: syntax error before `private'
parser3mysql.C:377: error: `dlopen_file_spec' was not declared in this scope
parser3mysql.C:378: error: syntax error before `if'
*** Error code 1
Stop in /usr/local/programs/parser3mysql-3.1.HEAD.
*** Error code 1
Stop in /usr/local/programs/parser3mysql-3.1.HEAD.
*** Error code 1
Stop in /usr/local/programs/parser3mysql-3.1.HEAD.