Hi,

greetings to the list.

I'm in process of compiling MySQL 4.1.9 using BerkeleyDB 4.3.27.

When i start make, after configuring i get the following
error-message :

--snipp--
ha_berkeley.cc:103: error: type specifier omitted for parameter `db_notices'
ha_berkeley.cc:103: error: syntax error before `)' token
--snipp--

As "db_notices" is nowhere declared i
look around in the sources and find the following in
/bdb/build_win32/db.h :

--snipp--
typedef enum
{
  DB_NOTICE_LOGFILE_CHANGED
} db_notices;
--snipp--


So i put it into ha_berkeley.h and it seems to work , but then the next errormessages come up , which haven't such a simple solution :

--snipp--
ha_berkeley.cc:139: error: invalid conversion from `void (*)(const char*,
   char*)' to `void (*)(const DB_ENV*, const char*, const char*)'
ha_berkeley.cc:141: error: `set_noticecall' undeclared (first use this
   function)
ha_berkeley.cc:141: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
ha_berkeley.cc:150: error: `DB_VERB_CHKPOINT' undeclared (first use this
   function)
ha_berkeley.cc: In function `int berkeley_commit(THD*, void*)':
ha_berkeley.cc:215: error: `txn_commit' undeclared (first use this function)
ha_berkeley.cc: In function `int berkeley_rollback(THD*, void*)':
ha_berkeley.cc:228: error: `txn_abort' undeclared (first use this function)
ha_berkeley.cc: At global scope:
ha_berkeley.cc:291: error: type specifier omitted for parameter `db_notices'
ha_berkeley.cc:291: error: syntax error before `)' token
ha_berkeley.cc: In function `void berkeley_noticecall(...)':
ha_berkeley.cc:293: error: `notice' undeclared (first use this function)
ha_berkeley.cc:295: error: `DB_NOTICE_LOGFILE_CHANGED' undeclared (first use
   this function)
ha_berkeley.cc: In function `int berkeley_cmp_packed_key(DB*, const
DBT*, const
   DBT*)':
ha_berkeley.cc:387: error: 'const struct __db_dbt' has no member named '
   app_private'
ha_berkeley.cc:387: error: 'const struct __db_dbt' has no member named '
   app_private'
ha_berkeley.cc: In member function `virtual int ha_berkeley::open(const
char*,
   int, unsigned int)':
ha_berkeley.cc:547: error: `txn_begin' undeclared (first use this
function ..
--snipp (and so on)  --

So, does anybody know a solution for this ?

My setup :

Suse Linux 9.1
BDB 4.3.27    (installed in /usr/local/bdb-4.3.9, symlinked to
               /usr/local/bdb-4.3)
MySQL 4.1.9

Here's how i configure (i always create a little script):

--snipp--
#!/bin/sh
#
# configure & make template-script
#
# generated 2005.01.19 19:24,06 by make-mk
#
# (c) H. Rueter 01/2005
#

CPPFLAGS="-I/usr/local/bdb-4.3/include"
LDFLAGS="-L/usr/local/bdb-4.3/lib"

export CPPFLAGS LDFLAGS

make clean
rm config.cache

./configure \
--prefix=/usr/local/mysql-4.1.9 \
--mandir=/usr/man \
--enable-shared \
--enable-static \
--enable-thread-safe-client \
--enable-assembler \
--enable-local-infile \
--with-isam \
--with-pthread \
--with-unix-socket-path=/var/run/mysql.sock \
--with-mysqld-user=mysql \
--with-openssl=/usr \
--with-extra-charsets=all \
--with-berkeley-db=/usr/local/bdb-4.3 \
--with-berkeley-db-includes=/usr/local/bdb-4.3/include \
--with-berkeley-db-libs=/usr/local/bdb-4.3/lib \
&& make && checkinstall
--snipp--

Thanks in advance

Harry


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



Reply via email to