FreeBSD-10.0-CURRENTでpkgngを試す(1)

ノートPCをFreeBSD-10.0-CURRENTにしました。

ついでに次世代パッケージ管理システムである pkgng を試そうと思い、 pkgng - FreeBSD Wikiを参考にして、最新版をとってきてmakeしました。

$ git clone https://github.com/pkgng/pkgng.git
$ cd pkgng
$ make
()
cc  -O2 -pipe  -std=c99 -I/usr/home/murashin/software-work/pkgng/libpkg  -I/usr/home/murashin/software-work/pkgng/libpkg/../external/sqlite  -I/usr/home/murashin/software-work/pkgng/libpkg/../external/libyaml/include -g -O0 -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c usergroup.c -o usergroup.o
cc1: warnings being treated as errors
In file included from usergroup.c:8:
gr_util.h:1: warning: redundant redeclaration of 'gr_copy'
/usr/include/libutil.h:155: warning: previous declaration of 'gr_copy' was here
gr_util.h:2: warning: redundant redeclaration of 'gr_fini'
/usr/include/libutil.h:158: warning: previous declaration of 'gr_fini' was here
gr_util.h:3: warning: redundant redeclaration of 'gr_init'
/usr/include/libutil.h:159: warning: previous declaration of 'gr_init' was here
gr_util.h:4: warning: redundant redeclaration of 'gr_lock'
/usr/include/libutil.h:160: warning: previous declaration of 'gr_lock' was here
gr_util.h:5: warning: redundant redeclaration of 'gr_mkdb'
/usr/include/libutil.h:162: warning: previous declaration of 'gr_mkdb' was here
gr_util.h:6: warning: redundant redeclaration of 'gr_tmp'
/usr/include/libutil.h:163: warning: previous declaration of 'gr_tmp' was here
*** Error code 1

Stop in /usr/home/murashin/software-work/pkgng/libpkg.
*** Error code 1

Stop in /usr/home/murashin/software-work/pkgng.

ところが、こういう具合に、プロトタイプ宣言の重複宣言エラーが出る。
そこで、pkgng/libpkg/gr_util.hの中身を全部削除(空ファイルに)する。そうするとmakeが通る。suして、make installでインストール完了。

今日はここまで。続く、、、、、かも。