Fedora 10 32bit

  • ページ: 動作報告
  • 投稿者: wakakumo?
  • 状態: 失敗
  • ptexliveバージョン:20100302
  • 投稿日: 2010-03-03 (水) 03:15:21

必要パッケージ

ptexlive-20100227をコンパイルできる環境

ptexlive.cfg

make[1]: ディレクトリ `/usr/local/src/ptexlive/ptexlive-20100302' に入ります
`which bash` ./1check-archive.sh
2010年  3月  3日 水曜日 03:03:30 JST
------------------------------------------------------------------------
------------------------------------------------------------------------
[reading]    ../ptexlive.cfg
Linux xxx.xxx.xxx 2.6.27.41-170.2.117.fc10.i686.PAE #1 SMP Thu Dec 10 10:48:30 EST 2009 i686 i686 i386 GNU/Linux

PATH="/var/tmp/ptexlive2009/texlive-20091011-source/inst/bin/:
/usr/local/texlive/p2009/bin/i686-pc-linux-gnu:/usr/lib/qt-3.3/bin:
/usr/local/texlive/p2009/bin/i686-pc-linux-gnu:/usr/kerberos/bin:
/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:
/usr/sbin:/sbin"

ISO_DIR="/mnt/texlive"
TEXLIVE_DIR="/usr/local/texlive/2009"
PREFIX="/usr/local/texlive/p2009"

TMP_PREFIX="/var/tmp/ptexlive2009"
TEXSRC_EXTRACTED=""
SRC_TAR="/mnt/texlive/source/texlive-20091011-source.tar.xz"
TEXMFDIST=""

EXTRA_CMAP=""
EXTRA_TRUETYPE="/usr/share/fonts/japanese/dynafont;/usr/share/fonts/vlgothic"
EXTRA_OPENTYPE=""

BASH="/bin/bash"
MAKE="gmake"
PATCH="patch"
MD5="md5sum"
XZ="xz -cd"
KANJI_CODE="UTF8"
SYSTEM_NKF="yes"
STRIP="no"

------------------------------------------------------------------------
[searching]  md5sum     -- /usr/bin/md5sum
[searching]  bash       -- /bin/bash
[searching]  ed         -- /bin/ed
[searching]  sed        -- /bin/sed
[searching]  egrep      -- /bin/egrep
[searching]  unzip      -- /usr/bin/unzip
[searching]  gzip       -- /usr/bin/gzip
[searching]  perl       -- /usr/bin/perl

メッセージ

pxdviがコンパイルできません。freetypeに関するエラーが出るようです。以下にエラー行以降の出力を貼ります。

In file included from ../../../texk/pxdvik/ft2.c:7:
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
../../../texk/pxdvik/ft2.c:8:10: error: #include expects "FILENAME" or <FILENAME>
../../../texk/pxdvik/ft2.c:9:10: error: #include expects "FILENAME" or <FILENAME>
In file included from ../../../texk/pxdvik/ft2.c:16:
../../../texk/pxdvik/ft2vert.h:3: error: expected ')' before 'face'
../../../texk/pxdvik/ft2vert.h:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ft2vert_get_gid'
../../../texk/pxdvik/ft2.c:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'library'
../../../texk/pxdvik/ft2.c:69: error: expected specifier-qualifier-list before 'FT_Face'
../../../texk/pxdvik/ft2.c: In function 'ft2_init':
../../../texk/pxdvik/ft2.c:80: warning: implicit declaration of function 'FT_Init_FreeType'
../../../texk/pxdvik/ft2.c:80: error: 'library' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:80: error: (Each undeclared identifier is reported only once
../../../texk/pxdvik/ft2.c:80: error: for each function it appears in.)
../../../texk/pxdvik/ft2.c: In function 'ft2_open_font':
../../../texk/pxdvik/ft2.c:93: error: 'library' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:106: warning: implicit declaration of function 'FT_New_Face'
../../../texk/pxdvik/ft2.c:106: error: 'struct ft_font' has no member named 'face'
../../../texk/pxdvik/ft2.c:112: error: 'struct ft_font' has no member named 'encoding'
../../../texk/pxdvik/ft2.c:114: error: 'struct ft_font' has no member named 'ft2vert'
../../../texk/pxdvik/ft2.c:114: warning: implicit declaration of function 'ft2vert_init'
../../../texk/pxdvik/ft2.c:114: error: 'struct ft_font' has no member named 'face'
../../../texk/pxdvik/ft2.c:116: error: 'struct ft_font' has no member named 'bold'
../../../texk/pxdvik/ft2.c:123: error: 'FT_Matrix' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:123: error: expected ';' before 'matrix'
../../../texk/pxdvik/ft2.c:124: error: 'matrix' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:128: warning: implicit declaration of function 'FT_Set_Transform'
../../../texk/pxdvik/ft2.c:128: error: 'struct ft_font' has no member named 'face'
../../../texk/pxdvik/ft2.c: At top level:
../../../texk/pxdvik/ft2.c:135: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glyph_index'
../../../texk/pxdvik/ft2.c:152: error: expected declaration specifiers or '...' before 'FT_GlyphSlot'
../../../texk/pxdvik/ft2.c: In function 'glyph_to_bitmap':
../../../texk/pxdvik/ft2.c:158: warning: pointer targets in assignment differ in signedness
../../../texk/pxdvik/ft2.c:159: error: 'g' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c: In function 'ft2_get_bitmap':
../../../texk/pxdvik/ft2.c:217: error: 'FT_Face' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:217: error: expected ';' before 'face'
../../../texk/pxdvik/ft2.c:220: error: 'face' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:222: error: 'struct ft_font' has no member named 'width'
../../../texk/pxdvik/ft2.c:222: error: 'struct ft_font' has no member named 'height'
../../../texk/pxdvik/ft2.c:223: warning: implicit declaration of function 'FT_Set_Pixel_Sizes'
../../../texk/pxdvik/ft2.c:224: error: 'struct ft_font' has no member named 'width'
../../../texk/pxdvik/ft2.c:225: error: 'struct ft_font' has no member named 'height'
../../../texk/pxdvik/ft2.c:226: error: 'struct ft_font' has no member named 'ascend'
../../../texk/pxdvik/ft2.c:231: warning: implicit declaration of function 'FT_Load_Glyph'
../../../texk/pxdvik/ft2.c:231: warning: implicit declaration of function 'glyph_index'
../../../texk/pxdvik/ft2.c:231: error: 'FT_LOAD_DEFAULT' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:238: error: 'struct ft_font' has no member named 'bold'
../../../texk/pxdvik/ft2.c:238: warning: implicit declaration of function 'FT_GlyphSlot_Embolden'
../../../texk/pxdvik/ft2.c:239: warning: implicit declaration of function 'FT_Render_Glyph'
../../../texk/pxdvik/ft2.c:239: error: 'FT_RENDER_MODE_MONO' undeclared (first use in this function)
../../../texk/pxdvik/ft2.c:245: error: 'struct ft_font' has no member named 'ascend'
../../../texk/pxdvik/ft2.c:245: error: too many arguments to function 'glyph_to_bitmap'
../../../texk/pxdvik/ft2.c:246: error: 'struct ft_font' has no member named 'ascend'
gmake[7]: *** [ft2.o] Error 1
gmake[7]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/pxdvik'
gmake[6]: *** [all-recursive] Error 1
gmake[6]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/pxdvik'
gmake[5]: *** [all] Error 2
gmake[5]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/pxdvik'
gmake[4]: *** [subtexk] Error 1
gmake[4]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work'

real	7m45.946s
user	5m24.178s
sys	1m6.208s
+ echo 2
find: `/var/tmp/ptexlive2009/texlive-20091011-source/inst/bin': No such file or directory
./Build: Build failed, no executables under /var/tmp/ptexlive2009/texlive-20091011-source/inst/bin.
done Wed Mar 3 03:11:45 JST 2010
make[1]: *** [stage3] エラー 2
make[1]: ディレクトリ `/usr/local/src/ptexlive/ptexlive-20100302' から出ます

  • いろいろ試行錯誤していたら、ptexlive.cfgで
    CPPFLAGS="-I/usr/include/freetype2"
    export CPPFLAGS
    というふうにすると、エラーなくコンパイルすることができました。pxdviでの縦書き表示、pdvipsでの変換も問題ありませんでした。 -- wakakumo 2010-03-03 (水) 04:09:23
  • freetype2 には freetype-config というコマンドが付いていて、この出力を --with-freetype2-include オプションに加えれば、ちゃんと動くハズですし、TL2009 からは configure で自動検出されているはずなのですが、それがうまく動いてないようですね。試行錯誤していただいた後にお知らせするのは心苦しいのですが、ptexlive (for TL2008) では
    ### 次の4行は同時に指定すること
    #if freetype-config --ftversion > /dev/null 2>&1; then
    #conf_option --with-system-freetype2
    #conf_option --with-freetype2-include=`freetype-config --cflags | sed -e 's/-I//' -e 's/ .*//'`
    #fi
    としていたので、この記述を復活させれば当座は動くようになるとは思うのですが、手元では正常に動いてしまってて、どうしたものかと言う感じです。 -- 土村 2010-03-04 (木) 09:30:30
  • そう言えば、"freetype-config --cflags" の出力が
    -I/usr/include/freetype2
    のようならいいのですが、
    -I/usr/include/freetype2 -I/hoge/hoge/freetype2
    のように2個以上並ぶと誤判定をしてしまう可能性も考えられます。そちらでの出力をお教えいただけませんでしょうか。 -- 土村 2010-03-04 (木) 09:34:16
  • 原因がわかった気がします。内蔵の freetype2 を使った時に、うまくオプションが渡ってないみたいです。 -- 土村 2010-03-04 (木) 10:27:24
  • freetype-config --cflags の出力は -I/usr/include/freetype2 と、1つだけ得られました。 -- wakakumo 2010-03-04 (木) 14:53:05
  • ありがとうございます。そこは関係ないのですね。もうひとつ原因がわかりましたので、対策中です。 -- 土村 2010-03-04 (木) 17:55:56
  • 内蔵の FreeType2 をコンパイルしてませんでした。本日版で直しておきました。 -- 土村 2010-03-04 (木) 20:46:31
  • ptexlive-20100304でCPPFLAGSの指定なくコンパイルしてpxdviのコンパイルができることを確認しました。ありがとうございました。また、同様にfreetypeの問題でコンパイルできなかったと思われるdvipngもコンパイルできるようになっていました。 -- wakakumo 2010-03-05 (金) 00:56:18


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-03-05 (金) 00:56:18 (5163d)