Other Unix Notes
176
When compiling
mysqld
, there are some
implicit declaration of function
warnings. These
can be ignored.
2.20.5.5. Alpha-DEC-UNIX Notes (Tru64)
If you are using
egcs
1.1.2 on Digital Unix, you should upgrade to
gcc
2.95.2, because
egcs
on DEC
has some serious bugs!
When compiling threaded programs under Digital Unix, the documentation recommends using the
-
pthread
option for
cc
and
cxx
and the
-lmach -lexc
libraries (in addition to
-lpthread
). You
should run
configure
something like this:
CC="cc -pthread" CXX="cxx -pthread -O" \
./configure --with-named-thread-libs="-lpthread -lmach -lexc -lc"
When compiling
mysqld
, you may see a couple of warnings like this:
mysqld.cc: In function void handle_connections()':
mysqld.cc:626: passing long unsigned int *' as argument 3 of
accept(int,sockadddr *, int *)'
You can safely ignore these warnings. They occur because
configure
can detect only errors, not
warnings.
If you start the server directly from the command line, you may have problems with it dying when you
log out. (When you log out, your outstanding processes receive a
SIGHUP
signal.) If so, try starting the
server like this:
nohup mysqld [
options
] &
nohup
causes the command following it to ignore any
SIGHUP
signal sent from the terminal.
Alternatively, start the server by running
mysqld_safe
, which invokes
mysqld
using
nohup
for you.
See
Section 4.3.2, “
mysqld_safe
— MySQL Server Startup Script”
.
If you get a problem when compiling
mysys/get_opt.c
, just remove the
#define _NO_PROTO
line
from the start of that file.
If you are using Compaq's CC compiler, the following
configure
line should work:
CC="cc -pthread"
CFLAGS="-O4 -ansi_alias -ansi_args -fast -inline speed \
-speculate all -arch host"
CXX="cxx -pthread"
CXXFLAGS="-O4 -ansi_alias -ansi_args -fast -inline speed \
-speculate all -arch host -noexceptions -nortti"
export CC CFLAGS CXX CXXFLAGS
./configure \
--prefix=/usr/local/mysql \
--with-low-memory \
--enable-large-files \
--enable-shared=yes \
--with-named-thread-libs="-lpthread -lmach -lexc -lc"
gnumake
If you get a problem with
libtool
when compiling with shared libraries as just shown, when linking
mysql
, you should be able to get around this by issuing these commands:
cd mysql
/bin/sh ../libtool --mode=link cxx -pthread -O3 -DDBUG_OFF \
-O4 -ansi_alias -ansi_args -fast -inline speed \
-speculate all \ -arch host -DUNDEF_HAVE_GETHOSTBYNAME_R \
-o mysql mysql.o readline.o sql_string.o completion_hash.o \
../readline/libreadline.a -lcurses \
../libmysql/.libs/libmysqlclient.so -lm
cd ..
gnumake
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...