- 主题:求助Cygwin下make错误
按照安装的说明,执行完
“2.6 安装 kbs
同样切换到 $(SRCDIR) 目录,进入 kbs 的源代码目录。编辑 site/fb2k-v2.h
文件,填上自己的站点名称等信息,然后执行下面的一系列命令:
./autogen.sh
cd sshbbsd; ./autogen.sh; cd ..
./configure --enable-site=fb2k-v2 --with-php=/home/bbs/php \
--enable-ssh --enable-innbbsd \ ”
之后,输入make命令:
output信息如下,请教高手,哪个地方出了问题啊~
[/home/tmp/kbsbbs-2.0dev]$ make
make -s all-recursive
Making all in libsystem
Making all in libBBS
Making all in rzsz
Making all in src
Making all in daemon
Making all in local_utl
Making all in mail2bbs
Making all in service
Making all in pip
Making all in worker
Making all in personaldns
Making all in innbbsd
Making all in sshbbsd
[Compiling sshd.c]
In file included from ssh_funcs.h:5,
from sshd.c:22:
./packet.h:19:17: gmp.h: No such file or directory
In file included from ssh_funcs.h:5,
from sshd.c:22:
./packet.h:74: error: parse error before '*' token
./packet.h:114: error: parse error before '*' token
In file included from sshd.c:25:
rsa.h:24: error: parse error before "MP_INT"
rsa.h:24: warning: no semicolon at end of struct or union
rsa.h:25: warning: type defaults to `int' in declaration of `n'
rsa.h:25: warning: data definition has no type or storage class
rsa.h:26: warning: type defaults to `int' in declaration of `RSAPublicKey'
rsa.h:26: warning: data definition has no type or storage class
rsa.h:30: error: parse error before "MP_INT"
rsa.h:30: warning: no semicolon at end of struct or union
rsa.h:31: warning: type defaults to `int' in declaration of `e'
rsa.h:31: warning: data definition has no type or storage class
rsa.h:32: error: parse error before "d"
rsa.h:32: warning: type defaults to `int' in declaration of `d'
rsa.h:32: warning: data definition has no type or storage class
rsa.h:33: error: parse error before "u"
rsa.h:33: warning: type defaults to `int' in declaration of `u'
rsa.h:33: warning: data definition has no type or storage class
rsa.h:34: error: parse error before "p"
rsa.h:34: warning: type defaults to `int' in declaration of `p'
rsa.h:34: warning: data definition has no type or storage class
rsa.h:35: error: parse error before "q"
rsa.h:35: warning: type defaults to `int' in declaration of `q'
rsa.h:35: warning: data definition has no type or storage class
rsa.h:36: warning: type defaults to `int' in declaration of `RSAPrivateKey'
rsa.h:36: warning: data definition has no type or storage class
rsa.h:39: error: parse error before '*' token
rsa.h:47: error: parse error before '*' token
rsa.h:52: error: parse error before '*' token
rsa.h:55: error: parse error before '*' token
rsa.h:58: error: parse error before '*' token
rsa.h:61: error: parse error before '*' token
rsa.h:64: error: parse error before '*' token
rsa.h:81: error: parse error before '*' token
rsa.h:84: error: parse error before '*' token
In file included from sshd.c:26:
ssh.h:289: error: parse error before "MP_INT"
ssh.h:298: error: parse error before "MP_INT"
ssh.h:302: error: parse error before "MP_INT"
ssh.h:336: error: parse error before "MP_INT"
ssh.h:341: error: parse error before "MP_INT"
ssh.h:346: error: parse error before "MP_INT"
ssh.h:369: error: parse error before "RSAPrivateKey"
In file included from sshd.c:30:
mpaux.h:22: error: parse error before "MP_INT"
mpaux.h:26: error: parse error before '*' token
mpaux.h:31: error: parse error before "MP_INT"
sshd.c:137: error: parse error before "RSAPrivateKey"
sshd.c:137: warning: no semicolon at end of struct or union
sshd.c:140: warning: type defaults to `int' in declaration of `host_key'
sshd.c:140: warning: data definition has no type or storage class
sshd.c:141: warning: type defaults to `int' in declaration of `sensitive_data'
sshd.c:141: warning: data definition has no type or storage class
sshd.c:152: error: parse error before "public_key"
sshd.c:152: warning: type defaults to `int' in declaration of `public_key'
sshd.c:152: warning: data definition has no type or storage class
sshd.c: In function `key_regeneration_alarm':
sshd.c:250: error: request for member `random_state' in something not a structure or union
sshd.c:251: error: request for member `private_key' in something not a structure or union
sshd.c:251: error: request for member `random_state' in something not a structure or union
sshd.c:252: error: request for member `random_state' in something not a structure or union
sshd.c: In function `main':
sshd.c:401: error: request for member `host_key' in something not a structure or union
sshd.c:462: error: request for member `host_key' in something not a structure or union
sshd.c:462: error: request for member `host_key' in something not a structure or union
sshd.c:463: error: request for member `host_key' in something not a structure or union
sshd.c:476: error: request for member `random_state' in something not a structure or union
sshd.c:498: error: request for member `private_key' in something not a structure or union
sshd.c:498: error: request for member `random_state' in something not a structure or union
sshd.c:499: error: request for member `random_state' in something not a structure or union
sshd.c:543: warning: passing arg 1 of `setgid' makes integer from pointer without a cast
sshd.c:545: warning: passing arg 1 of `setuid' makes integer from pointer without a cast
sshd.c:569: error: request for member `private_key' in something not a structure or union
sshd.c:569: error: request for member `random_state' in something not a structure or union
sshd.c:570: error: request for member `random_state' in something not a structure or union
sshd.c:701: error: request for member `random_state' in something not a structure or union
sshd.c:732: error: request for member `random_state' in something not a structure or union
sshd.c: In function `do_connection':
sshd.c:863: error: `MP_INT' undeclared (first use in this function)
sshd.c:863: error: (Each undeclared identifier is reported only once
sshd.c:863: error: for each function it appears in.)
sshd.c:863: error: parse error before "session_key_int"
sshd.c:877: error: request for member `random_state' in something not a structure or union
sshd.c:886: error: request for member `bits' in something not a structure or union
sshd.c:887: error: request for member `e' in something not a structure or union
sshd.c:888: error: request for member `n' in something not a structure or union
sshd.c:891: error: request for member `host_key' in something not a structure or union
sshd.c:892: error: request for member `host_key' in something not a structure or union
sshd.c:893: error: request for member `host_key' in something not a structure or union
sshd.c:917: error: request for member `bits' in something not a structure or union
sshd.c:917: error: request for member `host_key' in something not a structure or union
sshd.c:934: warning: implicit declaration of function `mpz_init'
sshd.c:934: error: `session_key_int' undeclared (first use in this function)
sshd.c:943: warning: implicit declaration of function `mpz_cmp'
sshd.c:943: error: request for member `private_key' in something not a structure or union
sshd.c:943: error: request for member `host_key' in something not a structure or union
sshd.c:945: error: request for member `private_key' in something not a structure or union
sshd.c:945: error: request for member `host_key' in something not a structure or union
sshd.c:946: error: request for member `private_key' in something not a structure or union
sshd.c:947: error: request for member `host_key' in something not a structure or union
sshd.c:950: error: request for member `host_key' in something not a structure or union
sshd.c:950: error: request for member `private_key' in something not a structure or union
sshd.c:951: error: request for member `host_key' in something not a structure or union
sshd.c:952: error: request for member `private_key' in something not a structure or union
sshd.c:956: error: request for member `host_key' in something not a structure or union
sshd.c:956: error: request for member `host_key' in something not a structure or union
sshd.c:956: error: request for member `private_key' in something not a structure or union
sshd.c:956: error: request for member `private_key' in something not a structure or union
sshd.c:968: warning: implicit declaration of function `mpz_clear'
sshd.c:993: error: request for member `private_key' in something not a structure or union
sshd.c:994: error: request for member `host_key' in something not a structure or union
make[3]: *** [sshd.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
修改:scentralperk FROM 123.113.80.*
FROM 123.113.80.*
看看第一个错误
./packet.h:19:17: gmp.h: No such file or directory
【 在 scentralperk (david) 的大作中提到: 】
: 按照安装的说明,执行完
: “2.6 安装 kbs
: 同样切换到 $(SRCDIR) 目录,进入 kbs 的源代码目录。编辑 site/fb2k-v2.h
: ...................
--
FROM 59.66.207.*
安装 libgmp-devel
【 在 scentralperk (david) 的大作中提到: 】
: 按照安装的说明,执行完
: “2.6 安装 kbs
: 同样切换到 $(SRCDIR) 目录,进入 kbs 的源代码目录。编辑 site/fb2k-v2.h
: ...................
--
FROM 211.161.2.*