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

[plamo:30272] Re: gcc (c++) 4.3.4



  名倉 です。
 
> ごぶさたしておりました。
> 
> Plamo上でのオープンソースソフトウェアのインストールで困ることは少なかったのですが、
> Plamo 4.7を使い始めてみたら、4.6でmakeできたものがmakeできないことがあり、
> 自力解決が困難です。どなたか原因に心あたりはありませんか。
> 
> 具体例は、antlr (ANother Tool for Language Recognition) 2.7.7
> ( http://www.antlr2.org/download.html にある antlr-2.7.7.tar.gz )
> です。(Antlrはすでにversion 3.2があり、インストール手順がまったく違うのですが、
> これのversion 2に依存しているソフトウェアを使いたかったのでした。)
> 
> Plamo 4.6 (のほぼ初期状態)では、問題なく configure、make、make installできました。
> ところが4.7では、configureは正常に終了しますが、
> makeの途中のC++のコンパイル (lib/cpp/src/CharScanner.cpp のところ)で
> strcasecmpというものが定義されていないというエラーで異常終了します。
> その部分のログを引用します。

  ググってみたら下記URLがヒットしました
   
   http://aur.archlinux.org/packages.php?ID=22676

    --- antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp.orig 2009-01-24 23:23:46.000000000 +0100
    +++ antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp 2009-01-24 23:23:55.000000000 +0100
    @@ -11,6 +11,7 @@
    #include <antlr/config.hpp>

    #include <map>
    +#include <cstring>

    #ifdef HAS_NOT_CCTYPE_H
    #include <ctype.h>

    Comment by: mathieu.clabaut on Sat, 24 Jan 2009 22:10:06 +0000

    Does not build :
    /tmp/yaourt-tmp-clabaut/aur-antlr/antlr/src/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:565: erreur: ‘strcasecmp’ was not declared in this scope

  上記のようにcstringのincludeを追加したら手元のPlamo-4.71rc1上ではコンパイルとおりました。  
 
> なお、4.71rc1も見ましたが、関係するものの更新はなさそうです。
> --
> ますだ こういち
> masuda@xxxxxxxxxxxxx (職場)
> 




Follow-Ups
[plamo:30278] Re: gcc (c++) 4.3.4, MASUDA Kooiti
References
[plamo:30268] gcc (c++) 4.3.4, MASUDA Kooiti

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