Oracle 5.0 Reference Manual page 145

Table of Contents

Advertisement

shell>
CC=gcc
shell>
CFLAGS=-O3
shell>
CXX=gcc
shell>
CXXFLAGS=-O3
shell>
export CC CFLAGS CXX CXXFLAGS
To see what flags you might need to specify, invoke
option.
• If you get errors such as those shown here when compiling mysqld,
detect the type of the last argument to accept(), getsockname(), or getpeername():
cxx: Error: mysqld.cc, line 645: In this statement, the referenced
type of the pointer value ''length'' is ''unsigned long'',
which is not compatible with ''int''.
new_sock = accept(sock, (struct sockaddr *)&cAddr, &length);
To fix this, edit the
config.h
/* Define as the base type of the last arg to accept */
#define SOCKET_SIZE_TYPE XXX
Change
to
XXX
size_t
you run
configure
• If your compile fails with errors such as any of the following, you must upgrade your version of
to GNU make:
make: Fatal error in reader: Makefile, line 18:
Badly formed macro assignment
Or:
make: file `Makefile' line 18: Must be a separator (:
Or:
pthread.h: No such file or directory
Solaris and FreeBSD are known to have troublesome
GNU
3.75 is known to work.
make
• The
file is generated from sql_yacc.yy. Normally, the build process does not need
sql_yacc.cc
to create
sql_yacc.cc
to re-create it, you might encounter this error:
"sql_yacc.yy", line
This is a sign that your version of
version of yacc) and use that instead.
Versions of
older than 1.75 may report this error:
bison
sql_yacc.yy:#####: fatal error: maximum table size (32767) exceeded
The maximum table size is not actually exceeded; the error is caused by bugs in older versions of
bison.
• On Debian Linux 3.0, you need to install
MySQL with Berkeley DB support.
• If you get a compilation error on Linux (for example, SuSE Linux 8.1 or Red Hat Linux 7.3) similar to
the following one, you probably do not have
Dealing with Problems Compiling MySQL
file (which is generated by configure). Look for these lines:
or int, depending on your operating system. (You must do this each time
because
regenerates config.h.)
configure
because MySQL comes with a pregenerated copy. However, if you do need
xxx
fatal: default action causes potential...
is deficient. You probably need to install
yacc
gawk
125
mysql_config
programs.
make
instead of the default
installed:
g++
with the
[371]
--cflags
did not correctly
configure
(the GNU
bison
if you want to compile
mawk
make

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents