[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:27098] Re: Plamo4.2でmysql-5.0.20がコンパイルできない?



From: Toyoaki Hatsukano <toyo-m@mars.toy-z.net>
Subject: [plamo:27096] Plamo4.2でmysql-5.0.20がコンパイルできない?
Date: Wed, 19 Apr 2006 01:31:22 +0900

> Plamo4.2でDB環境を作ろうとおもいMySQL5を入れようとしたのですが
> 次のエラーが出てコンパイルが通りません。
> 
> Plamo4.02(素の状態)では、同じコンフィグでコンパイルが通るのですが
> Plamo4.2で原因になる変化があったのでしょうか?
> 
> 確認したこと
> Plamo4.2  glibc 2.3.5  gcc 3.4.3
>      /usr/include/asm/ は実体
> Plamo4.02       2.3.2  gcc 3.3.6
>      /usr/include/asm/ は/usr/src/linux/include/asmへのリンク

詳細は追えてないですが,glibc や gcc よりもカーネル 2.4/2.6 の違いのよ
うな気がする.

> エラー
> ---ここから
> In file included from /usr/include/asm/atomic.h:6,
>                  from ../include/my_global.h:318,
>                  from mysys_priv.h:17,
>                  from my_new.cc:22:
> /usr/include/asm/processor.h: In function `void set_in_cr4(long unsigned
> int)':
> /usr/include/asm/processor.h:235: error: `read_cr4' undeclared (first
> use this function)

read_cr4 は /usr/include/asm/system.h で定義されているのだけど,#ifdef
__KERNEL__ でくくられていますね.本来,このヘンのインクルードファイルは
アプリから直接操作すべきではないのだけど,高速化のためにかなり奥の方の
機能まで使っているのかな? > MySQL

多分,configure する前に setenv CXXFLAGS -D__KERNEL__ みたいな環境変数
を指定してやればこのエラーは回避できそうだけど,今度は TIMEZONE 回りで
エラーが出てますね.

g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" -DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../include -I../regex -I.      -DDBUG_OFF -D__KERNEL__   -fno-implicit-templates -fno-exceptions -fno-rtti -c -I../innobase/include -I../include -I../include -I../regex -I.   -DTZINFO2SQL mysql_tzinfo_to_sql.cc
mysql_tzinfo_to_sql.cc: In function `my_bool tz_load(const char*, TIME_ZONE_INFO*, MEM_ROOT*)':
mysql_tzinfo_to_sql.cc:171: error: statement-expressions are allowed only inside functions
mysql_tzinfo_to_sql.cc:171: error: `_x' undeclared (first use this function)
mysql_tzinfo_to_sql.cc:171: error: (未宣言変数については、それが関数内で最初に現われた時だけ報告されます。)
mysql_tzinfo_to_sql.cc:171: error: `_y' undeclared (first use this function)
mysql_tzinfo_to_sql.cc:179: error: 'union tz_load(const char*, TIME_ZONE_INFO*, MEM_ROOT*)::<anonymous>' has no member named 'buf'
mysql_tzinfo_to_sql.cc:179: error: 'union tz_load(const char*, TIME_ZONE_INFO*, MEM_ROOT*)::<anonymous>' has no member named 'buf'

こっちは何が原因かよく分からんなぁ..

------
こじま

Follow-Ups
[plamo:27100] Re: Plamo4.2でmysql-5.0.20がコンパイルできない?, KOJIMA Mitsuhiro
References
[plamo:27096] Plamo4.2でmysql-5.0.20がコンパイルできない?, Toyoaki Hatsukano

[検索ページ] [メール一覧]
Plamo ML 公開システム