[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: failed to install of ja-mh6-3.03 (mail/ja-mh)
SUNAGAWA さん、今野さん
ありがとうございます。
In massage <200401151529.i0FFTePt019242@mail.mk.bsdclub.org>, you wrote:
> stdarg.h を利用するようにするパッチは、最近の FreeBSD 用 ports
> collection へ commit しましたので、そっちから持ってくると楽だと
> 思います。
>
> http://www.jp.freebsd.org/cgi/cvsweb.cgi/ports/japanese/mh/
>
> で files の下あたりをみてください。
# make patch
のあと、ここにありました sbr/concat.c と h/mh.h の patch をあてて
# make
# make install
でなんとかインストール出来たようです。それほど丁寧に調べたわけでは
ないのですが、基本的に動いています。
gcc 3.3 を使ってコンパイルする時だけ、この patch があたるような
仕組みがあるといいのですが。
以前として make install での vmh.c のエラーは出ています。config.log と
config.status をみたのですが、よく分からなかったので、
下に付けます。また、長くてすみません。
----- config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:884: checking host system type
configure:912: checking for gcc
configure:1025: checking whether the C compiler (cc -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works
configure:1041: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:1067: checking whether the C compiler (cc -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler
configure:1072: checking whether we are using GNU C
configure:1081: cc -E conftest.c
configure:1100: checking whether cc accepts -g
configure:1132: checking how to run the C preprocessor
configure:1153: cc -E conftest.c >/dev/null 2>conftest.out
configure:1213: checking whether cc needs -traditional
configure:1238:20: termio.h: No such file or directory
configure:1263: checking for mawk
configure:1295: checking for ranlib
configure:1473: checking for write
configure:1513: checking for Mail
configure:1554: checking for ps
configure:1592: checking for chown
configure:1631: checking for sendmail
configure:1674: checking for jless
configure:1714: checking for broken vi
configure:1742: checking for gethostbyname
configure:1770: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:1884: checking for socket
configure:1912: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:2319: checking whether curses.h is ncurses
configure:2334: cc -c -O2 conftest.c 1>&5
configure:2356: checking for tgetnum in -lcurses
configure:2369: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c -lcurses 1>&5
configure:2534: checking for readline
configure:2547: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c -lreadline -lcurses 1>&5
ld: cannot find -lreadline
configure: failed program was:
#line 2539 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <readline/readline.h>
int main() {
CPPFunction x; readline("");
; return 0; }
configure:2571: checking for dirent.h that defines DIR
configure:2584: cc -c -O2 conftest.c 1>&5
configure:2609: checking for opendir in -ldir
configure:2628: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c -ldir 1>&5
ld: cannot find -ldir
configure: failed program was:
#line 2617 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();
int main() {
opendir()
; return 0; }
configure:2692: checking for ANSI C header files
configure:2705: cc -E conftest.c >/dev/null 2>conftest.out
configure:2772: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:2796: checking for sys/wait.h that is POSIX.1 compatible
configure:2817: cc -c -O2 conftest.c 1>&5
configure:2842: checking for fcntl.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2842: checking for ndbm.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2842: checking for shadow.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2848:20: shadow.h: No such file or directory
configure: failed program was:
#line 2847 "configure"
#include "confdefs.h"
#include <shadow.h>
configure:2842: checking for strings.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2842: checking for sys/ioctl.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2842: checking for sys/param.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2842: checking for unistd.h
configure:2852: cc -E conftest.c >/dev/null 2>conftest.out
configure:2903: checking for working const
configure:2957: cc -c -O2 conftest.c 1>&5
configure:2978: checking for st_blksize in struct stat
configure:2991: cc -c -O2 conftest.c 1>&5
configure:3012: checking for sys_siglist declaration in signal.h or unistd.h
configure:3029: cc -c -O2 conftest.c 1>&5
configure: In function `main':
configure:3025: warning: initialization discards qualifiers from pointer target type
configure:3050: checking whether time.h and sys/time.h may both be included
configure:3064: cc -c -O2 conftest.c 1>&5
configure:3085: checking whether struct tm is in sys/time.h or time.h
configure:3098: cc -c -O2 conftest.c 1>&5
configure:3129: cc -c -O2 conftest.c 1>&5
configure:3148: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3161: checking for old load
configure:3174: cc -c -O2 conftest.c 1>&5 ; ld -x -r conftest.o
configure:3219: checking return type of signal handlers
configure:3241: cc -c -O2 conftest.c 1>&5
configure:3263: checking for bcopy
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for fcntl
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for flock
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for getdtablesize
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for lockf
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for rename
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for rindex
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3275: warning: conflicting types for built-in function `rindex'
configure:3263: checking for ruserpass
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
/var/tmp//ccWjm7Ui.o(.text+0xa): In function `main':
: undefined reference to `ruserpass'
configure: failed program was:
#line 3268 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char ruserpass(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char ruserpass();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_ruserpass) || defined (__stub___ruserpass)
choke me
#else
ruserpass();
#endif
; return 0; }
configure:3263: checking for _ruserpass
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
/var/tmp//ccin0fx8.o(.text+0xa): In function `main':
: undefined reference to `_ruserpass'
configure: failed program was:
#line 3268 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _ruserpass(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _ruserpass();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__ruserpass) || defined (__stub____ruserpass)
choke me
#else
_ruserpass();
#endif
; return 0; }
configure:3263: checking for seteuid
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for setreuid
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for sigblock
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3263: checking for vsprintf
configure:3291: cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c 1>&5
configure:3275: warning: conflicting types for built-in function `vsprintf'
configure:3317: checking for 4.4BSD
configure:3333: cc -c -O2 conftest.c 1>&5
configure:3371: checking for SVR4
configure:3386: cc -c -O2 conftest.c 1>&5
configure:3379: error: parse error before "line"
configure: failed program was:
#line 3377 "configure"
#include "confdefs.h"
#if !defined(__svr4__) && !defined(__svr4) && !defined(SVR4)
This line will cause a parse error: "not SVR4"
#endif
int main() {
; return 0; }
configure:3410: checking either SYS5, BSD or V7
configure:3428: cc -c -O2 conftest.c 1>&5
configure:3440: cc -c -O2 conftest.c 1>&5
configure:3478: cc -c -O2 conftest.c 1>&5
configure:3471: error: parse error before "line"
configure: failed program was:
#line 3469 "configure"
#include "confdefs.h"
#if !defined(__svr3__) && !defined(__svr3) && !defined(SVR3)
This line will cause a parse error: "not SVR3"
#endif
int main() {
; return 0; }
configure:3547: cc -c -O2 conftest.c 1>&5
configure:3603: checking for return type of sprintf
configure:3617: cc -c -O2 conftest.c 1>&5
configure:3611: warning: conflicting types for built-in function `sprintf'
configure:3652: cc -c -O2 conftest.c 1>&5
configure:3643: error: parse error before "line"
In file included from configure:3645:
/usr/include/sys/wait.h:158: error: parse error before '}' token
configure:3646: warning: `union wait' declared inside parameter list
configure:3646: warning: its scope is only this definition or declaration, which is probably not what you want
configure:3646: error: conflicting types for `wait'
/usr/include/sys/wait.h:174: error: previous declaration of `wait'
configure:3646: warning: data definition has no type or storage class
configure: failed program was:
#line 3640 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H
This line will cause a parse error: "not used union wait"
#endif
#include <sys/wait.h>
wait(union wait *);
int main() {
; return 0; }
configure:3700: checking for BIND support
configure:3741: cc -c -O2 conftest.c 1>&5
configure:3751: checking for need ntohl macro
configure:3772: cc -c -O2 conftest.c 1>&5
configure:3761: error: parse error before "line"
configure:3768: error: parse error before "__in_addr_t"
configure: failed program was:
#line 3756 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
#include <netinet/in.h>
#ifdef _BIG_ENDIAN
This line will cause a parse error: "no need ntohl() for BIG_ENDIAN"
#endif
#if BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN && BYTE_ORDER == BIG_ENDIAN
This line will cause a parse error: "no need ntohl() for BIG_ENDIAN"
#endif
int main() {
long x;
ntohl(x);
; return 0; }
configure:3791: checking for support network password database
configure:3810: checking where mail spool is located
configure:3829: checking whether mail spool is opened for special group
----- end of config.log
----- config.status
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host luna.keida.lan:
#
# ./configure --enable-batchmode --libexecdir=/usr/pkg/libexec/mh --enable-jmandir=/usr/pkg/man/ja_JP.EUC --enable-apop=/usr/pkg/etc/pop.auth --enable-rpop --host=i386--netbsdelf --prefix=/usr/pkg
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
case "$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running ${CONFIG_SHELL-/bin/sh} ./configure --enable-batchmode --libexecdir=/usr/pkg/libexec/mh --enable-jmandir=/usr/pkg/man/ja_JP.EUC --enable-apop=/usr/pkg/etc/pop.auth --enable-rpop --host=i386--netbsdelf --prefix=/usr/pkg --no-create --no-recursion"
exec ${CONFIG_SHELL-/bin/sh} ./configure --enable-batchmode --libexecdir=/usr/pkg/libexec/mh --enable-jmandir=/usr/pkg/man/ja_JP.EUC --enable-apop=/usr/pkg/etc/pop.auth --enable-rpop --host=i386--netbsdelf --prefix=/usr/pkg --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "./config.status generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "$ac_cs_usage"; exit 0 ;;
*) echo "$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=.
trap 'rm -fr conf/MH conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
/^[ ]*VPATH[ ]*=[^:]*$/d
s%@SHELL@%/bin/sh%g
s%@CFLAGS@%-O2%g
s%@CPPFLAGS@% %g
s%@CXXFLAGS@%-O2%g
s%@FFLAGS@%-O%g
s%@DEFS@% -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NDBM_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ST_BLKSIZE=1 -DSYS_SIGLIST_DECLARED=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_BCOPY=1 -DHAVE_FCNTL=1 -DHAVE_FLOCK=1 -DHAVE_GETDTABLESIZE=1 -DHAVE_LOCKF=1 -DHAVE_RENAME=1 -DHAVE_RINDEX=1 -DHAVE_SETEUID=1 -DHAVE_SETREUID=1 -DHAVE_SIGBLOCK=1 -DHAVE_VSPRINTF=1 %g
s%@LDFLAGS@% -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Xlinker -rpath -Xlinker /usr/pkg/lib%g
s%@LIBS@%%g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/usr/pkg%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%/usr/pkg/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%/usr/pkg/libexec/mh%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%/usr/pkg/man%g
s%@host@%i386--netbsdelf%g
s%@host_alias@%i386--netbsdelf%g
s%@host_cpu@%i386%g
s%@host_vendor@%%g
s%@host_os@%netbsdelf%g
s%@CC@%cc%g
s%@CPP@%cc -E%g
s%@AWK@%/usr/bin/awk%g
s%@RANLIB@%ranlib%g
s%@write@%/usr/bin/write%g
s%@ucbmail@%/usr/bin/Mail%g
s%@ps@%/bin/ps%g
s%@chown@%/usr/sbin/chown%g
s%@sendmail@%/usr/sbin/sendmail%g
s%@pager@%/usr/pkg/bin/jless%g
s%@SUN40@%%g
s%@SOLARIS@%%g
s%@sharedlib@%gnuelf%g
s%@slflags@%-fpic%g
s%@ranlib@%on%g
s%@ATTVIBUG@%%g
s%@jmandir@%/usr/pkg/man/ja_JP.EUC%g
s%@manuals@%standard/gzip%g
s%@chownpath@%/usr/sbin/chown%g
s%@sendmailpath@%/usr/sbin/sendmail%g
s%@pagerpath@%/usr/pkg/bin/jless%g
s%@pop@%client%g
s%@popdir@%%g
s%@APOP@%APOP='"/usr/pkg/etc/pop.auth"'%g
s%@DPOP@%%g
s%@MPOP@%%g
s%@POP2@%%g
s%@RPOP@%RPOP%g
s%@POPSERVICE@%POPSERVICE='"pop3"'%g
s%@smtp@%/smtp%g
s%@NNTP@%NNTP%g
s%@bboards@%off%g
s%@bbdelivery@%off%g
s%@bbhome@%%g
s%@oldload@%off%g
s%@etcdir@%/usr/pkg/libexec/mh%g
s%@slibdir@%/usr/pkg/lib%g
s%@READLINE@%%g
s%@curses@%-lcurses%g
s%@SYS5DIR@%SYS5DIR%g
s%@NDIR@%%g
s%@NOIOCTLH@%%g
s%@UNISTD@%UNISTD%g
s%@SHADOW@%%g
s%@BSD41A@%%g
s%@BSD42@%BSD42%g
s%@BSD43@%BSD43%g
s%@BSD44@%BSD44%g
s%@SYS5@%%g
s%@SVR4@%%g
s%@CONTENT_LENGTH@%%g
s%@V7@%%g
s%@ALTOS@%%g
s%@ZONEINFO@%ZONEINFO%g
s%@TZNAME@%%g
s%@typesignal@%void%g
s%@typesprintf@%int%g
s%@NFS@%%g
s%@NORUSERPASS@%NORUSERPASS%g
s%@SIGEMT@%%g
s%@RENAME@%%g
s%@VSPRINTF@%VSPRINTF%g
s%@WAITINT@%WAITINT%g
s%@FCNTL@%%g
s%@FLOCK@%%g
s%@LOCKF@%%g
s%@SETEUID@%SETEUID%g
s%@SETREUID@%%g
s%@debug@%off%g
s%@SOCKETS@%%g
s%@BIND@%BIND%g
s%@POSIX@%POSIX%g
s%@NTOHLSWAP@%%g
s%@mailspool@%/var/mail%g
s%@mailgroup@%off%g
s%@DBMPWD@%DBMPWD%g
s%@SETMG@%%g
CEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
CONFIG_FILES=${CONFIG_FILES-"conf/MH"}
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
exit 0
----- end of config.status
Masayuki Keida mailto:mkeida@ca.mbn.or.jp