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

[plamo:22867] Re: Plamo-4.x とEPSON のプリンタ



こじま@ちょっとだけ,です.

From: nobuhide shimizu <nobushim@js3.so-net.ne.jp>
Subject: [plamo:22866] Re: Plamo-4.x と EPSON のプリンタ
Date: Mon, 24 May 2004 20:08:31 +0900

> > gcc  -g -O2 -Wall  -o dtrfilter  img.o pfpng.o main.o -ldl -lm ./libdtr.a -lpthread -ldl 
> > ./libdtr.a(imgdetect_pips.o)(.text+0x9f): In function `OutputMemAtBmp':
> > : undefined reference to `__builtin_new'
> > ./libdtr.a(imgdetect_pips.o)(.text+0x3e2): In function `OutputMemAtBmp':
> > : undefined reference to `__builtin_delete'
> > ./libdtr.a(imgdetect_pips.o)(.text+0x3f2): In function `OutputMemAtBmp':
> > : undefined reference to `__rethrow'
> > ./libdtr.a(imgdetect.o)(.text+0x39e): In function `FUNC006::~FUNC006(void)':
> > : undefined reference to `__builtin_delete'
> > collect2: ld returned 1 exit status
> > make[2]: *** [dtrfilter] Error 1
> > make[2]: Leaving directory `/home/epson/pips890-2.5.2/dtrfilter'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/epson/pips890-2.5.2'
> > make: *** [all-recursive-am] Error 2
> 
> 手もとのgcc バージョン 3.2.2 20030222 
>         gcc バージョン 3.3.2 20040119
> でも同じでした。
> gcc 2.95でOKなら
> libdtr.aのソースはどうかいてるかわかりませんが(ないので)、
> __builtin_new ,__builtin_deleteの書きかたが、曖昧なのではないですか。
> #gcc3のチェックにかかってしまう。
> 

これは「書き方が曖昧」というよりは,「本来はアプリが使うべきではないラ
イブラリの内部機能を使っていること」が問題なんじゃないかな?

ソースが公開されていない部分なので詳細は不明ですが,関数名とかから推測
するに,メモリの割り当てや開放回りの処理を効率化するために gcc の内部
コードを呼ぶような部分があって,そこが gcc のバージョンアップに伴なっ
て非互換になっているんじゃないかという気がします.

> > それから、Plamo-3.x 上で makepkg したファイルが有りましたので、試し
> > に Plamo-4.x に installpkg し、設定してみたところ、印刷できました。
> > 何か不思議な気がします。

ふむ,,これで解決するなら,リンク時に -lgcc_s とか付ければ何とかなる
のかも知れない.

-------
こじま

Follow-Ups
[plamo:22874] Re: Plamo-4.x とEPSON のプリンタ, nobuhide shimizu
[plamo:22885] Re: Plamo-4.x とEPSON のプリンタ, SAWATARI Kosuke
References
[plamo:22840] Plamo-4.x とEPSONのプリンタ, SAWATARI Kosuke
[plamo:22866] Re: Plamo-4.x とEPSONのプリンタ, nobuhide shimizu

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