Help us understand the problem. What is going on with this article?

compat-gccを使ってmysql4.0をビルド

手順 (CentOS7) mysql4.0.30

yum install -y \
 wget \
 ncurses-devel \
 compat-gcc-44 \
 compat-gcc-44-c++

tar xzf mysql-4.0.30.tar.gz
configure
CC=/usr/bin/gcc44
CXX=/usr/bin/g++44
./configure ()

手順 (CentOS6) mysql4.0.27

yum install -y \
 wget \
 ncurses-devel \
 compat-gcc-34 \
 compat-gcc-34-c++

tar xzf mysql-4.0.27.tar.gz

コンパイル時のエラーを回避

コンパイル時に「my_fast_mutexattr」が定義されていないとエラーが出る場合がある為、
定義を強制してエラーを回避します。
解凍したディレクトリに移動して「mysys/my_thr_init.c」ファイルを修正します。

cd mysql-4.0.27/
vim mysys/my_thr_init.c
mysys/my_thr_init.c
- #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
  pthread_mutexattr_t my_fast_mutexattr;
- #endif
configure
CC=/usr/bin/gcc34
CXX=/usr/bin/g++34
./configure ()
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした