当前位置: 技术问答>linux和unix
ucspi-ssl编译的问题
来源: 互联网 发布时间:2016-10-24
本文导语: :: line 16 :: package/compile ./compile sslclient.c sslclient.c:5:25: error: openssl/ssl.h: No such file or directory In file included from sslclient.c:7: ssl.h:10: error: expected ‘)’ before ‘*’ token ssl.h:11: error: expected ‘=’, ‘,’, ‘;...
:: line 16 :: package/compile
./compile sslclient.c
sslclient.c:5:25: error: openssl/ssl.h: No such file or directory
In file included from sslclient.c:7:
ssl.h:10: error: expected ‘)’ before ‘*’ token
ssl.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo
re ‘*’ token
ssl.h:12: error: expected ‘)’ before ‘*’ token
ssl.h:13: error: expected ‘)’ before ‘*’ token
ssl.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo
re ‘*’ token
ssl.h:15: error: expected ‘)’ before ‘*’ token
ssl.h:16: error: expected ‘)’ before ‘*’ token
ssl.h:17: error: expected ‘)’ before ‘*’ token
ssl.h:18: error: expected ‘)’ before ‘*’ token
ssl.h:19: error: expected ‘)’ before ‘*’ token
ssl.h:20: error: expected ‘)’ before ‘*’ token
ssl.h:21: error: expected ‘)’ before ‘*’ token
ssl.h:22: error: expected ‘)’ before ‘*’ token
sslclient.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__
’ before ‘*’ token
sslclient.c: In function ‘main’:
sslclient.c:140: error: ‘SSL’ undeclared (first use in this function)
sslclient.c:140: error: (Each undeclared identifier is reported only once
sslclient.c:140: error: for each function it appears in.)
sslclient.c:140: error: ‘ssl’ undeclared (first use in this function)
sslclient.c:309: error: ‘ctx’ undeclared (first use in this function)
sslclient.c:309: warning: implicit declaration of function ‘ssl_context’
sslclient.c:309: warning: implicit declaration of function ‘SSLv23_client_metho
d’
sslclient.c:310: warning: implicit declaration of function ‘SSL_load_error_stri
ngs’
sslclient.c:314: warning: implicit declaration of function ‘ssl_certkey’
sslclient.c:321: warning: implicit declaration of function ‘ssl_ca’
sslclient.c:324: warning: implicit declaration of function ‘ssl_ciphers’
sslclient.c:327: warning: implicit declaration of function ‘ssl_new’
sslclient.c:331: warning: implicit declaration of function ‘ssl_timeoutconn’
sslclient.c:347: warning: implicit declaration of function ‘ssl_verify’
sslclient.c:380: warning: implicit declaration of function ‘ssl_io’
sslclient.c:383: warning: implicit declaration of function ‘SSL_get_fd’
sslclient.c:394: warning: implicit declaration of function ‘ssl_client_env’
make: *** [sslclient.o] Error 1
compile: fatal: cannot make it-base it-sslperl
./compile sslclient.c
sslclient.c:5:25: error: openssl/ssl.h: No such file or directory
In file included from sslclient.c:7:
ssl.h:10: error: expected ‘)’ before ‘*’ token
ssl.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo
re ‘*’ token
ssl.h:12: error: expected ‘)’ before ‘*’ token
ssl.h:13: error: expected ‘)’ before ‘*’ token
ssl.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo
re ‘*’ token
ssl.h:15: error: expected ‘)’ before ‘*’ token
ssl.h:16: error: expected ‘)’ before ‘*’ token
ssl.h:17: error: expected ‘)’ before ‘*’ token
ssl.h:18: error: expected ‘)’ before ‘*’ token
ssl.h:19: error: expected ‘)’ before ‘*’ token
ssl.h:20: error: expected ‘)’ before ‘*’ token
ssl.h:21: error: expected ‘)’ before ‘*’ token
ssl.h:22: error: expected ‘)’ before ‘*’ token
sslclient.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__
’ before ‘*’ token
sslclient.c: In function ‘main’:
sslclient.c:140: error: ‘SSL’ undeclared (first use in this function)
sslclient.c:140: error: (Each undeclared identifier is reported only once
sslclient.c:140: error: for each function it appears in.)
sslclient.c:140: error: ‘ssl’ undeclared (first use in this function)
sslclient.c:309: error: ‘ctx’ undeclared (first use in this function)
sslclient.c:309: warning: implicit declaration of function ‘ssl_context’
sslclient.c:309: warning: implicit declaration of function ‘SSLv23_client_metho
d’
sslclient.c:310: warning: implicit declaration of function ‘SSL_load_error_stri
ngs’
sslclient.c:314: warning: implicit declaration of function ‘ssl_certkey’
sslclient.c:321: warning: implicit declaration of function ‘ssl_ca’
sslclient.c:324: warning: implicit declaration of function ‘ssl_ciphers’
sslclient.c:327: warning: implicit declaration of function ‘ssl_new’
sslclient.c:331: warning: implicit declaration of function ‘ssl_timeoutconn’
sslclient.c:347: warning: implicit declaration of function ‘ssl_verify’
sslclient.c:380: warning: implicit declaration of function ‘ssl_io’
sslclient.c:383: warning: implicit declaration of function ‘SSL_get_fd’
sslclient.c:394: warning: implicit declaration of function ‘ssl_client_env’
make: *** [sslclient.o] Error 1
compile: fatal: cannot make it-base it-sslperl
|
sslclient.c:5:25: error: openssl/ssl.h: No such file or directory
-------------
你没有安装openssl-devel包
yum -y install openssl-devel
不知道你是啥linux
-------------
你没有安装openssl-devel包
yum -y install openssl-devel
不知道你是啥linux
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。