歡迎您光臨本站 註冊首頁

x86 solaris10 10/08 安裝vsftp編譯出現問題,不支持ssl?請幫助,謝謝!

基礎環境:solaris10 x86 10/08 OEM最大化安裝。
下載了vsftpd,修改了builddefs.h,將tcp_wrappers和ssl修改為define。

編譯遇到錯誤,原先是關於tcp_wrappers的,於是我下載了tcp_wrappers重新安裝,關於tcp_wrappers的問題就沒有了,但是關於ssl的不管我怎麼重新安裝openssl都無法解決,報錯也看不懂,還望大家幫忙,非常感謝!

我嘗試在系統中打開tcp_wrappers=true,是成功的,而且用telnet簡單測試了一下,已經生效的,所以我從來沒有懷疑過tcp_wrappers有問題。

但是我今天重新下載了tcp_wrappers,安裝,然後再編譯,關於tcp_wrappers的錯誤居然都消失了,但是得到了關於ssl的錯誤,如下:

bash-3.00# make
gcc -c ssl.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
ssl.c:28:25: openssl/err.h: 無此文件或目錄
ssl.c:29:26: openssl/rand.h: 無此文件或目錄
ssl.c:30:25: openssl/bio.h: 無此文件或目錄
ssl.c:34: error: syntax error before '*' token
ssl.c:34: warning: type defaults to `int' in declaration of `get_ssl'
ssl.c:34: warning: data definition has no type or storage class
ssl.c:38: error: syntax error before '*' token
ssl.c:39: error: syntax error before "X509_STORE_CTX"
ssl.c:41: error: syntax error before '*' token
ssl.c: In function `ssl_init':
ssl.c:53: error: `SSL_CTX' undeclared (first use in this function)
ssl.c:53: error: (Each undeclared identifier is reported only once
ssl.c:53: error: for each function it appears in.)
ssl.c:53: error: `p_ctx' undeclared (first use in this function)
ssl.c:56: warning: implicit declaration of function `SSL_library_init'
ssl.c:57: warning: implicit declaration of function `SSL_CTX_new'
ssl.c:57: warning: implicit declaration of function `SSLv23_server_method'
ssl.c:58: error: `NULL' undeclared (first use in this function)
ssl.c:62: error: `SSL_OP_ALL' undeclared (first use in this function)
ssl.c:65: error: `SSL_OP_NO_SSLv2' undeclared (first use in this function)
ssl.c:69: error: `SSL_OP_NO_SSLv3' undeclared (first use in this function)
ssl.c:73: error: `SSL_OP_NO_TLSv1' undeclared (first use in this function)
ssl.c:75: warning: implicit declaration of function `SSL_CTX_set_options'
ssl.c:83: warning: implicit declaration of function `SSL_CTX_use_certificate_chain_file'
ssl.c:87: warning: implicit declaration of function `SSL_CTX_use_PrivateKey_file'
ssl.c:87: error: `X509_FILETYPE_PEM' undeclared (first use in this function)
ssl.c:109: warning: implicit declaration of function `SSL_CTX_set_cipher_list'
ssl.c:113: warning: implicit declaration of function `RAND_status'
ssl.c:119: error: `SSL_VERIFY_PEER' undeclared (first use in this function)
ssl.c:123: error: `SSL_VERIFY_FAIL_IF_NO_PEER_CERT' undeclared (first use in this function)
ssl.c:127: warning: implicit declaration of function `SSL_CTX_set_verify'
ssl.c:130: warning: implicit declaration of function `SSL_CTX_load_verify_locations'
ssl.c: In function `ssl_getline':
ssl.c:234: warning: implicit declaration of function `SSL_read'
ssl.c: In function `ssl_read':
ssl.c:255: error: `SSL' undeclared (first use in this function)
ssl.c:255: error: `p_ssl' undeclared (first use in this function)
ssl.c:259: warning: implicit declaration of function `SSL_get_error'
ssl.c:261: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
ssl.c:262: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
ssl.c:265: warning: implicit declaration of function `SSL_get_shutdown'
ssl.c:265: error: `SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
ssl.c: In function `ssl_write':
ssl.c:285: warning: implicit declaration of function `SSL_write'
ssl.c:285: error: `SSL' undeclared (first use in this function)
ssl.c:285: error: syntax error before ')' token
ssl.c:286: error: syntax error before ')' token
ssl.c:288: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
ssl.c:289: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
ssl.c: In function `ssl_write_str':
ssl.c:297: error: `SSL' undeclared (first use in this function)
ssl.c:297: error: syntax error before ')' token
ssl.c: In function `maybe_log_shutdown_state':
ssl.c:316: error: `SSL_SENT_SHUTDOWN' undeclared (first use in this function)
ssl.c:320: error: `SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
ssl.c: In function `ssl_data_close':
ssl.c:351: error: `SSL' undeclared (first use in this function)
ssl.c:351: error: `p_ssl' undeclared (first use in this function)
ssl.c:364: warning: implicit declaration of function `SSL_shutdown'
ssl.c:388: warning: implicit declaration of function `SSL_free'
ssl.c:389: error: `NULL' undeclared (first use in this function)
ssl.c: In function `ssl_accept':
ssl.c:401: error: `SSL' undeclared (first use in this function)
ssl.c:401: error: `p_ssl' undeclared (first use in this function)
ssl.c:402: error: `NULL' undeclared (first use in this function)
ssl.c: At top level:
ssl.c:454: error: syntax error before '*' token
ssl.c:456: warning: return type defaults to `int'
ssl.c: In function `get_ssl':
ssl.c:457: error: `SSL' undeclared (first use in this function)
ssl.c:457: error: `p_ssl' undeclared (first use in this function)
ssl.c:457: warning: implicit declaration of function `SSL_new'
ssl.c:458: error: `NULL' undeclared (first use in this function)
ssl.c:467: warning: implicit declaration of function `SSL_set_fd'
ssl.c:477: warning: implicit declaration of function `SSL_accept'
ssl.c:492: warning: implicit declaration of function `SSL_get_cipher_version'
ssl.c:492: warning: initialization makes pointer from integer without a cast
ssl.c:493: error: `SSL_CIPHER' undeclared (first use in this function)
ssl.c:493: error: `p_ssl_cipher' undeclared (first use in this function)
ssl.c:493: warning: implicit declaration of function `SSL_get_current_cipher'
ssl.c:494: warning: implicit declaration of function `SSL_CIPHER_get_name'
ssl.c:494: warning: initialization makes pointer from integer without a cast
ssl.c:495: warning: implicit declaration of function `SSL_session_reused'
ssl.c:496: error: `X509' undeclared (first use in this function)
ssl.c:496: error: `p_ssl_cert' undeclared (first use in this function)
ssl.c:496: warning: implicit declaration of function `SSL_get_peer_certificate'
ssl.c:512: warning: implicit declaration of function `X509_free'
ssl.c: In function `ssl_session_init':
ssl.c:526: error: `SSL' undeclared (first use in this function)
ssl.c:526: error: `p_ssl' undeclared (first use in this function)
ssl.c:527: error: `NULL' undeclared (first use in this function)
ssl.c: At top level:
ssl.c:538: error: syntax error before '*' token
ssl.c: In function `ssl_cert_digest':
ssl.c:540: error: `X509' undeclared (first use in this function)
ssl.c:540: error: `p_cert' undeclared (first use in this function)
ssl.c:540: error: `p_ssl' undeclared (first use in this function)
ssl.c:542: error: `NULL' undeclared (first use in this function)
ssl.c:546: error: `p_str' undeclared (first use in this function)
ssl.c:546: error: `EVP_MAX_MD_SIZE' undeclared (first use in this function)
ssl.c:549: warning: implicit declaration of function `X509_digest'
ssl.c:549: warning: implicit declaration of function `EVP_sha256'
ssl.c:565: error: `p_sess' undeclared (first use in this function)
ssl.c: In function `get_ssl_error':
ssl.c:574: warning: implicit declaration of function `SSL_load_error_strings'
ssl.c:575: warning: implicit declaration of function `ERR_error_string'
ssl.c:575: warning: implicit declaration of function `ERR_get_error'
ssl.c:575: error: `NULL' undeclared (first use in this function)
ssl.c:575: warning: return makes pointer from integer without a cast
ssl.c: At top level:
ssl.c:578: error: syntax error before '*' token
ssl.c: In function `setup_bio_callbacks':
ssl.c:580: error: `BIO' undeclared (first use in this function)
ssl.c:580: error: `p_bio' undeclared (first use in this function)
ssl.c:580: warning: implicit declaration of function `SSL_get_rbio'
ssl.c:580: error: `p_ssl' undeclared (first use in this function)
ssl.c:581: warning: implicit declaration of function `BIO_set_callback'
ssl.c:582: warning: implicit declaration of function `SSL_get_wbio'
ssl.c: At top level:
ssl.c:588: error: syntax error before '*' token
ssl.c: In function `bio_callback':
ssl.c:592: error: `p_arg' undeclared (first use in this function)
ssl.c:593: error: `argi' undeclared (first use in this function)
ssl.c:594: error: `argl' undeclared (first use in this function)
ssl.c:595: error: `oper' undeclared (first use in this function)
ssl.c:595: error: `BIO_CB_READ' undeclared (first use in this function)
ssl.c:595: error: `BIO_CB_RETURN' undeclared (first use in this function)
ssl.c:596: error: `BIO_CB_WRITE' undeclared (first use in this function)
ssl.c:598: error: `ret' undeclared (first use in this function)
ssl.c:599: warning: implicit declaration of function `BIO_get_fd'
ssl.c:599: error: `p_bio' undeclared (first use in this function)
ssl.c:599: error: `NULL' undeclared (first use in this function)
ssl.c: At top level:
ssl.c:606: error: syntax error before "X509_STORE_CTX"
ssl.c: In function `ssl_verify_callback':
ssl.c:608: error: `p_ctx' undeclared (first use in this function)
ssl.c:611: error: `verify_ok' undeclared (first use in this function)
ssl.c: At top level:
ssl.c:294: warning: unused parameter 'p_ssl'
ssl.c:279: warning: unused parameter 'p_ssl'
ssl.c:279: warning: unused parameter 'p_buf'
ssl.c:279: warning: unused parameter 'len'
make: *** Error 1


這次我依然採用下載openssl安裝后再編譯的方法,但是不起作用了。

還望達人幫忙了。

非常感謝!
《解決方案》

問題已經解決,謝謝!
《解決方案》

解決了是不是應該把解決方法帖出來?
《解決方案》

原帖由 十六薙夜血 於 2009-3-4 12:41 發表 http://bbs3.chinaunix.net/images/common/back.gif
問題已經解決,謝謝!

編譯vsftpd 需要指定ssl的頭文件目錄吧?
《解決方案》

這位大俠 是怎麼解決的啊?

[火星人 ] x86 solaris10 10/08 安裝vsftp編譯出現問題,不支持ssl?請幫助,謝謝!已經有792次圍觀

http://coctec.com/docs/service/show-post-20669.html