mySQL error with query SELECT ovalue FROM nucleus_plugin_option WHERE oid=49 and ocontextid=2: Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

mySQL error with query INSERT INTO nucleus_plugin_option (oid,ocontextid,ovalue) VALUES (49, 2, ''): Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

mySQL error with query SELECT ovalue FROM nucleus_plugin_option WHERE oid=39 and ocontextid=0: Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

mySQL error with query INSERT INTO nucleus_plugin_option (oid,ocontextid,ovalue) VALUES (39, 0, ''): Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

株式会社e-flat開発日誌 » SCPluginの最新版をintel Mac上でビルドする

 
 
mySQL error with query SELECT ovalue FROM nucleus_plugin_option WHERE oid=38 and ocontextid=0: Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

mySQL error with query INSERT INTO nucleus_plugin_option (oid,ocontextid,ovalue) VALUES (38, 0, 'yes'): Table './mavelick/nucleus_plugin_option' is marked as crashed and should be repaired

Svn on Mac
MacOS XのFinderへSubversionクライアント機能を組み込むSCPlugin。
既に何個か記事を書いているが、実は自分で使っているMacBook上ではビルドが出来ない状態が続いていた。

が、いろいろ調べて、ついにビルドする事が出来るようになった。
これで最新のtrunk版を追っかけていける。
手順は以下の通り。ビルドにはXCodeが必要。


1. ソースコードをレポジトリからチェックアウトしてくる
ターミナルを使って、~/で以下を実行。
$ svn checkout http://scplugin.tigris.org/svn/scplugin/tr
unk scplugin --username guest



2. ビルドするのにシンボリックリンクを張っておく
ビルドするのに必要だとINSTRATION.txtに書いてある。
$ sudo ln -s /usr/bin/grep /opt/local/bin
$ sudo ln -s /Users /Developer/SDKs/MacOSX10.4u.sdk/Users



3. 関連ライブラリをビルドする
dbやらsubversionやらをビルドする。
$ cd svn-mac-build
$ make build-1.4

だが、これの途中のdb-4.2.52のconfigure時に失敗する。
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

との事で、config.logを見ると、
/usr/bin/ld: -syslibroot: multiply specified

と言われている。
原因は、makeファイル内でインクルードしているuniversal.setupファイル内で、
ROOT=/Developer/SDKs/MacOSX10.4u.sdk
export CFLAGS="-isysroot $ROOT -arch i386 -arch ppc"
export LDFLAGS="-isysroot $ROOT -arch i386 -arch ppc"

となっており、これによりisysrootがgccに2回設定されてしまうため。
よって、LDLAGSの方を削り、
export LDFLAGS="-arch i386 -arch ppc"

とする事で、無事ビルドが出来るようになった。


4. XCodeでSCPlugin本体をビルドする
scpluginのソースディレクトリのトップにある、SCPlugin.xcodeprojを開き、ターゲットを"All"に設定しビルドする。

が、やはりここでも失敗する。
SCPluginCmdというターゲットのビルド時に1万近いコンパイルエラーになってしまう。

これは、SCPluginCmdはCarbonアプリケーションであるのに、なぜかCocoaフレームワークのヘッダファイルがインクルードされてしまい、Objective-Cの文法がC++コンパイラにてエラーとなるためだった。
なぜCocoaフレームワークのヘッダファイルが?と調べてみると、どうやら原因はプレフィックスヘッダファイルとして勝手にCocoa用のファイルが用いられてしまう事が原因だった。

Apple曰く

コンパイラでは、ターゲットの各ソースファイルをコンパイルする前にプレフィックスヘッダファイルをインクルードするので、プレフィックスヘッダの内容と、ターゲットで使用されるC言語の表現形式に互換性がなければなりません。たとえば、ターゲットでCocoaを使用していて、Objective-CとCの両方のソースファイルが含まれる場合、次の例に示すように、両方の言語の表現形式と互換性を持つようにするために、プレフィックスヘッダファイルには、適切なガードマクロを含めなければなりません:
 #ifdef __OBJC__
 #import
 #endif
 #define MY_CUSTOM_MACRO 1
 #include "MyCommonHeaderContainingPlainC.h"


無指定だとCocoa.hがインクルードされてしまうのか?
プロジェクト内のソースコードを調べてみると、プリフィックスヘッダとして
SCPluginUIDaemon/SCPluginUIDaemon_Prefix.hが用意されていた。
だが、プロジェクトの設定ではそれを用いるように設定されていないので、SCPluginCmdのビルドの設定で以下を変更

プレフィックスヘッダ : SCPluginUIDaemon/SCPluginUIDaemon_Prefix.h
プレフィックスヘッダをプリコンパイルする: Yes


この設定の変更によりXCodeでのビルドも無事出来た。

5. インストール
まず、すでにSCPluginをインストールしている場合は、アクティビティモニタを使ってSCPluginUIDaemonを終了させる。
そして、ビルドできたSCPlugin.pluginファイルを、~/Library/Contextual Menu Items
へコピーし、Finder(あるいはMacごと)再起動すれば最新のSCPluginが使えるようになります。

新バージョンは、以前動かなかったInfoなどのコマンドも正常に動作するようになっていていい感じ。
03/29
Postet by: yatsuo
Category: Subversion
zukvycugiweb1 http://escortstd.com/people... <a href = "http://escortstd.com/people..." >adult travel escort</a> [url=http://escortstd.com/people...] adult web cam dating [/url] [url] http://escortstd.com/people... [/url] [a] http://escortstd.com/people... [/a] zadvycugiweb1
  • by iivycugiweb1
  • at 07/24 02:37
developers away surface issues browsers unfccc variability rise
  • by devannapri
  • at 09/10 14:04
Hello! acddgdb interesting acddgdb site!
  • by Pharmc819
  • at 02/02 15:00
Very nice site!
  • by Pharmd492
  • at 02/02 15:01
Very nice site!
  • by Pharme110
  • at 02/02 15:02
Hello! ddaeadg interesting ddaeadg site!
  • by Pharmd273
  • at 02/21 22:27
zukjoqusolaa0 http://dallasescorts.com <a href = "http://bostonescorts.com" >boston escorts</a> [url=http://escortstd.com] adult swingers [/url] [url] http://adultmeetonline.com [/url] [a] http://escservcom.com [/a] zadjoqusolaa0
  • by iijoqusolaa0
  • at 04/15 12:25
zukjoqusolab1 http://escortstd.com <a href = "http://dating-atlanta.co.cc" >dating atlanta</a> [url=http://escservcom.com] online escorts [/url] [url] http://dallasescorts.com [/url] [a] http://adultmeetonline.com [/a] zadjoqusolab1
  • by iijoqusolab1
  • at 04/15 12:26
zukdepogonya0 http://escortstd.com <a href = "http://adultmeetonline.com" >online dating</a> [url=http://escservcom.com] online escorts [/url] [url] http://bostonescorts.com [/url] [a] http://dating-atlanta.co.cc [/a] zaddepogonya0
  • by iidepogonya0
  • at 04/15 14:08
zukdepogonyb1 http://adultmeetonline.com <a href = "http://dallasescorts.com" >dallas escorts</a> [url=http://bostonescorts.com] boston escorts [/url] [url] http://dating-atlanta.co.cc [/url] [a] http://escservcom.com [/a] zaddepogonyb1
  • by iidepogonyb1
  • at 04/15 14:08
A gink begins sneering his wisdom teeth the initially without surcease he bites on holiday more than he can chew.
  • by snowboards
  • at 06/18 16:08
To be a good benign being is to procure a kind of openness to the far-out, an gift to guardianship uncertain things beyond your own control, that can lead you to be shattered in uncommonly exceptionally circumstances pro which you were not to blame. That says something remarkably weighty thither the condition of the ethical passion: that it is based on a corporation in the uncertain and on a willingness to be exposed; it's based on being more like a shop than like a sparkler, something fairly tenuous, but whose mere particular attraction is inseparable from that fragility.
  • by Philip Stein Ladies Watches
  • at 06/23 23:02
Hello! ccddcbf interesting ccddcbf site!
  • by Pharme153
  • at 07/05 18:01
Very nice site!
  • by Pharme243
  • at 07/05 18:02
Vex ferments the humors, casts them into their meet channels, throws bad redundancies, and helps cosmos in those secret distributions, without which the fuselage cannot subsist in its vigor, nor the soul act with cheerfulness.
  • by remedios caseros impotencia
  • at 07/05 23:16