Newbie-question: Error when compiling MySQL 4.1.9 with BerkeleyDB 4.3.27

2005-01-20 Thread Harry Rter
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]


Error when compiling mysql

2002-11-07 Thread ktran
Description:
checking size of char... 
configure: error: No size for char type. 
A likely cause for this could be that there isn't any 
static libraries installed. You can verify this by
checking if you have libm.a 
in /lib, /usr/lib or some other standard place. If
this is the problem, 
install the static libraries and try again. If this
isn't the problem, 
examine config.log for possible errors. If you want to
report this, use 
'scripts/mysqlbug' and include at least the last 20
rows from config.log!
 
How-to-repeat: ./configure --prefix=/opt/apache/mysql
 
MySQL support: none
Synopsis: unable to compile source code due to char
type error
MySQL release: mysql-3.23.51 (Source distribution)
Machine/OS: Sun Solaris 2.7
Environment: 
System: SunOS saspcd02 5.7 Generic_106541-18 sun4u
sparc SUNW,Ultra-80 
Architecture: sun4 
GCC: Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs

gcc version 2.95.3 20010315 (release) 
Compilation info: CC='gcc' CFLAGS='' CXX='gcc'
CXXFLAGS='' LDFLAGS='' 
LIBC: 
-rw-r--r-- 1 bin bin 1711420 Jan 3 2002 /lib/libc.a 
lrwxrwxrwx 1 root root 11 Sep 13 2000 /lib/libc.so -
./libc.so.1 
-rwxr-xr-x 1 bin bin 1125660 Jan 3 2002 /lib/libc.so.1

-rw-r--r-- 1 bin bin 1711420 Jan 3 2002
/usr/lib/libc.a 
lrwxrwxrwx 1 root root 11 Sep 13 2000 /usr/lib/libc.so
- ./libc.so.1 
-rwxr-xr-x 1 bin bin 1125660 Jan 3 2002
/usr/lib/libc.so.1 
  
Configure command: ./configure
--with-unix-socket-path=/var/tmp/mysql.sock 
--with-low-memory --with-mit-threads=yes
--without-perl 
--enable-thread-safe-client --with-berkeley-db
--enable-local-infile 
--with-innodb CC=gcc CXX=gcc
 
 
I have confirmed that the libm.a exist in the /lib
directory.  I also have zlib set in my path:
echo $PATH:
/home/webusr/bin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/lib:/usr/openwin/bin:/usr/dt/bin:/opt/oracl

e/product/8.1.6/bin:/opt/java/jsdk/bin:/home/webusr/make_379:/tmp/SUNWspro/WS6/bin:/opt/FSFgzip/bin:

/home/webusr/zlib-114/lib:/home/webusr/zlib-114/bin:/usr/ccs/bin:/home/webusr/perl-5.6.1


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Error when compiling mysql

2002-11-07 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 07 November 2002 17:46, ktran wrote:
 
 Configure command: ./configure
 --with-unix-socket-path=/var/tmp/mysql.sock 
 --with-low-memory --with-mit-threads=yes
 --without-perl 
 --enable-thread-safe-client --with-berkeley-db
 --enable-local-infile 
 --with-innodb CC=gcc CXX=gcc
  
 I have confirmed that the libm.a exist in the /lib
 directory.  I also have zlib set in my path:
 echo $PATH:
 /home/webusr/bin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/lib:
 /usr/openwin/bin:/usr/dt/bin:/opt/oracle/product/8.1.6/bin:
 /opt/java/jsdk/bin:/home/webusr/make_379:/tmp/SUNWspro/WS6/bin:
 /opt/FSFgzip/bin:/home/webusr/zlib-114/lib:
 /home/webusr/zlib-114/bin:/usr/ccs/bin:/home/webusr/perl-5.6.1

It's not enough to have zlib in your $PATH - you need to tell the
compiler where to find it. You can do that by using the
- --with-named-z-libs=/home/webusr/zlib-114/lib configure option.
Alternatively you could simply disable it by using 
- --with-named-z-libs=no - The dynamic linker will not find it in 
your path by default anyway.

Bye,
LenZ
- -- 
- --
 Lenz Grimmer [EMAIL PROTECTED] -o)
 [ICQ: 160767607 | Jabber: [EMAIL PROTECTED]]/\\
 http://lenz.grimmer.com_\_v
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9yqukSVDhKrJykfIRAt/cAJ9DiI+wYnDIH98h5HtQAf4544gN7ACeLNNX
PhqHF/fop3TK7bEN2lO99hQ=
=GJFt
-END PGP SIGNATURE-

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Error when compiling mysql 3.23.53 on Solaris 9

2002-10-23 Thread Jeremy Lau
Hi all,

I am compiling mysql 3.23.53 on Solaris 9 using gcc
3.2. 

Any clue to the following errors:

mkdir .libs
g++ -O3 -DDBUG_OFF -fno-implicit-templates
-fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o
gen_lex_hash gen_lex_hash.o ../isam/libnisam.a
../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a
../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a
-lpthread -lthread -lz -lcrypt -lgen -lsocket -lnsl
-lm -lpthread -lthread
make[4]: Leaving directory `/pub/mysql-3.23.53/sql'
./gen_lex_hash  lex_hash.h
ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.5: open
failed: No such file or directory
Killed
make[3]: *** [lex_hash.h] Error 137
make[3]: Leaving directory `/pub/mysql-3.23.53/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/pub/mysql-3.23.53/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/pub/mysql-3.23.53'
make: *** [all-recursive-am] Error 2


Thanks


__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Error when compiling mysql 3.23.53 on Solaris 9

2002-10-23 Thread Paul DuBois
At 11:13 -0700 10/23/02, Jeremy Lau wrote:

Hi all,

I am compiling mysql 3.23.53 on Solaris 9 using gcc
3.2.

Any clue to the following errors:

mkdir .libs
g++ -O3 -DDBUG_OFF -fno-implicit-templates
-fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o
gen_lex_hash gen_lex_hash.o ../isam/libnisam.a
../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a
../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a
-lpthread -lthread -lz -lcrypt -lgen -lsocket -lnsl
-lm -lpthread -lthread
make[4]: Leaving directory `/pub/mysql-3.23.53/sql'
./gen_lex_hash  lex_hash.h
ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.5: open
failed: No such file or directory


Set LD_LIBRARY_PATH to include the directory where libstdc++.so
is located.


Killed
make[3]: *** [lex_hash.h] Error 137
make[3]: Leaving directory `/pub/mysql-3.23.53/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/pub/mysql-3.23.53/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/pub/mysql-3.23.53'
make: *** [all-recursive-am] Error 2

Thanks



-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Error when compiling mysql 3.23.53 on Solaris 9

2002-10-23 Thread Lou Picciano
Jeremy,

May not be helpful to you - perhaps you are seeking some specific
compiled-in function, but for what it's worth:

The mysql-max-4.0.4-beta-sun-solaris2.8-sparc tarball also runs great on
Solaris 9 SPARC.  We are using it...

Lou
Essex Systems

 Hi all,
 
 I am compiling mysql 3.23.53 on Solaris 9 using gcc
 3.2. 
 
 Any clue to the following errors:
 
 mkdir .libs
 g++ -O3 -DDBUG_OFF -fno-implicit-templates
 -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o
 gen_lex_hash gen_lex_hash.o ../isam/libnisam.a
 ../merge/libmerge.a ../myisam/libmyisam.a
 ../myisammrg/libmyisammrg.a ../heap/libheap.a
 ../mysys/libmysys.a ../dbug/libdbug.a
 ../regex/libregex.a ../strings/libmystrings.a
 -lpthread -lthread -lz -lcrypt -lgen -lsocket -lnsl
 -lm -lpthread -lthread
 make[4]: Leaving directory `/pub/mysql-3.23.53/sql'
 ./gen_lex_hash  lex_hash.h
 ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.5: open
 failed: No such file or directory
 Killed
 make[3]: *** [lex_hash.h] Error 137
 make[3]: Leaving directory `/pub/mysql-3.23.53/sql'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/pub/mysql-3.23.53/sql'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/pub/mysql-3.23.53'
 make: *** [all-recursive-am] Error 2
 
 
 Thanks


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




error when compiling mysql version mysql-3.23.8-alpha

2001-05-17 Thread Dana Sharvit

Hello,

When compiling mysql-3.23.8-alpha on Solaris 2.8 I get the following error:

mi_create.c: In function `mi_create':
mi_create.c:437: `MY_CHARSET_lAtin1' undeclared (first use in this function)
mi_create.c:437: (Each undeclared identifier is reported only once
mi_create.c:437: for each function it appears in.)
make[2]: *** [mi_create.o] Error 1
make[2]: Leaving directory
`/aleph/sfx_version_1_1/src/mysql-3.23.8-alpha/myisam
'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/aleph/sfx_version_1_1/src/mysql-3.23.8-alpha'
make: *** [all-recursive-am] Error 2

I tried changing MY_CHARSET_lAtin1(in config.h) to all caps like suggest in
the archive but with no success, I also tried to add the below code to
configure.in as suggested in the archive:

dnl turn off quoting, it breaks the next shell line
changequote(,)
# Fix define
uc_mystrings_charset=`echo MY_CHARSET_$mystrings_charset | tr [a-z]
[A-Z]`;
dnl restore autoconf`s default quote characters
changequote([,]);

but with no success.

does any one have any ideas regarding the above error, I am really stuck on
this one.
Dana

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php