Google
 

Tuesday, July 21, 2009

Error gtar และ autoconf262

วันนี้มีแผนจะทำการ upgrade gtar เพื่อป้องกัน vulnerablity.

make && make install ก็เจอ error

autoconf-2.62.texi:19219: Unknown command `'.
autoconf-2.62.texi:19231: Unknown command `'.
autoconf-2.62.texi:19305: Unknown command `'.
autoconf-2.62.texi:20258: Unknown command `'.
makeinfo: Removing output file `autoconf-2.62.info' due to errors; use --force to preserve.
gmake[2]: *** [autoconf-2.62.info] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62'
gmake: *** [all] Error 2
*** Error code 1


แก้ไขโดย เพิ่มข้อความ 2 บรรทัดนี้ในไฟล์ Makefile
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
CONFIGURE_ENV+= MAKEINFO="${LOCALBASE}/bin/makeinfo"

จากนั้น compile ใหม่ ผ่านฉลุย

เมื่อ install gtar พบ error ดังนี้
./tar.texi:3377: Unknown command `headitem'.
./tar.texi:6563: Unknown command `headitem'.
./tar.texi:7290: Unknown command `headitem'.
./tar.texi:7306: Unknown command `headitem'.
./tar.texi:8364: Unknown command `headitem'.
./tar.texi:8501: Unknown command `headitem'.
./tar.texi:9203: Unknown command `headitem'.
./tar.texi:9230: Unknown command `headitem'.
./tar.texi:9412: Unknown command `headitem'.
./sparse.texi:49: Unknown command `headitem'.
./sparse.texi:67: Unknown command `headitem'.
./sparse.texi:79: Unknown command `headitem'.
./snapshot.texi:120: Unknown command `headitem'.
makeinfo: Removing output file `./tar.info' due to errors; use --force to preserve.
*** Error code 1


เกิดจาก makeinfo เวอร์ชั่นเก่าเกินไป เนื่องจากเซิร์ฟเวอร์นี้มี makeinfo 2 version แก้ไขโดย rename makeinfo ใน /usr/bin/makeinfo /usr/bin/makeinfo.org แล้วทำ symbolic link กลับ

จากนั้น make && make install ผ่านฉลุย

ข้อมูลเพิ่มเติมเกี่ยวกับ autoconf : http://1nixadmin.com/freebsd-autoconf262-woes-and-fi-35.htm

No comments: