Re: upTeX-0.29

名前: デビ丸
日時: 2010-02-02 17:26:56
IPアドレス: 150.59.48.*

>>54446 お世話になります。見落してるのかもわかりませんが最近のLinuxの環境では getline が二重定義になってしまうのですが対応してないのでしょうか。 ptexlive では対策されているようですが web2c/cpascal.h, dvipsk/afm2tfm.c, updvi2tty/dvistuff.c ぐらいに下記の修正する必要があるように思います。 +/* Apparently POSIX 2008 has getline and glibc 2.9.90 exports it. + tangle, weave, et al. use that symbol; try to define it away so + something that a standard won't usurp. */ +#ifdef getline +#undef getline +#endif +#define getline web2c_getline + また TeXLive2009 の環境下では(static link してるのに?)kpathsea5 になった影響で動かなくなるようです。fontmap.c に --- texlive-bin-2007.dfsg.2.orig/build/tetex-src-3.0/texk/kpathsea/fontmap.c 2009-12-19 09:40:11.000000000 +0900 +++ texlive-bin-2007.dfsg.2/build/tetex-src-3.0/texk/kpathsea/fontmap.c 2009-12-19 09:40:59.000000000 +0900 @@ -84,7 +84,7 @@ while ((orig_l = read_line (f)) != NULL) { string filename; - string l = orig_l; + string l = orig_l; /* save for free() */ string comment_loc = strrchr (l, '%'); if (!comment_loc) { comment_loc = strstr (l, "@c"); @@ -137,7 +137,7 @@ } } - free (l); + free (orig_l); } xfclose (f, map_filename); のようなパッチあてると回避できるようです。 # Web でコードを書いてもグチャグチャになる気がしますが良く知らないので # ご容赦ください。また既知でしたら読み捨てください。

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)