Problems compiling 5.6.10 under CygWIN for Windows

2013-02-07 Thread Michael Steele
I'm using CygWIN to compile MySQL 5.6.10 for Windows. Using the source code
(Generic Linux (Architecture Independent), Compressed TAR Archive) Version
5.6.10.

 

I have no problems compiling  (Generic Linux (Architecture Independent),
Compressed TAR Archive) Version 5.5.29 source code.

 

This is the output.

 

[ 27%] Building CXX object
storage/innobase/CMakeFiles/innobase.dir/fts/fts0que.cc.o

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/fts/fts0que.cc: In function
`dberr_t fts_query_phrase_search(fts_query_t*, const fts_string_t*)':

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/fts/fts0que.cc:2359:
warning: 'token' might be used uninitialized in this function [ 27%]
Building CXX object
storage/innobase/CMakeFiles/innobase.dir/fts/fts0sql.cc.o

[ 27%] Building CXX object
storage/innobase/CMakeFiles/innobase.dir/fts/fts0tlex.cc.o

[ 27%] Building CXX object
storage/innobase/CMakeFiles/innobase.dir/handler/ha_innodb.cc.o

In file included from
/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.h:647,

 from
/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:95:

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic: In
function `int fts_write_object_id(ib_id_t, char*)':

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:38:
error: expected `)' before PRIx64

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:38:
warning: conversion lacks type at end of format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:38:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:38:
warning: conversion lacks type at end of format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:38:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic: In
function `ulint fts_read_object_id(ib_id_t*, const char*)':

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:51:
error: expected `)' before PRIx64

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:51:
warning: conversion lacks type at end of format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:51:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:51:
warning: conversion lacks type at end of format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/include/fts0priv.ic:51:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc: In
function `int innobase_close_connection(handlerton*, THD*)':

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:3733:
error: expected `)' before PRIu64

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:3735:
warning: spurious trailing `%' in format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:3735:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc: In
function `dberr_t calc_row_difference(upd_t*, uchar*, uchar*, TABLE*,
uchar*, ulint, row_prebuilt_t*, THD*)':

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6855:
error: expected `)' before PRIu64

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6857:
warning: spurious trailing `%' in format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6857:
warning: too many arguments for format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6867:
error: expected `)' before PRIu64

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6873:
warning: spurious trailing `%' in format

/cygdrive/e/cygwin/mysql-5.6.10/storage/innobase/handler/ha_innodb.cc:6873:
warning: too many arguments for format

storage/innobase/CMakeFiles/innobase.dir/build.make:1023: recipe for target
`storage/innobase/CMakeFiles/innobase.dir/handler/ha_innodb.cc.o' failed

make[2]: ***
[storage/innobase/CMakeFiles/innobase.dir/handler/ha_innodb.cc.o] Error 1

CMakeFiles/Makefile2:755: recipe for target
`storage/innobase/CMakeFiles/innobase.dir/all' failed

make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2

Makefile:146: recipe for target `all' failed

make: *** [all] Error 2

 

Best regards,

Michael 

 



Problems Compiling

2004-09-20 Thread premal mishra
I'm trying to use C API to MySQL.

MySQL Version: 4.0.20a
Distribution   Windows Binary
Machine:   P IV on intel 845GL board, 256 MB Ram, Win98se
Compiler:  Digital Mars C/C++ Compiler Version 8.40 
 (ftp://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm840c.zip)  
   
WHEN I COMPILE THE FOLLOWING CODE:

#include sys/time.h
#include mysql.h

int main() {

return 0;
}


I GET FOLLOWING ERROR:

c:\sc\bin\sc -Ic:\mysql\include -Nc -Ae -J -c test1.cpp
  my_socket fd; /* For Perl DBI/dbd */
 ^
c:\mysql\include\mysql_com.h(116) : Error: ';' expected following declaration of 
struct member
int my_connect(my_socket s, const struct sockaddr *name, unsigned int namelen,
 ^
c:\mysql\include\mysql_com.h(180) : Error: ')' expected to close function parameter 
list with
}
^
c:\mysql\include\mysql_com.h(189) : Error: '=', ';' or ',' expected
extern C {
 ^
c:\mysql\include\mysql_com.h(223) : Error:  storage class is illegal in this context
double my_rnd(struct rand_struct *);
   ^
c:\mysql\include\mysql_com.h(228) : Error: 'my_rnd' is not in function parameter list
Fatal error: too many errors
--- errorlevel 1

--- errorlevel 1


Regards
Premal.  




Re: Problems Compiling

2004-09-11 Thread Egor Egorov
Andrew Wheeler [EMAIL PROTECTED] wrote:

 I am not sure that this is the correct list. I did not
 see any list that seemed more appropriate.

Private email answered here. 

 Well if it compiling is not a configure, make, make
 install job perhaps you could point me in the
 direction to learn the intricacies of the job? 

First, see 
http://dev.mysql.com/doc/mysql/en/Installing_source.html

And don't forget about glibc patch.





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




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



Re: Problems Compiling

2004-09-06 Thread Egor Egorov
Andrew Wheeler [EMAIL PROTECTED] wrote:

 I am not sure that this is the correct list. I did not
 see any list that seemed more appropriate.
 
 I have RedHat 8:
 gcc-3.2-7

You'd better take the binary distribution from www.mysql.com
Compiling MySQL is absolutely not a configure; make; make install job. 





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




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



Re: Problems Compiling

2004-09-04 Thread Michael Stassen
--prefix is the only option you passed to configure?  You must have missed 
the recommendations in the manual.  Take a look at how MySQL builds their 
official binaries http://dev.mysql.com/doc/mysql/en/MySQL_binaries.html. 
There is also a section on building and other issues under Linux 
http://dev.mysql.com/doc/mysql/en/Linux.html.  I can't say whether that 
will prevent the segfault, though.  There could be something wrong with your 
build environment.

You may find the simplest course would be to download the official binary 
distribution from mysql.com http://dev.mysql.com/downloads/mysql/4.0.html.

Michael
Andrew Wheeler wrote:
I am not sure that this is the correct list. I did not
see any list that seemed more appropriate.
I have RedHat 8:
gcc-3.2-7
I run ./configure --prefix=/usr/local/mysql
which according to the log exited with code 0
Then when I run make I get the following errors. My
question is what is the signifigance and how do I
correct.
a ../innobase/thr/libthr.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a
../innobase/mem/libmem.a ../innobase/sync/libsync.a
../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a -lrt ../isam/libnisam.a
../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a -ldl
-lpthread -lz -lcrypt -lnsl -lm -lpthread
make[4]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[3]: *** [all-recursive] Segmentation fault
make[3]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/downloads/mysql-4.0.20'
Segmentation fault
Andrew 

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


Problems Compiling

2004-09-03 Thread Andrew Wheeler
I am not sure that this is the correct list. I did not
see any list that seemed more appropriate.

I have RedHat 8:
gcc-3.2-7

I run ./configure --prefix=/usr/local/mysql
which according to the log exited with code 0

Then when I run make I get the following errors. My
question is what is the signifigance and how do I
correct.


a ../innobase/thr/libthr.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a
../innobase/mem/libmem.a ../innobase/sync/libsync.a
../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a -lrt ../isam/libnisam.a
../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a -ldl
-lpthread -lz -lcrypt -lnsl -lm -lpthread
make[4]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[3]: *** [all-recursive] Segmentation fault
make[3]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/downloads/mysql-4.0.20'
Segmentation fault

Andrew 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



problems compiling mysql 4.0.20 (master.pid was not created in 400 seconds)

2004-06-15 Thread btb
hello-
i am running into trouble compiling on redhat 7.2 (2.4.7-10)
configure and make run without dying - make test however produces the 
following output:

02:17:35([EMAIL PROTECTED])/tmp/source/mysql-4.1.2-alphamake test
cd mysql-test ; ./mysql-test-run
Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables
 --basedir=. --datadir=./var/master-data --skip-innodb 
--skip-ndbcluster --skip-bdb --language=../sql/share/english/ 
--character-sets-dir=../sql/share/charsets/
Installing Slave Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables
 --basedir=. --datadir=./var/slave-data --skip-innodb --skip-ndbcluster 
--skip-bdb --language=../sql/share/english/ 
--character-sets-dir=../sql/share/charsets/
Manager disabled, skipping manager start.
Loading Standard Test Databases
Starting Tests

 TEST   RESULT
--
ERROR: /tmp/source/mysql-4.1.2-alpha/mysql-test/var/run/master.pid was 
not created in 400 seconds;  Aborting
make: *** [test] Error 1
02:24:32([EMAIL PROTECTED])/tmp/source/mysql-4.1.2-alpha

any insight is greatly appreciated!
-b
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re:Re: Problems compiling NDB-Cluster mysql-4.1.2

2004-05-13 Thread Steffen Moelter
Hello,

thanks for your response.
The zlib-Library was already installed on the machine. 
The command find / | grep zlib showed my the file zlib.h at
/usr/include/linux/zlib.h
I've update from zlib 1.1.4-105 to 1.1.4-232 and installed the
zlib-devel package too.
I've tried to compile with different flags (CXX=gcc and/or CC=gcc) and
configured with the flag: --include-dir=/usr/include/linux
Nothing worked, the error is still the same.

Steffen Moelter

-Ursprüngliche Nachricht-
Von: Anders Karlsson [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 10. Mai 2004 11:57
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: Problems compiling NDB-Cluster mysql-4.1.2

You have to have zlib installed. This seems to be a bug, which I have 
just reported. The fix is
simple: install zlib.
You can check with a simple C-program like this:

#include zlib.h
#include stdio.h

int main(int argc, char *argv[])
   {
   printf(Hello, World\n);
   return 0;
   }

If this refuses to compile (missing includefile) you are
missing zlib includes at least. You might want to link with -lz to check
that the library is there too, or even call one one the functions in 
zlib (compress
for example).
Install zlib and make sure this little program compiles, if it does, you
should be OK.

/Karlsson
[EMAIL PROTECTED] wrote:

Hello all,

i want to compile the development tree source from
bk://mysql.bkbits.net/mysql-4.1 on SuSE 8.2 Linux. The compiling of the
mysql-4.1 without the ndb-cluster works fine.

When set the configuration-option --with-ndbcluster, the compilation
fails with the error:

ha_ndbcluster.o(.text+0x3b5c): In function `packfrm(void const*,
unsigned, void const**, unsigned*)':
: undefined reference to `my_compress'
ha_ndbcluster.o(.text+0x3c34): In function `unpackfrm(void const**,
unsigned*, void const*)':
: undefined reference to `my_uncompress'
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[4]: Leaving directory `/home/Steffen/mysql-4.1/sql'

I've tried to set the CXX and/or CC environment-variable to gcc, but
the
compilation fails with the same error.

Installed Software Versions:
Kernel: 2.4.22-33
gcc/cpp : 3.3-23
bison: 1.875
autoconf: 2.53
automake: 1.5
libtool: 1.5

Thanks
Steffen


  


-- 
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /  Anders Karlsson ([EMAIL PROTECTED])
  / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Sales Engineer
 /_/  /_/\_, /___/\___\_\___/ Stockholm
___/   www.mysql.com Cellphone: +46 708 608121


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



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



Re: Problems compiling NDB-Cluster mysql-4.1.2

2004-05-10 Thread Anders Karlsson
You have to have zlib installed. This seems to be a bug, which I have 
just reported. The fix is
simple: install zlib.
You can check with a simple C-program like this:

#include zlib.h
#include stdio.h
int main(int argc, char *argv[])
  {
  printf(Hello, World\n);
  return 0;
  }
If this refuses to compile (missing includefile) you are
missing zlib includes at least. You might want to link with -lz to check
that the library is there too, or even call one one the functions in 
zlib (compress
for example).
Install zlib and make sure this little program compiles, if it does, you
should be OK.

/Karlsson
[EMAIL PROTECTED] wrote:
Hello all,

i want to compile the development tree source from
bk://mysql.bkbits.net/mysql-4.1 on SuSE 8.2 Linux. The compiling of the
mysql-4.1 without the ndb-cluster works fine.
When set the configuration-option --with-ndbcluster, the compilation
fails with the error:
ha_ndbcluster.o(.text+0x3b5c): In function `packfrm(void const*,
unsigned, void const**, unsigned*)':
: undefined reference to `my_compress'
ha_ndbcluster.o(.text+0x3c34): In function `unpackfrm(void const**,
unsigned*, void const*)':
: undefined reference to `my_uncompress'
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[4]: Leaving directory `/home/Steffen/mysql-4.1/sql'
I've tried to set the CXX and/or CC environment-variable to gcc, but the
compilation fails with the same error.
Installed Software Versions:
Kernel: 2.4.22-33
gcc/cpp : 3.3-23
bison: 1.875
autoconf: 2.53
automake: 1.5
libtool: 1.5
Thanks
Steffen
 

--
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /  Anders Karlsson ([EMAIL PROTECTED])
 / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Sales Engineer
/_/  /_/\_, /___/\___\_\___/ Stockholm
   ___/   www.mysql.com Cellphone: +46 708 608121
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Problems compiling NDB-Cluster mysql-4.1.2

2004-05-05 Thread Tech
Hello all,

i want to compile the development tree source from
bk://mysql.bkbits.net/mysql-4.1 on SuSE 8.2 Linux. The compiling of the
mysql-4.1 without the ndb-cluster works fine.

When set the configuration-option --with-ndbcluster, the compilation
fails with the error:

ha_ndbcluster.o(.text+0x3b5c): In function `packfrm(void const*,
unsigned, void const**, unsigned*)':
: undefined reference to `my_compress'
ha_ndbcluster.o(.text+0x3c34): In function `unpackfrm(void const**,
unsigned*, void const*)':
: undefined reference to `my_uncompress'
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[4]: Leaving directory `/home/Steffen/mysql-4.1/sql'

I've tried to set the CXX and/or CC environment-variable to gcc, but the
compilation fails with the same error.

Installed Software Versions:
Kernel: 2.4.22-33
gcc/cpp : 3.3-23
bison: 1.875
autoconf: 2.53
automake: 1.5
libtool: 1.5

Thanks
Steffen


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



Problems compiling MySQL 3.23.52 on Slackware 9.1

2004-04-28 Thread Michal Kepien
Hi there,

I'm trying to compile the MySQL 3.23.52 source distribution on
Slackware 9.1. I'm using g++ (GCC) 3.2.3 and, I think, I've got all
the required shared libraries installed. `./configure' exits OK, but
`make' exits with an error while building the mysql client:

|mysql.o(.text+0x1b29): In function `com_source(String*, char*)':
|: undefined reference to `errno'
|collect2: ld returned 1 exit status

Inspired by Paul DuBois
(http://www.jsw4.net/info/list-archives/mysql/03-wk23/msg00660.html),
I've added the line '#include errno.h' to client/mysql.cc.
Afterwards, `make' spit out an error ('undefined reference to
`errno'') concerning libmysqlclient.so (the shared library built just
before the mysql client). I've tried a lot of crazy actions, like
using gcc instead of g++ (CXX=gcc etc.), copying /usr/include/errno.h
to the mysql source tree and many, many other, but these experiments
were in vain. I've also googled the whole world and found nothing.

Does anybody has a clue what should I do? Perhaps some package is
missing on my system? Oh, by the way, the same source tarball compiles
fine on RedHat 7.2 (no errors are shown while compiling the mysql
client).

Thanks in advance for your help,
Michal Kepien

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



Re: problems compiling a mysql tool

2004-03-19 Thread Sasha Pachev
Jason Unrein wrote:
Before I start, this is a compile problem (or so I
think) and from what little I read in this forum, it
looks ok to post. If not and you know the proper place
to post, please let me know. Now for the good
stuff
I'm attempting to write a simple tool in C that needs
to be compiled statically with mysql client support.
It needs this (correct me if I'm wrong in what I say)
because it will be used on the majority of Redhat'S
and SuSE's OSes. Instead of compiling for each one of
their glibc's and requiring that the mysql shared
libraries are installed, I want to compile it once,
statically for all of them (excluding the x86_64 and
ia64).
When I run

CC = gcc
CFLAGS = -O2 -Wall -static
ALL:
gcc -O2 -Wall -static -o logger scsiInquiry.o sg_err.o
sgScan.o logger.o /usr/lib/mysql/libmysqlclient.a

I get the following
--
/usr/lib/mysql/libmysqlclient.a(mf_pack.o)(.text+0x9ac):
In function `expand_tilde':
: Using 'getpwnam' in statically linked applications
requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x7a7):
In function `read_user_name':
: Using 'getpwuid' in statically linked applications
requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/mysql/libmysqlclient.a(mf_pack.o)(.text+0x9b9):
In function `expand_tilde':
: Using 'endpwent' in statically linked applications
requir

Jason:

I share with your your dislike of shared libraries. I guess some people have a 
hard time with the idea that you may want to compile a binary and have it just 
run everywhere with no fuss :-)

To make a long story short, the easiest way to solve the problem, as it seems to 
me -

 get MySQL source
 CXX=gcc CC=gcc ./configure --with-client-ldflags=-all-static 
--with-mysqld-ldflags=-all-static --prefix=/opt/my-own-mysql
make
make install

Then compile with -I/opt/my-own-mysql/include/mysql and link with 
-L/opt/my-own-mysql/lib -static -lmysqlclient -lz -lm

For machines with an incompatible libc gethostbyname() will fail when you call 
mysql_real_connect(), so just use IP addresses instead of host names. There is a 
solution that works around this problem, but it requires a libc patch.

--
Sasha Pachev
Create online surveys at http://www.surveyz.com/
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


problems compiling a mysql tool

2004-03-17 Thread Jason Unrein
Before I start, this is a compile problem (or so I
think) and from what little I read in this forum, it
looks ok to post. If not and you know the proper place
to post, please let me know. Now for the good
stuff

I'm attempting to write a simple tool in C that needs
to be compiled statically with mysql client support.
It needs this (correct me if I'm wrong in what I say)
because it will be used on the majority of Redhat'S
and SuSE's OSes. Instead of compiling for each one of
their glibc's and requiring that the mysql shared
libraries are installed, I want to compile it once,
statically for all of them (excluding the x86_64 and
ia64).

When I run

CC = gcc
CFLAGS = -O2 -Wall -static
ALL:
gcc -O2 -Wall -static -o logger scsiInquiry.o sg_err.o
sgScan.o logger.o /usr/lib/mysql/libmysqlclient.a


I get the following
--
/usr/lib/mysql/libmysqlclient.a(mf_pack.o)(.text+0x9ac):
In function `expand_tilde':
: Using 'getpwnam' in statically linked applications
requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x7a7):
In function `read_user_name':
: Using 'getpwuid' in statically linked applications
requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/mysql/libmysqlclient.a(mf_pack.o)(.text+0x9b9):
In function `expand_tilde':
: Using 'endpwent' in statically linked applications
requir



I have little experience compiling statically so I am
uncertain of the error messages are but I am reading
it as the libmysqlclient.a wasn't compiled statically
like I understood it to be. Is this so? If so, is
there any way for me to compile my program statically
without having to recompile libmysqlclient.a
statically?

I've tried linking with -lnsl and -lz (the z resolved
the compress problems but nsl won't get rid of the
others)

My ultimate goal is to be able to have this program
run on all of my lab's machines and only using a
single binary. Is this doable?


fyi:
the compile system is SuSE 9.0 x86 w/ mysql 4.0.15.

__
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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



Re: Problems compiling Mysql in Alpha with Tru64Unix V5.1

2003-07-16 Thread Egor Egorov
julio [EMAIL PROTECTED] wrote:

I try to compiling Mysql V4.0  in the Alpha/Tru64 Unix V5.1a. I have
 installed in the Alpha C++ and C version 6.5, and gcc 3.3 and GNU MAKE 3.8.
 # make
 No suffix list.

To me it looks like you are running the wrong make, not GNU one. 

Can help me
 Julio Rocha



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




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



Problems compiling Mysql in Alpha with Tru64Unix V5.1

2003-07-14 Thread julio
Hello There,

I try to compiling Mysql V4.0  in the Alpha/Tru64 Unix V5.1a. I have
installed in the Alpha C++ and C version 6.5, and gcc 3.3 and GNU MAKE 3.8.

Follow the Steps.

1- Dowload from http://www.mysql.com/downloads/mysql-4.0.html in the
SOURCE DOWNLOADS  Tarball(tar.gz)
2- I saved in the /usr/local/
3-Gunzip mysql-4.0xx.tar.gz
4-Tar mysql
   5-CC=cc CFLAGS=-O CXX=gcc CXXFLAGS=-O3 \
   ./configure --prefix=/usr/local/mysql
   6-Make
# make
No suffix list.
make  all-recursive
No suffix list.
Making all in .
No suffix list.
Making all in include
No suffix list.
Make: % rule can only use a single ':'.  Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

Can help me

Regards,
Julio Rocha





Problems compiling mysqlcc

2003-07-04 Thread manuel Silva
When compiling mysqlcc-0.9.2,I get:

checking for libmysqlclient...
checking for /usr/lib/mysql//libmysqlclient.a...yes
checking for mysql_real_connect in -lmysqlclient...no
configure:error:Could not find libmysqlclient in 
`/usr/lib/mysql/ /usr/lib/ ...etc.

I did:

./configure --with-mysql-lib=/usr/lib/mysql \
--with-mysql-include=/usr/include/mysql \
--with-qt=/usr/lib/qt3

Previously,I had started mysqld and set a password
for the mysql root user.What do is wrong here?

 Thank you.



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Problems compiling the C++ libs for Solaris 2.7 Workshop 5.0

2003-06-23 Thread Arvind Patel
Dear all,

Can someone please help me???

I'm getting errors compiling MySQL++ libs on Solaris 2.7 using Sun Workshop 5.0 
compiler.

I've built the C client libs/api successfully using the following configure command ( 
 then done make, make install )

configure CC=/opt/SUNWspro/bin/cc CFLAGS=-Xa -fast -native -xstrconst -mt 
CXX=/opt/SUNWspro/bin/CC CXXFLAGS=-mt --prefix=/home/apatel/mysqlapi 
--enable-assembler --without-server

The following environment variables were set for the compiler options.

CC=/opt/SUNWspro/bin/cc
CFLAGS=-Xa -fast -native -xstrconst -mt
CXX=/opt/SUNWspro/bin/CC
CXXFLAGS=-mt

I've tried building the MySQL++ libs/api using the following command

configure --prefix=/home/apatel/mysql++ --with-mysql=/home/apatel/mysqlapi 
--with-mysql-lib=/home/apatel/mysqlapi/lib 
--with-mysql-include=/home/apatel/mysqlapi/include --enable-exception

But I get the following compile errors after doing make

/opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../sqlplusint 
-I/home/apatel/mysqlapi/include/mysql -mt -Wp,-MD,.deps/coldata.pp -c  -KPIC -DPIC 
coldata.cc -o coldata.o
CC: Warning: Option -Wp,-MD,.deps/coldata.pp passed to ld, if ld is invoked, ignored 
otherwise
const_string1.hh, line 50: Error: The function out_of_range must have a prototype.
const_string1.hh, line 70: Error: inline is not allowed here.
const_string1.hh, line 70: Error: , expected instead of .
const_string1.hh, line 72: Error: A declaration was expected instead of }.
exceptions.hh, line 14: Error: exception is not defined.
exceptions.hh, line 16: Error: ) expected instead of .
exceptions.hh, line 16: Error: error is not a member of MysqlBadQuery.
exceptions.hh, line 16: Warning: The constant member string is not initialized.
exceptions.hh, line 22: Error: exception is not defined.
exceptions.hh, line 23: Error: , expected instead of _what.
exceptions.hh, line 24: Error: Use ; to terminate declarations.
exceptions.hh, line 26: Error: Multiple declaration for string.
exceptions.hh, line 26: Error: , expected instead of data.
exceptions.hh, line 27: Error: Use ; to terminate declarations.
exceptions.hh, line 33: Error: ) expected instead of .
exceptions.hh, line 30: Error: _what is not a member of MysqlBadConversion.
exceptions.hh, line 31: Error: data is not a member of MysqlBadConversion.
exceptions.hh, line 31: Warning: The constant member string is not initialized.
exceptions.hh, line 34: Error: _what is not a member of MysqlBadConversion.
exceptions.hh, line 34: Error: data is not a member of MysqlBadConversion.
exceptions.hh, line 34: Warning: The constant member string is not initialized.
exceptions.hh, line 37: Error: _what is not a member of MysqlBadConversion.
exceptions.hh, line 37: Error: data is not a member of MysqlBadConversion.
exceptions.hh, line 37: Warning: The constant member string is not initialized.
exceptions.hh, line 44: Error: exception is not defined.
exceptions.hh, line 45: Error: , expected instead of _what.
exceptions.hh, line 46: Error: Use ; to terminate declarations.
exceptions.hh, line 47: Error: ) expected instead of .
exceptions.hh, line 47: Error: _what is not a member of BadNullConversion.
Compilation aborted, too many Error messages.
make[2]: *** [coldata.lo] Error 1
make[2]: Leaving directory `/home/apatel/mysql++-1.7.9/sqlplusint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/apatel/mysql++-1.7.9'
make: *** [all-recursive-am] Error 2

If anybody can help it would be greatly appreciated.

Thanks in advance.

Arvind Patel


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



Re: URGENT: Problems compiling mysql 3 and 4 on IRIX indy 6.5 IP22 mips

2003-06-06 Thread Jason Buchanan
Michael Widenius wrote:

Hi!

 

Jason == Jason Buchanan [EMAIL PROTECTED] writes:
   

Jason hi,

Jason I'm having a hard time getting mysql 4 and mysql 3 to compile on IRIX 6.5...

Jason Does anyone have a solution to this?

Jason Below is an example of compiling mysql 4.0.13 (looks practically 
Jason identical for mysql 3.23.56):

cut

Jason g++ -DUNDEF_THREADS_HACK -I. -I. -I.. -I./../include -I../include -I./.. 
Jason -I.. -I.. -O -DDBUG_OFF -D_BOOL -c -o mysql.o `test -f mysql.cc || 
Jason echo './'`mysql.cc
Jason In file included from 
Jason /usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
Jason  from mysql.cc:54:
Jason /usr/include/curses.h:112: syntax error before `,'
Jason /usr/include/curses.h:143: syntax error before `;'

cut

This problem is covered in the Irix section of the MySQL online
manual.  Please check it for details how to solve it.
 



I wish there was a link to the irix tips and suggestions page off of the 
mysql binaries page with the compiler switches...  but people in hell 
want icewater, too ;-)

Thanks!!
Jason


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


URGENT: Problems compiling mysql 3 and 4 on IRIX indy 6.5 IP22 mips

2003-06-05 Thread Jason Buchanan
hi,

I'm having a hard time getting mysql 4 and mysql 3 to compile on IRIX 6.5...

Does anyone have a solution to this?

Below is an example of compiling mysql 4.0.13 (looks practically 
identical for mysql 3.23.56):

g++ -DUNDEF_THREADS_HACK -I. -I. -I.. -I./../include -I../include -I./.. 
-I.. -I.. -O -DDBUG_OFF -D_BOOL -c -o mysql.o `test -f mysql.cc || 
echo './'`mysql.cc
In file included from 
/usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
from mysql.cc:54:
/usr/include/curses.h:112: syntax error before `,'
/usr/include/curses.h:143: syntax error before `;'
/usr/include/curses.h:285: `__curses_bool_t' was not declared in this scope
/usr/include/curses.h:285: warning: `_meta' initialized and declared 
`extern'
/usr/include/curses.h:301: type specifier omitted for parameter
/usr/include/curses.h:340: syntax error before `('
/usr/include/curses.h:388: type specifier omitted for parameter
/usr/include/curses.h:390: type specifier omitted for parameter
In file included from 
/usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
from mysql.cc:54:
/usr/include/curses.h:856: type specifier omitted for parameter
/usr/include/curses.h:859: type specifier omitted for parameter
/usr/include/curses.h:860: type specifier omitted for parameter
/usr/include/curses.h:861: type specifier omitted for parameter
/usr/include/curses.h:862: type specifier omitted for parameter
/usr/include/curses.h:863: type specifier omitted for parameter
/usr/include/curses.h:864: type specifier omitted for parameter
/usr/include/curses.h:1015: type specifier omitted for parameter
make[2]: *** [mysql.o] Error 1
make[2]: Leaving directory `/usr/people/jsb/mysql-4.0.13/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/people/jsb/mysql-4.0.13'
make: *** [all] Error 2



Thanks,
Jason


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


Re: URGENT: Problems compiling mysql 3 and 4 on IRIX indy 6.5 IP22 mips

2003-06-05 Thread vze2spjf
Look at http://gcc.gnu.org/ml/gcc-bugs/2000-11/msg00293.html

(I don't know anything about this, but that page seems very relevant.)

-S



 
 From: Jason Buchanan [EMAIL PROTECTED]
 Date: 2003/06/04 Wed AM 08:22:29 CDT
 To: [EMAIL PROTECTED]
 Subject: URGENT:  Problems compiling mysql 3 and 4 on IRIX indy 6.5 IP22 mips
 
 
 hi,
 
 I'm having a hard time getting mysql 4 and mysql 3 to compile on IRIX 6.5...
 
 Does anyone have a solution to this?
 
 Below is an example of compiling mysql 4.0.13 (looks practically 
 identical for mysql 3.23.56):
 
 
 g++ -DUNDEF_THREADS_HACK -I. -I. -I.. -I./../include -I../include -I./.. 
 -I.. -I.. -O -DDBUG_OFF -D_BOOL -c -o mysql.o `test -f mysql.cc || 
 echo './'`mysql.cc
 In file included from 
 /usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
  from mysql.cc:54:
 /usr/include/curses.h:112: syntax error before `,'
 /usr/include/curses.h:143: syntax error before `;'
 /usr/include/curses.h:285: `__curses_bool_t' was not declared in this scope
 /usr/include/curses.h:285: warning: `_meta' initialized and declared 
 `extern'
 /usr/include/curses.h:301: type specifier omitted for parameter
 /usr/include/curses.h:340: syntax error before `('
 /usr/include/curses.h:388: type specifier omitted for parameter
 /usr/include/curses.h:390: type specifier omitted for parameter
 In file included from 
 /usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
  from mysql.cc:54:
 /usr/include/curses.h:856: type specifier omitted for parameter
 /usr/include/curses.h:859: type specifier omitted for parameter
 /usr/include/curses.h:860: type specifier omitted for parameter
 /usr/include/curses.h:861: type specifier omitted for parameter
 /usr/include/curses.h:862: type specifier omitted for parameter
 /usr/include/curses.h:863: type specifier omitted for parameter
 /usr/include/curses.h:864: type specifier omitted for parameter
 /usr/include/curses.h:1015: type specifier omitted for parameter
 make[2]: *** [mysql.o] Error 1
 make[2]: Leaving directory `/usr/people/jsb/mysql-4.0.13/client'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/people/jsb/mysql-4.0.13'
 make: *** [all] Error 2
 
 
 
 Thanks,
 Jason
 
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 
 


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



URGENT: Problems compiling mysql 3 and 4 on IRIX indy 6.5 IP22 mips

2003-06-05 Thread Michael Widenius

Hi!

 Jason == Jason Buchanan [EMAIL PROTECTED] writes:

Jason hi,

Jason I'm having a hard time getting mysql 4 and mysql 3 to compile on IRIX 6.5...

Jason Does anyone have a solution to this?

Jason Below is an example of compiling mysql 4.0.13 (looks practically 
Jason identical for mysql 3.23.56):

cut

Jason g++ -DUNDEF_THREADS_HACK -I. -I. -I.. -I./../include -I../include -I./.. 
Jason -I.. -I.. -O -DDBUG_OFF -D_BOOL -c -o mysql.o `test -f mysql.cc || 
Jason echo './'`mysql.cc
Jason In file included from 
Jason /usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/include/curses.h:5,
Jason  from mysql.cc:54:
Jason /usr/include/curses.h:112: syntax error before `,'
Jason /usr/include/curses.h:143: syntax error before `;'

cut

This problem is covered in the Irix section of the MySQL online
manual.  Please check it for details how to solve it.

-- 
Michael Widenius [EMAIL PROTECTED]
MySQL AB, CTO
Helsinki, Finland

Are you MySQL certified?  www.mysql.com/certification


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



Problems compiling with berkeley

2003-03-12 Thread Barry Pollock
extra_configs=$extra_configs --with-innodb --with-berkeley-db \
--with-embedded-server --enable-thread-safe-client \
--with-bencgh --prefix=/usr --enable-maintainer-mode \
--with-docs --with-unix-socket=/var/run/mysqld/mysqld.sock \
--with-lo-memory --with-openssl --with-vio
 It compiles fine with out berkeley but I get the following with
berkeley included
In file included from ../../bdb/include/db_am.h:129,
 from ../../bdb/include/btree.h:317,
 from ../../bdb/btree/bt_compare.c:55:
../../bdb/include/crdel_auto.h:27: syntax error before DB_LS
../../bdb/include/crdel_auto.h:27: warning: no semicolon at end of
struct or union
../../bdb/include/crdel_auto.h:28: warning: data definition has no type
or storage class
../../bdb/include/crdel_auto.h:32: syntax error before
__crdel_metasub_args
make[3]: *** [bt_compare.o] Error 1
make[3]: Leaving directory
`/home/barryp/mysql/mysql-4.0.11a-gamma/bdb/build_unix'
make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/barryp/mysql/mysql-4.0.11a-gamma/bdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/barryp/mysql/mysql-4.0.11a-gamma'
make: *** [all-recursive-am] Error 2
[EMAIL PROTECTED]:~/mysql/mysql-4.0.11a-gamma$
 This seems like a library problem I am using
gcc version 3.2.3 20030309 (Debian prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
Barry


-
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



Problems compiling

2002-11-06 Thread AE
Anyone ever come across this compilation error?

g++ -DMYSQL_SERVER  
-DDEFAULT_MYSQL_HOME=\/usr/local/mysql\ 
-DDATADIR=\/usr/local/mysql/var\
-DSHAREDIR=\/usr/local/mysql/share/mysql\   
-DHAVE_CONFIG_H -I./../include  
-I./../regex-I. -I../include -I.. -I.-O3 
-DDBUG_OFF   -fno-implicit-templates -fno-exceptions -fno-rtti 
-DHAVE_RWLOCK_T -c mysqld.cc
mysqld.cc: In function `void* handle_connections_sockets(void*)':
mysqld.cc:2410: invalid conversion from `size_socket*' to `socklen_t*'
mysqld.cc:2476: invalid conversion from `size_socket*' to `socklen_t*'
make[3]: *** [mysqld.o] Error 1
make[3]: Leaving directory `/opt/build/mysql-3.23.53/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/build/mysql-3.23.53/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/build/mysql-3.23.53'
make: *** [all-recursive-am] Error 2

I am running Solaris 9 on a sparc and compiling with gcc 3.2.  Heres my 
configure string:

./configure --prefix=/usr/local/mysql --with-low-memory CFLAGS=-O6 
LDFLAGS=-R/usr/local/lib

Thanks for any info!

Andy


-
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



problems compiling mysql

2002-06-02 Thread James Thogmartin

I have tried this 3 times so far everytime i do a 'make', after a
while, i get this message:

make[2] *** [my_net.lo] Segmentation fault
make[2] Leaving directory '/home/per0xide/mysql-3.23.49/libmysql'
make[1] *** [all-recursive] Error 1
make[1] Leaving directory ' /home/per0xide/mysql-3.23.49'
make:*** [all-recursive-am] Error 2

i have tried it with 3 different versions.. 3.23.49, and 2 of the older
versions... and they all crash the same way...

i am running debian 2.2...

anyone know what the problem could be, and how i can fix it?


Thanks,

James Thogmartin


-
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: problems compiling mysql

2002-06-02 Thread Yegor Bryukhov


Hello,

As I understood segmentation fault happens during compilation?
Segmentation fault happens always at the same point?

If not then it is a problem of your memory, try memtest86 to test your 
memory (not your but your computer :) )

If it always happens at the same point than it is a kind of 
incompatibility between MySQL sources and your compilation environment 
(gcc, make, etc)

MySQL has very narrow set of compatible GCC versions. It should by 
something from 2.95 and 2.91 families (even not whole families may be) 
no less no more.

 I have tried this 3 times so far every time i do a 'make', after a
 while, i get this message:
 
 make[2] *** [my_net.lo] Segmentation fault
 make[2] Leaving directory '/home/per0xide/mysql-3.23.49/libmysql'
 make[1] *** [all-recursive] Error 1
 make[1] Leaving directory ' /home/per0xide/mysql-3.23.49'
 make:*** [all-recursive-am] Error 2
 
 i have tried it with 3 different versions.. 3.23.49, and 2 of the older
 versions... and they all crash the same way...
 
 i am running debian 2.2...
 
 anyone know what the problem could be, and how i can fix it?
 
 
 Thanks,
 
 James Thogmartin
 
 
 -
 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
 
 



-- 
Best regards,
Yegor
__
Yegor Bryukhov, PhD student at GC CUNY
office:   4330
office phone: +1(212)817-8653
home phone:   +1(718)842-4250
e-mail:   [EMAIL PROTECTED]


-
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




Problems compiling PHP with mysql support as a apache DSO on a HPUX11.x box

2002-02-20 Thread Andre Konopka

Hi,

mmh, maybe it's not a mysql-problem...
Yes, I read through the numerous threads about this topic but I can't
solve my problem

After compiling php-4.1.1 with mysql support (mysql-3.23.47) as a DSO
(./configure --enable-libgcc  --with-mysql=/opt/mysql-3.23.47 
--with-apxs=/opt/apache-1.3.23/bin/apxs)

apache complains with the following error:


  bin/apachectl start
/usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code)  from 
/opt/mysql-3.23.47/lib/mysql/libmysqlclient.sl.10
Syntax error on line 236 of /opt/apache-1.3.23/conf/httpd.conf:
Cannot load /opt/apache-1.3.23/libexec/libphp4.so into server: No such 
file or directory
bin/apachectl start: httpd could not be started



I compiled all the stuff with gcc version 2.95.2 19991024 (release)

Here are the options I used to compile MySQL

CXX=gcc
CFLAGS=-fomit-frame-pointer -O6 -fpic
CXXFLAGS=-felide-constructors -fno-exceptions -fno-rtti -O6
./configure --prefix=/opt/mysql-3.23.47 --with-low-memory --with-innodb

chatr


Any idea??


-
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: Problems compiling PHP with mysql support as a apache DSO on aHPUX11.x box

2002-02-20 Thread Wolfgang Pichler

Do you have also recompiled apache after compiling php ?

Am Mit, 2002-02-20 um 10.04 schrieb Andre Konopka:
 Hi,
 
 mmh, maybe it's not a mysql-problem...
 Yes, I read through the numerous threads about this topic but I can't
 solve my problem
 
 After compiling php-4.1.1 with mysql support (mysql-3.23.47) as a DSO
 (./configure --enable-libgcc  --with-mysql=/opt/mysql-3.23.47 
 --with-apxs=/opt/apache-1.3.23/bin/apxs)
 
 apache complains with the following error:
 
 
   bin/apachectl start
 /usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code)  from 
 /opt/mysql-3.23.47/lib/mysql/libmysqlclient.sl.10
 Syntax error on line 236 of /opt/apache-1.3.23/conf/httpd.conf:
 Cannot load /opt/apache-1.3.23/libexec/libphp4.so into server: No such 
 file or directory
 bin/apachectl start: httpd could not be started
 
 
 
 I compiled all the stuff with gcc version 2.95.2 19991024 (release)
 
 Here are the options I used to compile MySQL
 
 CXX=gcc
 CFLAGS=-fomit-frame-pointer -O6 -fpic
 CXXFLAGS=-felide-constructors -fno-exceptions -fno-rtti -O6
 ./configure --prefix=/opt/mysql-3.23.47 --with-low-memory --with-innodb
 
 chatr
 
 
 Any idea??
 
 
 -
 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
 
 
 
 





-
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: Problems compiling PHP with mysql support as a apache DSO on aHPUX11.x box

2002-02-20 Thread Arjen Lentz

Hi Andre,

On Wed, 2002-02-20 at 19:04, Andre Konopka wrote:
 mmh, maybe it's not a mysql-problem...

Indeed, doesn't look like it.

 Yes, I read through the numerous threads about this topic but I can't
 solve my problem
 
 After compiling php-4.1.1 with mysql support (mysql-3.23.47) as a DSO
 (./configure --enable-libgcc  --with-mysql=/opt/mysql-3.23.47 
 --with-apxs=/opt/apache-1.3.23/bin/apxs)
 
 apache complains with the following error:
 
 
   bin/apachectl start
 /usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code)  from 
 /opt/mysql-3.23.47/lib/mysql/libmysqlclient.sl.10
 Syntax error on line 236 of /opt/apache-1.3.23/conf/httpd.conf:
 Cannot load /opt/apache-1.3.23/libexec/libphp4.so into server: No such 
 file or directory
 bin/apachectl start: httpd could not be started

Ok, so /opt/apache-1.3.23/libexec/libphp4.so does not exist.
Look at httpd.conf, where are the other Apache modules loaded from?

Check where the make install of PHP puts the libphp4.so 
(also scan your disk for all occurrances of 'libphp4.so')


Regards,
Arjen.

-- 
Get MySQL Training Worldwide, http://www.mysql.com/training/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Arjen G. Lentz [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Technical Writer, Trainer
/_/  /_/\_, /___/\___\_\___/   Brisbane, QLD Australia
   ___/   www.mysql.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: Problems compiling PHP with mysql support as a apache DSO on a HPUX11.x box

2002-02-20 Thread Andre Konopka

Wolfgang Pichler wrote:

 Do you have also recompiled apache after compiling php ?
 




YES




 Am Mit, 2002-02-20 um 10.04 schrieb Andre Konopka:
 
Hi,

mmh, maybe it's not a mysql-problem...
Yes, I read through the numerous threads about this topic but I can't
solve my problem

After compiling php-4.1.1 with mysql support (mysql-3.23.47) as a DSO
(./configure --enable-libgcc  --with-mysql=/opt/mysql-3.23.47 
--with-apxs=/opt/apache-1.3.23/bin/apxs)

apache complains with the following error:


  bin/apachectl start
/usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code)  from 
/opt/mysql-3.23.47/lib/mysql/libmysqlclient.sl.10
Syntax error on line 236 of /opt/apache-1.3.23/conf/httpd.conf:
Cannot load /opt/apache-1.3.23/libexec/libphp4.so into server: No such 
file or directory
bin/apachectl start: httpd could not be started



I compiled all the stuff with gcc version 2.95.2 19991024 (release)

Here are the options I used to compile MySQL

CXX=gcc
CFLAGS=-fomit-frame-pointer -O6 -fpic
CXXFLAGS=-felide-constructors -fno-exceptions -fno-rtti -O6
./configure --prefix=/opt/mysql-3.23.47 --with-low-memory --with-innodb

chatr


Any idea??


-
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





 
 
 
 




-
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: Problems compiling PHP with mysql support as a apache DSO on a HPUX11.x box

2002-02-20 Thread Andre Konopka

Yes, I read through the numerous threads about this topic but I can't
solve my problem

After compiling php-4.1.1 with mysql support (mysql-3.23.47) as a DSO
(./configure --enable-libgcc  --with-mysql=/opt/mysql-3.23.47 
--with-apxs=/opt/apache-1.3.23/bin/apxs)

apache complains with the following error:


  bin/apachectl start
/usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code)  from 
/opt/mysql-3.23.47/lib/mysql/libmysqlclient.sl.10
Syntax error on line 236 of /opt/apache-1.3.23/conf/httpd.conf:
Cannot load /opt/apache-1.3.23/libexec/libphp4.so into server: No such 
file or directory
bin/apachectl start: httpd could not be started

 
 Ok, so /opt/apache-1.3.23/libexec/libphp4.so does not exist.
 Look at httpd.conf, where are the other Apache modules loaded from?


Sorry, didn't mention it, of course 
/opt/apache-1.3.23/libexec/libphp4.so exist.
Apache complains with a systeax error if apache could not load module...



Andre


-
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




Problems compiling mysql 3.23.36 on Solaris 8

2001-12-06 Thread Jason Ahrens

I have compiled mySql before on Solaris, and never had this problem.

On this system, configure goes fine, and make chugs along until the 'sql'
directory, at which point the following occurs:

gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti
-fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_CURSES_H
-I/export/home/ahrensj/build/mysql-3.23.46/include -DHAVE_RWLOCK_T -o mysqld
sql_lex.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o
item_strfunc.o item_timefunc.o thr_malloc.o item_create.o field.o key.o
sql_class.o sql_list.o net_serv.o violite.o net_pkg.o lock.o my_lock.o
sql_string.o sql_manager.o sql_map.o mysqld.o password.o hash_filo.o
hostname.o convert.o sql_parse.o sql_yacc.o sql_base.o table.o sql_select.o
sql_insert.o sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o
log.o log_event.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o
opt_sum.o opt_ft.o records.o filesort.o handler.o ha_heap.o ha_myisam.o
ha_myisammrg.o ha_berkeley.o ha_innobase.o ha_gemini.o ha_isam.o
ha_isammrg.o sql_db.o sql_table.o sql_rename.o sql_crypt.o sql_load.o
mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o sql_cache.o
slave.o sql_repl.o mini_client.o mini_client_errors.o md5.o stacktrace.o
-static ../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 -ldl
-lpthread -lthread -lz -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread
ld: fatal: library -ldl: not found
ld: fatal: library -lpthread: not found
ld: fatal: library -lthread: not found
ld: fatal: library -lz: not found
ld: fatal: library -lpthread: not found
ld: fatal: library -lthread: not found
ld: fatal: File processing errors. No output written to mysqld
collect2: ld returned 1 exit status
make[3]: *** [mysqld] Error 1
make[3]: Leaving directory `/export/home/ahrensj/build/mysql-3.23.46/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/ahrensj/build/mysql-3.23.46/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/ahrensj/build/mysql-3.23.46'
make: *** [all-recursive-am] Error 2

I cannot make head or tails of why this error comes up. All the libraries
that ld is complaining about are available, either in /usr/lib or (as with
pthread) where the mysql make file puts them.

I have asked a few other people, and they cannot explain what is going on
either.

I am using:

cc: gcc version 2.95 19990728 (release)
ld: ld: Software Generation Utilities - Solaris-ELF (4.0)  [Solaris 8
default]
make: make: GNU Make version 3.79

Thanks for any help...

Jason

--
Jason Ahrens, Systems Analyst
TELUS Enterprise Solutions
http://www.telus.com
The Future is Friendly


-
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: Problems compiling under Solaris 2.6

2001-12-05 Thread Matthew Darcy

Hmmm,

Good thinking. However, the files needed (autoconf) is in /usr/local/bin -
which is in my $PATH. a which shows autoconf so I know it can be seen
without any problems. There is no ld.conf.so under solaris 2.6.

Any more suggestions as I am having big problems with this.

Thanks,

Matt.


-Original Message-
From: Alan W. Rateliff, II [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2001 15:15
To: Matthew Darcy
Subject: Re: Problems compiling under Solaris 2.6


On 05-Dec-01, Matthew Darcy said something totally profound about Problems
compiling under Solaris 2.6 that made me ponder...

MD
MD Hi,
MD
MD I am running fully patched Solaris 2.6 on a Sun ultra 2 server.
MD
MD I am running a simple
MD
MD ./configure --enable-thread-safe-client --with-mysqld-user=dba
MD
MD and yes the dba account exists.
MD
MD There is 2 problems with this.
MD
MD 1.) if you examine the output of configure you will notice the it cannot
MD find autoconf - although if you view pkginfo output you will notice that
MD autoconf is present and in the search path. Why is this and how to fix ?

Make sure that these packages are in your PATH.  MOST SMC packages install
in /usr/local, so having /usr/local/bin in your PATH should be sufficient.

MD 2.) if you read the end of the configure output you will notice an
error.
MD I am unsure what this error means, and the librarys that it complains
MD COULD be missing are infact installed in the correct place.

Make sure that ALL of your library directories are in your LD_LIBRARY_PATH,
or listed in /etc/ld.so.conf.  I'm not sure it /etc/ld.so.conf exists in
Solaris 2.6 or not, as that majority of my work has been in Solaris 8.
However, I have had successfull compiles under 2.4, 2.5.1, 2.6, 7, and 8.

--
   Alan W. Rateliff, II: YourVillage.com
  Assistant Systems Administrator  :   2700 Apalachee Pkwy
  [EMAIL PROTECTED]   :  Tallahassee, FL 32301
(850) 942-7021---
 [EMAIL PROTECTED]  http://support.yourvillage.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




Problems Compiling 4.0.0-alpha (fwd)

2001-10-24 Thread Ed Coates


I submitted this back on the 6th of October, and never got a reply to it,
so I'll try one more time in hopes that someone can help me with this
compilation problem.

I've got a Dual Pentium 233MHz with 64MB of RAM loaded with SuSE Linux 7.1
and gcc-2.95.2.  I'm running the 2.4.7 kernel, and I have no problems
compiling the 3.23.x version of MySQL, but with the new alpha version,
I'm having the following problem.  Here are the config options for it,
followed by the errors:

./configure --prefix=/usr/local/mysql --with-innodb
--with-berkeley-db=/usr/local/BerkeleyDB.3.2

Here is the error that I get when it's compiling in the libmysql
directory:

gcc -O3 -DDBUG_OFF -mcpu=pentiumpro -march=pentiumpro -DCPU=pentiumpro
-rdynamic -o conf_to_src conf_to_src.o -lz -lcrypt -lnsl -lm
./conf_to_src ..  latin1  \
  ./ctype_extra_sources.c
make[2]: *** [ctype_extra_sources.c] Error 132
make[2]: Leaving directory `/usr/src/mysql-4.0.0-alpha/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql-4.0.0-alpha'
make: *** [all-recursive-am] Error 2

If I type make again, here's what comes up:

gcc -DDEFAULT_CHARSET_HOME=\/usr/local/mysql\
-DDATADIR=\/usr/local/mysql/var\
-DSHAREDIR=\/usr/local/mysql/share/mysql\ -DUNDEF_THREADS_HACK
-DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3
-DDBUG_OFF -mcpu=pentiumpro -march=pentiumpro -DCPU=pentiumpro -c ctype.c
-fPIC -DPIC -o .libs/ctype.lo
In file included from ctype.c:27:
ctype_autoconf.c:9: `ctype_latin1' undeclared here (not in a function)
ctype_autoconf.c:9: initializer element is not constant
ctype_autoconf.c:9: (near initialization for `compiled_charsets[0].ctype')
ctype_autoconf.c:10: `to_lower_latin1' undeclared here (not in a function)
ctype_autoconf.c:10: initializer element is not constant
ctype_autoconf.c:10: (near initialization for
`compiled_charsets[0].to_lower')
ctype_autoconf.c:11: `to_upper_latin1' undeclared here (not in a function)
ctype_autoconf.c:11: initializer element is not constant
ctype_autoconf.c:11: (near initialization for
`compiled_charsets[0].to_upper')
ctype_autoconf.c:12: `sort_order_latin1' undeclared here (not in a
function)
ctype_autoconf.c:12: initializer element is not constant
ctype_autoconf.c:12: (near initialization for
`compiled_charsets[0].sort_order')
make: *** [ctype.lo] Error 1

Can anyone tell me why this won't compile in my machine?

Ed


-
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: problems compiling on FreeBSD 3.3 (mysql-3.23.41)

2001-08-29 Thread Sinisa Milivojevic

Angel Behar writes:
 I just update the gcc version and still the same problem :
 
 absa# gcc -v
 Reading specs from
 /usr/local/lib/gcc-lib/i386-unknown-freebsd3.3/3.0.1/specs
 Configured with: ../configure --enable-languages=c++
 Thread model: posix
 gcc version 3.0.1
 
 
 Any Ideas ?
 
 thanks

Of course. Use FBSD 3.4 STABLE. 3.3 is not stable enough for MySQL.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.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: problems compiling on FreeBSD 3.3 (mysql-3.23.41)

2001-08-28 Thread Angel Behar

I just update the gcc version and still the same problem :

absa# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-unknown-freebsd3.3/3.0.1/specs
Configured with: ../configure --enable-languages=c++
Thread model: posix
gcc version 3.0.1


Any Ideas ?

thanks
- Original Message -
From: Jeremy Zawodny [EMAIL PROTECTED]
To: Angel Behar [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 11:50 PM
Subject: Re: problems compiling on FreeBSD 3.3 (mysql-3.23.41)


 On Thu, Aug 23, 2001 at 01:50:36PM -0700, Angel Behar wrote:
  Hi !!
 
  I'm trying to compile mysql-3.23.41 on a FreebSD 3.3 box but I can't
 
  I'm using latest gnu make version and this is the first time that I
  have problems compiling mysql so if any of you can help me I'll
  appreciate.
 
  Thanks in advance.

 Which compiler version are you using?

 Jeremy
 --
 Jeremy D. Zawodny, [EMAIL PROTECTED]
 Technical Yahoo - Yahoo Finance
 Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

 MySQL 3.23.41-max: up 6 days, processed 89,579,267 queries (148/sec. avg)



-
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: problems compiling on FreeBSD 3.3 (mysql-3.23.41)

2001-08-24 Thread Jeremy Zawodny

On Thu, Aug 23, 2001 at 01:50:36PM -0700, Angel Behar wrote:
 Hi !!
 
 I'm trying to compile mysql-3.23.41 on a FreebSD 3.3 box but I can't
 
 I'm using latest gnu make version and this is the first time that I
 have problems compiling mysql so if any of you can help me I'll
 appreciate.
 
 Thanks in advance.

Which compiler version are you using?

Jeremy
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 6 days, processed 89,579,267 queries (148/sec. avg)

-
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




problems compiling on FreeBSD 3.3 (mysql-3.23.41)

2001-08-23 Thread Angel Behar

Hi !!

I'm trying to compile mysql-3.23.41 on a FreebSD 3.3 box but I can't

I'm using latest gnu make version and  this is the first time that I have
problems compiling mysql so if any of you can help me I'll appreciate.

Thanks in advance.

Angel.


Making all in client
gmake[2]: Entering directory `/usr/home/abehar/mysql-3.23.41/client'
c++ -DUNDEF_THREADS_HACK -I./../include  -I../include -I./.. -I..  -I..-
O3 -DDBUG_OFF   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_N
ET_RETRY_COUNT=100 -c mysql.cc
cc1plus: Invalid option `-fno-exceptions'
In file included from mysql.cc:28:
../include/global.h:646: warning: abstract declarator used as declaration
gmake[2]: *** [mysql.o] Error 1
gmake[2]: Leaving directory `/usr/home/abehar/mysql-3.23.41/client'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/abehar/mysql-3.23.41'
gmake: *** [all-recursive-am] Error 2


-
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




Problems compiling mysql on linux 7.0

2001-08-14 Thread Vien Huynhle
Title: Blank



I am getting this error when trying to install mysql

# ./configure --with-low-memory --prefix=/usr/local/mysql loading 
cache ./config.cachechecking host system type... 
i586-pc-linux-gnuchecking target system type... 
i586-pc-linux-gnuchecking build system type... i586-pc-linux-gnuchecking 
for a BSD compatible install... (cached) /usr/bin/install -cchecking whether 
build environment is sane... yeschecking whether make sets ${MAKE}... 
(cached) yeschecking for working aclocal... missingchecking for working 
autoconf... foundchecking for working automake... missingchecking for 
working autoheader... foundchecking for working makeinfo... 
foundchecking whether to enable maintainer-specific portions of Makefiles... 
nochecking whether build environment is sane... yeschecking whether make 
sets ${MAKE}... (cached) yeschecking for gawk... (cached) gawkchecking 
for gcc... (cached) gccchecking whether the C compiler (gcc ) 
works... yeschecking whether the C compiler (gcc ) is
.
checking for tcgetattr... yeschecking whether stat file-mode macros are 
broken... nochecking return type of signal handlers... voidchecking for 
type of signal functions... posixchecking whether programs are able to 
redeclare getpw functions... yeschecking for TIOCGWINSZ in sys/ioctl.h... 
yeschecking for FIONREAD in sys/ioctl.h... yeschecking for TIOCSTAT in 
sys/ioctl.h... nochecking if struct dirent has a d_ino member... 
yeschecking whether signal handlers are of type void... yeschecking for 
tgetent in -lncurses... nochecking for tgetent in -lcurses... nochecking 
for tgetent in -ltermcap... nochecking for termcap functions library... 
configure: error: No curses/termcap library found

I can't seem to get it to compile. Still a newbie at this.

Vien HuynhleClearsail Communications



Problems compiling mysql on linux 7.0

2001-08-14 Thread Vien Huynhle
Title: Blank




I am getting this error when trying to install mysql

# ./configure --with-low-memory --prefix=/usr/local/mysql loading 
cache ./config.cachechecking host system type... 
i586-pc-linux-gnuchecking target system type... 
i586-pc-linux-gnuchecking build system type... i586-pc-linux-gnuchecking 
for a BSD compatible install... (cached) /usr/bin/install -cchecking whether 
build environment is sane... yeschecking whether make sets ${MAKE}... 
(cached) yeschecking for working aclocal... missingchecking for working 
autoconf... foundchecking for working automake... missingchecking for 
working autoheader... foundchecking for working makeinfo... 
foundchecking whether to enable maintainer-specific portions of Makefiles... 
nochecking whether build environment is sane... yeschecking whether make 
sets ${MAKE}... (cached) yeschecking for gawk... (cached) gawkchecking 
for gcc... (cached) gccchecking whether the C compiler (gcc ) 
works... yeschecking whether the C compiler (gcc ) is
.
checking for tcgetattr... yeschecking whether stat file-mode macros are 
broken... nochecking return type of signal handlers... voidchecking for 
type of signal functions... posixchecking whether programs are able to 
redeclare getpw functions... yeschecking for TIOCGWINSZ in sys/ioctl.h... 
yeschecking for FIONREAD in sys/ioctl.h... yeschecking for TIOCSTAT in 
sys/ioctl.h... nochecking if struct dirent has a d_ino member... 
yeschecking whether signal handlers are of type void... yeschecking for 
tgetent in -lncurses... nochecking for tgetent in -lcurses... nochecking 
for tgetent in -ltermcap... nochecking for termcap functions library... 
configure: error: No curses/termcap library found

I can't seem to get it to compile. Still a newbie at this.

Vien HuynhleClearsail Communications





Re: Problems compiling mysql on linux 7.0

2001-08-14 Thread Tyler Longren

Which Linux 7.0 are you using?
I'll assume you're talking about Redhat.  So why don't you just download
the mysql rpm and install it instead of doing it from source?

Good luck,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.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: Problems compiling mysql on linux 7.0

2001-08-14 Thread Grigory Bakunov

Date |Tue, 14 Aug 2001 16:19:13 -0500
From |Vien Huynhle [EMAIL PROTECTED]

Hello!

VH BlankI am getting this error when trying to install mysql

VH checking for tgetent in -lncurses... no
VH checking for tgetent in -lcurses... no
VH checking for tgetent in -ltermcap... no
VH checking for termcap functions library... configure: error: No curses/termcap 
library found 

You need to install ncurses library.



___
For technical support contracts, visit https://order.mysql.com/
This email is sponsored by SWSoft, http://www.asplinux.ru/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Grigory Bakunov [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB / SWSoft
/_/  /_/\_, /___/\___\_\___/
   ___/   www.mysql.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




problems compiling 3.23.39 under GCC 3.0

2001-06-20 Thread E. Souhrada

If you're not using GCC 3.0 AND libwrap, this message probably won't
apply to you

Trying to compile 3.23.39 on Linux 2.4.5 with GCC 3.0 and libwrap enabled
leads to errors like this when the compiler reaches mysqld.cc:

c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ 
-DDATADIR=\/usr/local/mysql-data\
-DSHAREDIR=\/usr/local/share/mysql\ -DHAVE_CONFIG_H -I./../include 
-I./../regex -I.
-I../include -I.. -I.  -I/usr/lib/include  -O3 -DDBUG_OFF 
-fno-implicit-templates
-fno-exceptions -fno-rtti -c mysqld.cc

/usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)':
/usr/include/tcpd.h:124: too many arguments to function `char* eval_client()'
mysqld.cc:2257: at this point in file
make[3]: *** [mysqld.o] Error 1

Apparently this is a result of updates to the C++ compiler; according to
the GCC known bugs page:

There are many reasons why reported bugs don't get fixed. It might be
difficult to fix, or fixing it might break compatibility. Often, reports
get a low priority when there is a simple work-around. In particular, bugs
caused by invalid C++ code have a simple work-around, fix the code. Now
that there is an agreed ISO/ANSI standard for C++, the compiler has a
definitive document to adhere to. Earlier versions might have accepted
source code that is no longer C++. This means that code which might have
`worked' in a previous version, is now rejected. You should update your
code to be C++.

Anyway... these errors can be fixed by updating tcpd.h

line 69:  extern int hosts_access(struct request_info *);
line 124: extern char *eval_client(struct request_info*);
line 131: extern void sock_host(struct request_info*);

I've also experienced problems trying to compile with the --with-raid
option, but since I found that I don't need that option, I haven't
bothered to try to fix it.

--ravyn


-
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: libwrap problems (compiling) and config questions

2001-06-08 Thread Alan W. Rateliff, II

On 07-Jun-01, Jason Bradley Nance said something totally profound about libwrap 
problems (compiling) and config questions that made me ponder...

JBN Hello everyone.
JBN I have hit a snag trying to compile mysql 3.23.38.  After running 
JBN this configure command:

[snip]

JBN If I don't include the --with-libwrap config, then the build completes 
JBN just fine.

I don't know if this will help, but I've successfully compiled MySQL .38 on
Solaris 2.x machines using tcp-wrappers v7.6, using the configure option like
this:

--with-libwrap=/local/home/users/forager/tcpwrapper7.6/

I'm not sure what kind of wrappers RedHat comes with, so this may only be
academic for you.
-- 
   Alan W. Rateliff, II: YourVillage.com
  Assistant Systems Administrator  :   2700 Apalachee Pkwy
  [EMAIL PROTECTED]   :  Tallahassee, FL 32301
(850) 942-7021---
 [EMAIL PROTECTED]  http://support.yourvillage.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




libwrap problems (compiling) and config questions

2001-06-07 Thread Jason Bradley Nance

Hello everyone.
 I have hit a snag trying to compile mysql 3.23.38.  After running 
this configure command:

CFLAGS=-O3 -mpentiumpro CXX=gcc CXXFLAGS=-O3 -mpentiumpro 
-felide-constructors -fno-exceptions -fno-rtti ./configure 
--with-berkeley-db --with-libwrap --with-named-z-lib --without-debug 
--prefix=/usr/local/mysql --enable-assembler 
--with-mysqld-ldflags=-all-static --with-mysqld-user=mysql 
--localstatedir=/var/mysql

...and then doing a make, I get these errors and the build dies:

mysqld.cc: In function `void *handle_connections_sockets (void *)':
/usr/include/tcpd.h:131: too many arguments to function `void sock_host
()'
mysqld.cc:2289: at this point in file
/usr/include/tcpd.h:69: too many arguments to function `int
hosts_access ()'
mysqld.cc:2290: at this point in file
/usr/include/tcpd.h:124: too many arguments to function `char
*eval_client ()'
mysqld.cc:2295: at this point in file
make[3]: *** [mysqld.o] Error 1
make[3]: Leaving directory `/root/mysql-3.23.38/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/mysql-3.23.38/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-3.23.38'
make: *** [all-recursive-am] Error 2

If I don't include the --with-libwrap config, then the build completes 
just fine.

I'm using a Red Hat 7.1 box (with all updates up to today) and kernel 2.4.5.

Also:

The documentation says that the named z config option is 
--with-named-z-lib but if you do ./configure --help, it says the 
option is --with-named-z-libs=ARG (with ARG being required, not 
optional).  So which is it?  Or are those two different config options?

Also, according to ./configure --help, you can't pass any options to 
--with-mysqld-ldflags, but the docs say that you can (=-all-static). 
Which is correct?

Thanks.

j


-
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




problems compiling on solaris 2.7

2001-04-24 Thread Jeff Shipman - SysProg

I'm having problems compiling mysql 3.23.37 on
Solaris 2.7. It gets to the final linking stage
and I get the following error:

/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/libgcc.a: could not read symbols: 
Bad value

Anyone have this happen to them before and/or
have a fix? I've also compiled it on Linux
with no problems. I followed the recommended
configure line in the README.

Thanks in advance

Jeff Shipman   E-Mail: [EMAIL PROTECTED]
Systems Programmer Phone: (505) 835-5748
NMIMT Computer Center  http://www.nmt.edu/~jeff


-
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




Weird - Was: Problems compiling MySQL

2001-02-09 Thread Jamie Krasnoo

Problem: see below.

For some reason mysql doesn't like db to be outside of the directory. It
compiled fine when I moved the db directory in to the mysql source directory
and reconfiged so that it saw the berkeley db library. Has anyone else had
this problem?

Jamie

-Original Message-
From: Jamie Krasnoo [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 9:12 AM
To: MySQL
Subject: Problems compiling MySQL


I've run in to a bit of a problem with compiling MySQL. It compiles fine
without the patched berkeley db. However when I add it in to the config,
either by --with-berkeley-db= or the other two. I get this error. Can
someone please tell me what's going on here and let me know how to get past
this point.

error:

Making all in share
make[3]: Entering directory `/usr/src/mysql-3.23.32/sql/share'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/mysql-3.23.32/sql/share'
make[3]: Entering directory `/usr/src/mysql-3.23.32/sql'
c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr\""
-DDATADIR="\"/usr/var\"" -DSHAREDIR="\"/usr/share/mysql\
""   -DHAVE_CONFIG_H -I/usr/include -I./../include
 -I./../regex-I. -I../include -I.. -I.
  -O3 -DDBUG_OFF   -fno-implicit-templates -c mysqlbinlog.cc
In file included from mysqlbinlog.cc:23:
../include/my_sys.h:170: declaration of `int *__errno_location ()'
throws different exceptions
/usr/include/bits/errno.h:39: than previous declaration `int
*__errno_location () throw ()'
make[3]: *** [mysqlbinlog.o] Error 1
make[3]: Leaving directory `/usr/src/mysql-3.23.32/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/mysql-3.23.32/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql-3.23.32'
make: *** [all-recursive-am] Error 2

config used:

./configure --prefix=/usr --with-raid --with-berkeley-db=/usr

On a RedHat 7.0 system, patched db already installed. Do I need to include
other CFLAGS or CXXFLAGS?

Much appreciated,

Jamie Krasnoo
[EMAIL PROTECTED]

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Jamie Krasnoo (BMaximus) [EMAIL PROTECTED]

mQGiBDpiu/gRBACJ+U9ti3GHIr2oF9emUGPIKiRrpg0MwC+9kyzWm+aGpoNpuRZ6
VH/nLgjAFBr7vsVHkPehoIEYxdTDnq5UE4/HOfWeHeTlm8/Oz8zx4TOAcMrEfYV2
4Ny8g4PyJaeutUcn+nqckDsUQ7mWFcn/3XdA7TrQrm1baRrepubA2uqt+wCgnK0Q
jucnmH5xafdmqNDdAH+7rhED/02ze3B3o8xtcYK+0XYEN0v+XihtuWip6J0zdqMr
P0QTzgGV1BVjpXLnry/po/q9Hs6YiGnVmixIAH1KMZpJD4MG/77WYfwqDpUaaSZn
tCwQkjVHU1BJum9TYuo1Q3auvJaQ5Pg3dE2J3YG2FVaU5veygGfsxltt8WEWEJ3i
f8pLA/9P75/hy51sESmlCzmc5mNL8rBWUisMF9WMosCZkGKz0A1yCC9lZM09dxCw
hTkQvRBkrFwRx2eaFgy7eD40vbkI1Rlaelvx5atvHXOJenpSfShPut6JmND+cehW
6BfqT2ROLBRrSJD3cO1FAHt7dyTgceshgW2g6WtWeP5zzRhRB7QxSmFtaWUgS3Jh
c25vbyAoQk1heGltdXMpIDx3ZWJtYXN0ZXJAbXllYm9hcmQuY29tPohXBBMRAgAX
BQI6Yrv4BQsHCgMEAxUDAgMWAgECF4AACgkQgSA4ibDuKIsstwCgic5D6/qsWsgT
2vfkpSTUF4HL750AoIwGn+pvt6Hms2lAogM/nOSDDNxDuQENBDpivAgQBAC4BNtD
hsawho/Bb8OGw1zq+B8KCEnaWxjEamIlOU/diU9cuuNmoiQkRpHajzcNjQ3O5sxA
GxpAsthOhFeHnDRejDLN8Om7kydB4XdaPW5hqOZFlzNF97cbg2Y+fbscQWtPfRkl
3t/qEemwQZpGtCi7L+yqiXaJoXVEBqtBtlD1twAFEwP+Oz3e0H1eVWh7p5hGp6cN
AJaGYaLHNMsbYw5l1+kUdJ0yxDPkLiTgdcGsbmgBLpnpJUujHOQF6/gWVPhzSzY2
VKqNshhJua+tt94Oo5AMlKCOQDje95Ks7ZdJUAjYKerhfvabDqASREgFhcPD5oXe
UN4Lw7bNy1fI6PMGv1SACDyIRgQYEQIABgUCOmK8CAAKCRCBIDiJsO4oi3RuAJwJ
kiuCZBveRLOFL+7iwlv9FhLNtgCZAYi6NAa98h82BLFi2kpVkm4YCFs=
=1BAm
-END PGP PUBLIC KEY BLOCK-


-
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


-
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