先に gtexinfo.4.13 (texinfo) をビルドします
下記の3つのファイルをダウンロードしてscmcvs (cvs-1.11.23)をビルドしました。
$ cd /usr/pkgsrc/devel/gtexinfo
$ bmake clean
$ bmake
gtexinfo.4.13 のビルドは成功しました。
$ cd /usr/pkgsrc/devel/scmcvs
$ bmake 2>&1 | tee cvs.make.txt
エラーが出てしまいました。
------------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../diff -I/usr/pkg/include -D_ALL_SOURCE -O -I/usr/pkg/include -MT add.o -MD -MP -MF .deps/add.Tpo -c -o add.o add.c
In file included from cvs.h:49,
from add.c:33:
../lib/xsize.h: In function `xsum':
../lib/xsize.h:61: error: `SIZE_MAX' undeclared (first use in this function)
../lib/xsize.h:61: error: (Each undeclared identifier is reported only once
../lib/xsize.h:61: error: for each function it appears in.)
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/scmcvs/work/cvs-1.11.23/src
*** Error code
------------------------------------------------------------------------------
lib/xsize.h ファイルをobache さんのコメント通りに修正しました。
------------------------------------------------------------------------------
#include <limits.h>
#if HAVE_INTTYPES_H
# include <inttypes.h>
-#elif HAVE_STDINT_H
+#endif
+#if HAVE_STDINT_H
# include <stdint.h>
#endif
------------------------------------------------------------------------------
$ bmake clean
$ bmake
$ bmake install
===========================================================================
$NetBSD: MESSAGE,v 1.1 2007/05/27 09:49:50 schmonz Exp $
Set up the master source repository. See the "Setting up the repository"
section of cvs.info for details; the one-line summary is (if you are
putting the repository in /src/master):
$ cvs -d /src/master init
Have all users of the CVS system set the CVSROOT environment
variable appropriately to reflect the placement of your source
repository. If the above example is used, the following commands
can be placed in user's ~/.profile, ~/.bash_profile file; or in the
system-wide /etc/profile:
CVSROOT=/src/master; export CVSROOT
for sh/bash/ksh users, or place the following commands in the user's
~/.login, or system-wide in the /etc/csh.login file:
setenv CVSROOT /src/master
for csh/tcsh users. If these environment variables are not already set
in your current shell, set them now (or source the login script you
just edited).
===========================================================================
=> Registering installation for cvs-1.11.23
cvs-1.11.23 requires installed package zlib-1.2.3
無事にインストールできました。