免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2399 | 回复: 14
打印 上一主题 下一主题

[Mail] qmail-1.03 make setup check 出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-07 15:12 |只看该作者 |倒序浏览
[root@Qmail share]# cd qmail-1.03
[root@Qmail qmail-1.03]# make setup check
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
2>&1 \
&& cat fork.h2 || cat fork.h1 ) > fork.h
rm -f tryvfork.o tryvfork
./compile qmail-local.c
qmail-local.c: In function `main':
qmail-local.c:450: warning: return type of 'main' is not `int'
./compile qmail.c
./compile quote.c
./compile now.c
./compile gfrom.c
./compile myctime.c
./compile slurpclose.c
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
makelib
chmod 755 makelib
./compile case_diffb.c
./compile case_diffs.c
./compile case_lowerb.c
./compile case_lowers.c
./compile case_starts.c
./makelib case.a case_diffb.o case_diffs.o case_lowerb.o \
case_lowers.o case_starts.o
./compile getln.c
./compile getln2.c
./makelib getln.a getln.o getln2.o
./compile subgetopt.c
./compile sgetopt.c
./makelib getopt.a subgetopt.o sgetopt.o
./compile sig_alarm.c
( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null \
2>&1 \
&& echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h
rm -f trysgprm.o trysgprm
./compile sig_block.c
( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \
2>&1 \
&& echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h
rm -f trysgact.o trysgact
./compile sig_catch.c
./compile sig_pause.c
./compile sig_pipe.c
./compile sig_child.c
./compile sig_hup.c
./compile sig_term.c
./compile sig_bug.c
./compile sig_misc.c
./makelib sig.a sig_alarm.o sig_block.o sig_catch.o \
sig_pause.o sig_pipe.o sig_child.o sig_hup.o sig_term.o \
sig_bug.o sig_misc.o
./compile open_append.c
./compile open_excl.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./makelib open.a open_append.o open_excl.o open_read.o \
open_trunc.o open_write.o
./compile seek_cur.c
./compile seek_end.c
./compile seek_set.c
./compile seek_trunc.c
./makelib seek.a seek_cur.o seek_end.o seek_set.o \
seek_trunc.o
( ( ./compile tryflock.c && ./load tryflock ) >/dev/null \
2>&1 \
&& echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h
rm -f tryflock.o tryflock
./compile lock_ex.c
./compile lock_exnb.c
./compile lock_un.c
./makelib lock.a lock_ex.o lock_exnb.o lock_un.o
./compile fd_copy.c
./compile fd_move.c
./makelib fd.a fd_copy.o fd_move.o
( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \
2>&1 \
&& echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
rm -f trywaitp.o trywaitp
./compile wait_pid.c
./compile wait_nohang.c
./makelib wait.a wait_pid.o wait_nohang.o
./compile env.c
./compile envread.c
./makelib env.a env.o envread.o
./compile stralloc_eady.c
./compile stralloc_pend.c
./compile stralloc_copy.c
./compile stralloc_opys.c
./compile stralloc_opyb.c
./compile stralloc_cat.c
./compile stralloc_cats.c
./compile stralloc_catb.c
./compile stralloc_arts.c
./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
stralloc_cat.o stralloc_cats.o stralloc_catb.o \
stralloc_arts.o
./compile alloc.c
alloc.c:3: warning: conflicting types for built-in function 'malloc'
./compile alloc_re.c
./makelib alloc.a alloc.o alloc_re.o
./compile strerr_sys.c
./compile strerr_die.c
./makelib strerr.a strerr_sys.o strerr_die.o
./compile substdio.c
./compile substdi.c
./compile substdo.c
./compile subfderr.c
./compile subfdout.c
./compile subfdouts.c
./compile subfdin.c
./compile subfdins.c
./compile substdio_copy.c
./makelib substdio.a substdio.o substdi.o substdo.o \
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o \
substdio_copy.o
./compile error.c
./compile error_str.c
./compile error_temp.c
./makelib error.a error.o error_str.o error_temp.o
./compile str_len.c
./compile str_diff.c
./compile str_diffn.c
./compile str_cpy.c
./compile str_chr.c
./compile str_rchr.c
./compile str_start.c
./compile byte_chr.c
./compile byte_rchr.c
./compile byte_diff.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_zero.c
./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \
str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o \
byte_diff.o byte_copy.o byte_cr.o byte_zero.o
./compile fmt_str.c
./compile fmt_strn.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
./compile scan_ulong.c
./compile scan_8long.c
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o \
fmt_ulong.o scan_ulong.o scan_8long.o
./compile datetime.c
./compile datetime_un.c
./makelib datetime.a datetime.o datetime_un.o
./compile auto-str.c
auto-str.c:9: warning: conflicting types for built-in function 'puts'
auto-str.c: In function `main':
auto-str.c:17: warning: return type of 'main' is not `int'
./load auto-str substdio.a error.a str.a
substdio.a(substdo.o)(.text+0x43): In function `allwrite':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [auto-str] 错误 1

论坛徽章:
0
2 [报告]
发表于 2006-08-07 15:13 |只看该作者
环境是RH E4,全新安装,小弟新手,谢谢

论坛徽章:
0
3 [报告]
发表于 2006-08-07 15:18 |只看该作者
errno 补丁

论坛徽章:
0
4 [报告]
发表于 2006-08-07 15:28 |只看该作者
小弟是在http://download.chinaunix.net/download/0009000/8676.shtml下的,不知道哪个是您说的补丁,找到补丁后是继续安装直到完成后打补丁,还是打完补丁后再运行make setup check.

谢谢,小弟菜中之菜

论坛徽章:
0
5 [报告]
发表于 2006-08-07 15:32 |只看该作者

论坛徽章:
0
6 [报告]
发表于 2006-08-07 15:53 |只看该作者
小弟弱弱的问下,那个补丁包没办法下载,一下载就打开是个文件,另外,.patch用什么命令安装

论坛徽章:
0
7 [报告]
发表于 2006-08-08 09:33 |只看该作者
我的qmail文件夹路径/root/share/qmail-1.03,我把errno补丁拷至该目录下,运行
patch -p0 -i qmail-1.03.errno.patch,然后回显给出file to path让我写,我应该怎么写?

论坛徽章:
0
8 [报告]
发表于 2006-08-08 10:00 |只看该作者
patch -p0 -i qmail-1.03.errno.patch回显
[root@Qmail share]# cd qmail-1.03
[root@Qmail qmail-1.03]# patch qmail-1.03.errno.patch

[root@Qmail qmail-1.03]# patch -p0 qmail-1.03.errno.patch

[root@Qmail qmail-1.03]# patch -p0 -i qmail-1.03.errno.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u qmail-1.03.old/cdb_seek.c qmail-1.03/cdb_seek.c
|--- qmail-1.03.old/cdb_seek.c  1998-06-15 05:52:55.000000000 -0500
|+++ qmail-1.03/cdb_seek.c      2003-01-08 15:55:53.000000000 -0600
--------------------------
File to patch: ?
?: No such file or directory
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u qmail-1.03.old/dns.c qmail-1.03/dns.c
|--- qmail-1.03.old/dns.c       1998-06-15 05:52:55.000000000 -0500
|+++ qmail-1.03/dns.c   2003-01-08 16:00:32.000000000 -0600
--------------------------
File to patch:

论坛徽章:
0
9 [报告]
发表于 2006-08-08 10:02 |只看该作者
patch -i qmail-1.03.errno.patch,回显
[root@Qmail qmail-1.03]# patch -i qmail-1.03.errno.patch
patching file cdb_seek.c
patching file dns.c
patching file error.3
patching file error.h
Hunk #1 succeeded at 1 with fuzz 1.
patch unexpectedly ends in middle of line


我应该怎么办
patch unexpectedly ends in middle of line

论坛徽章:
0
10 [报告]
发表于 2006-08-08 10:24 |只看该作者
Execute the following command

tar -xzvf qmail-1.03.tar.gz
cd qmail-1.03
cp qmail-1.03.errno.patch .
patch -p0 < qmail-1.03.errno.patch
make setup check



Thanks.

[ 本帖最后由 beautiful 于 2006-8-8 10:32 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP