一波三折——solaris9下编译vsftpd-2.0.3FTP服务器教程
|
| 论文作者:佚名 论文来源:不详 论文发布时间:2006-6-18 23:26:54 论文发布人:chjchjchj |
减小字体
增大字体
摘要:一波三折——solaris9下编译vsftpd-2.0.3 小弟初次发如此长的原创的帖,语言罗索,表达不周处,请各位朋友原谅!
环境: vmware4.5.2+solaris9(u7)+make 3.8 +gcc 3.4.2
在编译apache失败后,决定从感觉比较简单的vsftpd开始下手,下载vsftpd-2.0.3.tarv.gz,在/tmp目录下解压,参照http://bbs.chinaunix.net/forum/viewtopic.php?t=561183&show_type=&postdays=0&postorder=asc&start=0 (vsftp配置大全---超完整版,首发CU之FTP区 ),本想也如高手演示的那么容易,没想到一编译就出问题了,下面是我在编译过程中遇到的4个问题。
一波之第一折: 一开始编译提示tcp.h 找不到,还有tcpwrap之类的字样(抱歉,这一段出错记录没有保留下来),我从网上查了有关tcp.h和tcpwrap的资料,都没有头绪,最后索性下载了tcp_wrappers-7.6-sol9-intel-local.gz,安装后,tcpwrap.o模块就编译过去了,感觉这一步有些瞎蒙,不过第一个问题就这样解决了。 一波之第二折: 编译问题是 ssl.o模块,症状如下所示: ..... -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc ssl.c:27:25: openssl/err.h: No such file or directory ssl.c:28:26: openssl/rand.h: No such file or directory ssl.c:29:25: openssl/bio.h: No such file or directory ssl.c:32: error: parse error before '*' token ssl.c:32: warning: type defaults to `int' in declaration of `get_ssl' ssl.c:32: warning: data definition has no type or storage class ssl.c:36: error: parse error before '*' token ssl.c: In function `ssl_init': ssl.c:45: error: `SSL_CTX' undeclared (first use in this function) ssl.c:45: error: (Each undeclared identifier is reported only once ssl.c:45: error: for each function it appears in.) ssl.c:45: error: `p_ctx' undeclared (first use in this function) ssl.c:47: warning: implicit declaration of function `SSL_library_init' ssl.c:48: warning: implicit declaration of function `SSL_CTX_new' ssl.c:48: warning: implicit declaration of function `SSLv23_server_method' ssl.c:49: error: `NULL' undeclared (first use in this function) ssl.c:53: error: `SSL_OP_ALL' undeclared (first use in this function) ssl.c:56: error: `SSL_OP_NO_SSLv2' undeclared (first use in this function) ssl.c:60: error: `SSL_OP_NO_SSLv3' undeclared (first use in this function) ssl.c:64: error: `SSL_OP_NO_TLSv1' undeclared (first use in this function) ssl.c:66: warning: implicit declaration of function `SSL_CTX_set_options' ssl.c:74: warning: implicit declaration of function `SSL_CTX_use_certificate_file' ssl.c:75: error: `X509_FILETYPE_PEM' undeclared (first use in this function) ssl.c:79: warning: implicit declaration of function `SSL_CTX_use_PrivateKey_file' ssl.c:102: warning: implicit declaration of function `SSL_CTX_set_cipher_list' ssl.c:106: warning: implicit declaration of function `RAND_status' ssl.c: In function `ssl_getline': ssl.c:197: warning: implicit declaration of function `SSL_read' ssl.c: In function `ssl_read': ssl.c:220: error: `SSL' undeclared (first use in this function) ssl.c:220: error: parse error before ')' token ssl.c:221: warning: implicit declaration of function `SSL_get_error' ssl.c:221: error: parse error before ')' token ssl.c:223: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function) ssl.c:224: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function) ssl.c: In function `ssl_write': ssl.c:235: warning: implicit declaration of function `SSL_write' ssl.c:235: error: `SSL' undeclared (first use in this function) ssl.c:235: error: parse error before ')' token ssl.c:236: error: parse error before ')' token ssl.c:238: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function) ssl.c:239: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function) ssl.c: In function `ssl_write_str': ssl.c:247: error: `SSL' undeclared (first use in this function) ssl.c:247: error: parse error before ')' token ssl.c: In function `ssl_accept': ssl.c:258: error: `SSL' undeclared (first use in this function) ssl.c:258: error: `p_ssl' undeclared (first use in this function) ssl.c:259: error: `NULL' undeclared (first use in this function) ssl.c: In function `ssl_data_close': ssl.c:271: warning: implicit declaration of function `SSL_free' ssl.c: At top level: ssl.c:283: error: parse error before '*' token ssl.c:285: warning: return type defaults to `int' ssl.c: In function `get_ssl': ssl.c:286: error: `SSL' undeclared (first use in this function) ssl.c:286: error: `p_ssl' undeclared (first use in this function) ssl.c:286: warning: implicit declaration of function `SSL_new' ssl.c:287: error: `NULL' undeclared (first use in this function) ssl.c:291: warning: implicit declaration of function `SSL_set_fd' ssl.c:296: warning: implicit declaration of function `SSL_accept' ssl.c: In function `ssl_session_init': ssl.c:308: error: `SSL' undeclared (first use in this function) ssl.c:308: error: `p_ssl' undeclared (first use in this function) ssl.c:309: error: `NULL' undeclared (first use in this function) ssl.c: In function `get_ssl_error': ssl.c:321: warning: implicit declaration of function `SSL_load_error_strings' ssl.c:322: warning: implicit declaration of function `ERR_error_string' ssl.c:322: warning: implicit declaration of function `ERR_get_error' ssl.c:322: error: `NULL' undeclared (first use in this function) ssl.c:322: warning: return makes pointer from integer without a cast s
|
|
|
|
|
|
|
| ∷相关技术评论 |
(评论内容只代表网友观点,与本站立场无关!) [查看发表评论...] | |
|
|
| |
站内广告 |
| |
|
站内搜索 |
| |
栏目导航 |
| |
|
|
本月热门 |
| |
|
|
本日热门 |
| |
|
|
|