f_serg Слушай, объясни мне, пожалуйста, откуда в Makefile изначально стоит
outinc. Что, в старых версиях OpenSSL, была такая папка? И как, тогда, объяснить то, что у препода в компе я в этом файле прописывал только путь к папке с OpenSSL, этот долбанный outinc там оставался и компиляция проходила успешно? Голову сломал уже...
Добавлено: Это просто какая-то жопа...
[more]C:\wget\src>mingw32-make SSL=1
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o cmpt.o cmpt.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o convert.o convert.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o connect.o connect.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o ftp.o ftp.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o ftp-basic.o ftp-basic.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o ftp-ls.o ftp-ls.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o ftp-opie.o ftp-opie.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o getopt.o getopt.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o host.o host.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o html-parse.o html-parse.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o html-url.o html-url.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o http.o http.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o init.o init.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o log.o log.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o main.o main.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o gnu-md5.o gnu-md5.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o netrc.o netrc.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o safe-ctype.o safe-ctype.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o hash.o hash.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o progress.o progress.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o gen-md5.o gen-md5.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o cookies.o cookies.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o ptimer.o ptimer.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o recur.o recur.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o res.o res.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o retr.o retr.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o url.o url.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o utils.o utils.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o version.o version.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o xmalloc.o xmalloc.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o mswindows.o mswindows.c
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o spider.o spider.c
spider.c: In function `print_broken_links':
spider.c:89: warning: unused variable `list'
gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -IC:/openssl-0.9.8g/include -DHAVE_S
SL -c -o openssl.o openssl.c
In file included from openssl.c:41:
C:/openssl-0.9.8g/include/openssl/ssl.h:1: error: syntax error before ':' token
In file included from openssl.c:41:
C:/openssl-0.9.8g/include/openssl/ssl.h:1:22: warning: no newline at end of file
In file included from openssl.c:42:
C:/openssl-0.9.8g/include/openssl/x509.h:1:31: warning: no newline at end of fil
e
In file included from openssl.c:43:
C:/openssl-0.9.8g/include/openssl/err.h:1:29: warning: no newline at end of file
In file included from openssl.c:44:
C:/openssl-0.9.8g/include/openssl/rand.h:1:31: warning: no newline at end of fil
e
In file included from openssl.c:47:
utils.h:68: error: syntax error before '*' token
utils.h:68: warning: type defaults to `int' in declaration of `unique_create'
utils.h:68: warning: data definition has no type or storage class
utils.h:69: error: syntax error before '*' token
utils.h:69: warning: type defaults to `int' in declaration of `fopen_excl'
utils.h:69: warning: data definition has no type or storage class
utils.h:81: error: syntax error before '*' token
openssl.c:54: error: syntax error before '*' token
openssl.c:54: warning: type defaults to `int' in declaration of `ssl_ctx'
openssl.c:54: warning: data definition has no type or storage class
openssl.c: In function `init_prng':
openssl.c:64: warning: implicit declaration of function `RAND_status'
openssl.c:77: warning: implicit declaration of function `RAND_file_name'
openssl.c:77: warning: assignment makes pointer from integer without a cast
openssl.c:83: warning: implicit declaration of function `RAND_load_file'
openssl.c:90: warning: implicit declaration of function `RAND_egd'
openssl.c:100: warning: implicit declaration of function `RAND_screen'
openssl.c: In function `print_errors':
openssl.c:131: warning: implicit declaration of function `ERR_get_error'
openssl.c:132: warning: implicit declaration of function `ERR_error_string'
openssl.c:132: warning: format argument is not a pointer (arg 3)
openssl.c: In function `key_type_to_ssl_type':
openssl.c:147: error: `SSL_FILETYPE_PEM' undeclared (first use in this function)
openssl.c:147: error: (Each undeclared identifier is reported only once
openssl.c:147: error: for each function it appears in.)
openssl.c:149: error: `SSL_FILETYPE_ASN1' undeclared (first use in this function
)
openssl.c: In function `ssl_init':
openssl.c:163: error: `SSL_METHOD' undeclared (first use in this function)
openssl.c:163: error: `meth' undeclared (first use in this function)
openssl.c:178: warning: implicit declaration of function `SSL_library_init'
openssl.c:179: warning: implicit declaration of function `SSL_load_error_strings
'
openssl.c:180: warning: implicit declaration of function `SSLeay_add_all_algorit
hms'
openssl.c:181: warning: implicit declaration of function `SSLeay_add_ssl_algorit
hms'
openssl.c:186: warning: implicit declaration of function `SSLv23_client_method'
openssl.c:189: warning: implicit declaration of function `SSLv2_client_method'
openssl.c:192: warning: implicit declaration of function `SSLv3_client_method'
openssl.c:195: warning: implicit declaration of function `TLSv1_client_method'
openssl.c:201: warning: implicit declaration of function `SSL_CTX_new'
openssl.c:201: warning: assignment makes pointer from integer without a cast
openssl.c:205: warning: implicit declaration of function `SSL_CTX_set_default_ve
rify_paths'
openssl.c:206: warning: implicit declaration of function `SSL_CTX_load_verify_lo
cations'
openssl.c:212: warning: implicit declaration of function `SSL_CTX_set_verify'
openssl.c:212: error: `SSL_VERIFY_NONE' undeclared (first use in this function)
openssl.c:215: warning: implicit declaration of function `SSL_CTX_use_certificat
e_file'
openssl.c:220: warning: implicit declaration of function `SSL_CTX_use_PrivateKey
_file'
openssl.c:227: warning: implicit declaration of function `SSL_CTX_set_mode'
openssl.c:227: error: `SSL_MODE_ENABLE_PARTIAL_WRITE' undeclared (first use in t
his function)
openssl.c:231: error: `SSL_MODE_AUTO_RETRY' undeclared (first use in this functi
on)
openssl.c:237: warning: implicit declaration of function `SSL_CTX_free'
openssl.c: At top level:
openssl.c:243: error: syntax error before "SSL"
openssl.c:243: warning: no semicolon at end of struct or union
openssl.c:245: error: syntax error before '}' token
openssl.c: In function `openssl_read':
openssl.c:252: error: `SSL' undeclared (first use in this function)
openssl.c:252: error: `conn' undeclared (first use in this function)
openssl.c:252: error: dereferencing pointer to incomplete type
openssl.c:254: warning: implicit declaration of function `SSL_read'
openssl.c:256: warning: implicit declaration of function `SSL_get_error'
openssl.c:257: error: `SSL_ERROR_SYSCALL' undeclared (first use in this function
)
openssl.c: In function `openssl_write':
openssl.c:266: error: `SSL' undeclared (first use in this function)
openssl.c:266: error: `conn' undeclared (first use in this function)
openssl.c:266: error: dereferencing pointer to incomplete type
openssl.c:268: warning: implicit declaration of function `SSL_write'
openssl.c:271: error: `SSL_ERROR_SYSCALL' undeclared (first use in this function
)
openssl.c: In function `openssl_poll':
openssl.c:279: error: `SSL' undeclared (first use in this function)
openssl.c:279: error: `conn' undeclared (first use in this function)
openssl.c:279: error: dereferencing pointer to incomplete type
openssl.c:282: warning: implicit declaration of function `SSL_pending'
openssl.c: In function `openssl_peek':
openssl.c:292: error: `SSL' undeclared (first use in this function)
openssl.c:292: error: `conn' undeclared (first use in this function)
openssl.c:292: error: dereferencing pointer to incomplete type
openssl.c:294: warning: implicit declaration of function `SSL_peek'
openssl.c:297: error: `SSL_ERROR_SYSCALL' undeclared (first use in this function
)
openssl.c: In function `openssl_errstr':
openssl.c:314: error: dereferencing pointer to incomplete type
openssl.c:314: error: dereferencing pointer to incomplete type
openssl.c:324: warning: initialization makes pointer from integer without a cast
openssl.c:345: error: dereferencing pointer to incomplete type
openssl.c: In function `openssl_close':
openssl.c:354: error: `SSL' undeclared (first use in this function)
openssl.c:354: error: `conn' undeclared (first use in this function)
openssl.c:354: error: dereferencing pointer to incomplete type
openssl.c:356: warning: implicit declaration of function `SSL_shutdown'
openssl.c:357: warning: implicit declaration of function `SSL_free'
openssl.c:358: error: dereferencing pointer to incomplete type
openssl.c:358: error: dereferencing pointer to incomplete type
openssl.c: In function `ssl_connect':
openssl.c:389: error: `SSL' undeclared (first use in this function)
openssl.c:389: error: `conn' undeclared (first use in this function)
openssl.c:395: warning: implicit declaration of function `SSL_new'
openssl.c:398: warning: implicit declaration of function `SSL_set_fd'
openssl.c:400: warning: implicit declaration of function `SSL_set_connect_state'
openssl.c:401: warning: implicit declaration of function `SSL_connect'
openssl.c:401: error: `SSL_ST_OK' undeclared (first use in this function)
openssl.c:404: error: invalid application of `sizeof' to incomplete type `openss
l_transport_context'
openssl.c:405: error: dereferencing pointer to incomplete type
openssl.c: In function `ssl_check_certificate':
openssl.c:482: error: `X509' undeclared (first use in this function)
openssl.c:482: error: `cert' undeclared (first use in this function)
openssl.c:492: error: `SSL' undeclared (first use in this function)
openssl.c:492: error: `conn' undeclared (first use in this function)
openssl.c:492: error: dereferencing pointer to incomplete type
openssl.c:495: warning: implicit declaration of function `SSL_get_peer_certifica
te'
openssl.c:506: warning: implicit declaration of function `X509_NAME_oneline'
openssl.c:506: warning: implicit declaration of function `X509_get_subject_name'
openssl.c:506: warning: initialization makes pointer from integer without a cast
openssl.c:507: warning: implicit declaration of function `X509_get_issuer_name'
openssl.c:507: warning: initialization makes pointer from integer without a cast
openssl.c:510: warning: implicit declaration of function `OPENSSL_free'
openssl.c:514: warning: implicit declaration of function `SSL_get_verify_result'
openssl.c:515: error: `X509_V_OK' undeclared (first use in this function)
openssl.c:517: warning: initialization makes pointer from integer without a cast
openssl.c:525: error: `X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY' undeclared
(first use in this function)
openssl.c:529: error: `X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN' undeclared (first u
se in this function)
openssl.c:530: error: `X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT' undeclared (first
use in this function)
openssl.c:533: error: `X509_V_ERR_CERT_NOT_YET_VALID' undeclared (first use in t
his function)
openssl.c:536: error: `X509_V_ERR_CERT_HAS_EXPIRED' undeclared (first use in thi
s function)
openssl.c:543: warning: implicit declaration of function `X509_verify_cert_error
_string'
openssl.c:543: warning: format argument is not a pointer (arg 3)
openssl.c:565: warning: implicit declaration of function `X509_NAME_get_text_by_
NID'
openssl.c:566: error: `NID_commonName' undeclared (first use in this function)
openssl.c:578: warning: implicit declaration of function `X509_free'
mingw32-make: *** [openssl.o] Error 1[/more]
P.S. К стати, папки lib в папке, где установлен OpenSSL, у меня нету. А что в ней должно быть - какие файлы?