Oracle 5.0 Reference Manual page 187

Table of Contents

Advertisement

#if !defined(__STDC__) || __STDC__ != 1
To this:
#if !defined(__STDC__)
If you turn on
__STDC__
header file. This is a Sun bug (broken compiler or broken include file).
pthread.h
If
issues the following error message when you run it, you have tried to compile MySQL with
mysqld
the Sun compiler without enabling the
libc internal error: _rmutex_unlock: rmutex not held
Add
to
and
-mt
CFLAGS
If you are using the SFW version of
to the environment variable
If you are using the
gcc
this, you should recompile
If you get the following error when compiling MySQL with gcc, it means that your
for your version of Solaris:
shell>
gcc -O3 -g -O2 -DDBUG_OFF
./thr_alarm.c: In function `signal_hand':
./thr_alarm.c:556: too many arguments to function `sigwait'
The proper thing to do in this case is to get the newest version of
compiler. At least for Solaris 2.5, almost all binary versions of
gcc
that break all programs that use threads, and possibly other programs as well.
Solaris does not provide static versions of all system libraries
cannot compile MySQL with --static. If you try to do so, you get one of the following errors:
ld: fatal: library -ldl: not found
undefined reference to `dlopen'
cannot find -lrt
If you link your own MySQL client programs, you may see the following error at runtime:
ld.so.1: fatal: libmysqlclient.so.#:
open failed: No such file or directory
This problem can be avoided by one of the following methods:
• Link clients with the
-Wl,r/full/path/to/libmysqlclient.so
• Copy
libmysqclient.so
Add the path name of the directory where
environment variable before running your client.
If you have problems with
have two options:
• If you want to be able to use the compressed communication protocol, you need to get and install
from ftp.gnu.org.
zlib
• Run
with the
configure
If you are using
and have problems with loading user-defined functions (UDFs) into MySQL, try
gcc
adding
to the link line for the UDF.
-lgcc
Solaris Notes
with the
option, the Sun compiler can't compile with the Solaris
-Xc
multi-thread option:
-mt
and recompile.
CXXFLAGS
(which comes with Solaris 8), you must add
gcc
LD_LIBRARY_PATH
available from sunfreeware.com, you may have many problems. To avoid
and GNU
gcc
binutils
-o thr_alarm ...
to /usr/lib.
libmysqlclient.so
trying to link with
configure
--with-named-z-libs=no
167
before running configure.
on the machine where you are running them.
and compile it with your current
gcc
have old, unusable include files
gcc
(libpthreads
is located to the
when you do not have
-lz
option when building MySQL.
/opt/sfw/lib
is not configured
gcc
and libdl), so you
flag rather than with -Lpath).
LD_RUN_PATH
installed, you
zlib

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents