-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: stringprep.h file not found #50
Comments
do fix your problem, you can add "-I /opt/local/include" to the OPTS= definition in the Makefile (after ./configure) can you please paste the full compile output including the error? |
Hi vanhauser-thc, Thanks for the reply. This is the error upon invoking make command. gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -o pw-inspector pw-inspector.c clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-vnc.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-pcnfs.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-rexec.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-nntp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' In file included from hydra-nntp.c:2: ./sasl.h:24:10: fatal error: 'stringprep.h' file not found #include ^ 1 error generated. make: *** [hydra-nntp.o] Error 1 Adding the "-I /opt/local/include" to the OPTS= definition in the Makefile and re-run make command, this is the result: ### from this ### OPTS=-I. -O3 ### to this ### OPTS=-I. -O3 -I /opt/local/include gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-nntp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-socks5.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-telnet.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-cisco.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-http.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-ftp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-imap.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-pop3.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-smb.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' hydra-smb.c:1192:55: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if (/*(bufReceive == NULL) ||*/ (nReceiveBufferSize == 0)) ~~~~~~~~~~~~~~~~~~~^~~~ hydra-smb.c:1192:55: note: remove extraneous parentheses around the comparison to silence this warning if (/*(bufReceive == NULL) ||*/ (nReceiveBufferSize == 0)) ~ ^ ~ hydra-smb.c:1192:55: note: use '=' to turn this equality comparison into an assignment if (/*(bufReceive == NULL) ||*/ (nReceiveBufferSize == 0)) ^~ = 1 warning generated. gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-icq.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-cisco-enable.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-ldap.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-mysql.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-mssql.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-xmpp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-http-proxy-urlenum.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-snmp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' hydra-snmp.c:106:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(password) > passwordlen) ^~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ hydra-snmp.c:107:26: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] passwordlen = strlen(password); ^~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ hydra-snmp.c:114:12: warning: passing 'u_char [17]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(bpass, password); ^~~~~ /usr/include/secure/_string.h:83:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:114:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(bpass, password); ^~~~~~~~ /usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:116:14: warning: passing 'u_char [17]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(bpass, password); ^~~~~ /usr/include/secure/_string.h:125:27: note: expanded from macro 'strcat' __builtin___strcat_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:116:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(bpass, password); ^~~~~~~~ /usr/include/secure/_string.h:125:33: note: expanded from macro 'strcat' __builtin___strcat_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:161:12: warning: passing 'u_char [17]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(bpass, password); ^~~~~ /usr/include/secure/_string.h:83:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:161:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(bpass, password); ^~~~~~~~ /usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:163:14: warning: passing 'u_char [17]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(bpass, password); ^~~~~ /usr/include/secure/_string.h:125:27: note: expanded from macro 'strcat' __builtin___strcat_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:163:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(bpass, password); ^~~~~~~~ /usr/include/secure/_string.h:125:33: note: expanded from macro 'strcat' __builtin___strcat_chk (dest, src, __darwin_obsz (dest)) ^ hydra-snmp.c:259:29: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_md5(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~~ hydra-snmp.c:97:35: note: passing argument to parameter 'password' here void password_to_key_md5(u_char * password, /* IN */ ^ hydra-snmp.c:259:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_md5(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~~~~~~~~~~~~ hydra-snmp.c:99:35: note: passing argument to parameter 'engineID' here u_char * engineID, /* IN - pointer to snmpEngineID */ ^ hydra-snmp.c:259:80: warning: passing 'char [256]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_md5(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~ hydra-snmp.c:101:35: note: passing argument to parameter 'key' here u_char * key) { /* OUT - pointer to caller 16-octet buffer */ ^ hydra-snmp.c:261:29: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_sha(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~~ hydra-snmp.c:150:35: note: passing argument to parameter 'password' here void password_to_key_sha(u_char * password, /* IN */ ^ hydra-snmp.c:261:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_sha(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~~~~~~~~~~~~ hydra-snmp.c:152:35: note: passing argument to parameter 'engineID' here u_char * engineID, /* IN - pointer to snmpEngineID */ ^ hydra-snmp.c:261:80: warning: passing 'char [256]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] password_to_key_sha(pass, strlen(pass), snmpv3info + 6, snmpv3info[5], key); ^~~ hydra-snmp.c:154:35: note: passing argument to parameter 'key' here u_char * key) { /* OUT - pointer to caller 20-octet buffer */ ^ hydra-snmp.c:319:47: warning: '/*' within block comment [-Wcomment] // const unsigned int /*key_len*///, ^ hydra-snmp.c:339:7: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] des_ncbc_encrypt(snmpv3_get2 + 2, buf, sizeof(snmpv3_get2) - 2, symcbc, (C_Block *) (initVect), DES_ENCRYPT); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/local/include/openssl/des_old.h:157:30: note: expanded from macro 'des_ncbc_encrypt' DES_ncbc_encrypt((i),(o),(l),&(k),(iv),(e)) ^~~ /opt/local/include/openssl/des.h:142:66: note: passing argument to parameter 'output' here void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output, ^ hydra-snmp.c:370:43: warning: passing 'char [1024]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] HMAC((EVP_MD *) EVP_md5(), key, 16, buffer, i - 1, hash, NULL); ^~~~~~ /opt/local/include/openssl/hmac.h:99:42: note: passing argument to parameter 'd' here const unsigned char *d, size_t n, unsigned char *md, ^ hydra-snmp.c:370:58: warning: passing 'char [64]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] HMAC((EVP_MD *) EVP_md5(), key, 16, buffer, i - 1, hash, NULL); ^~~~ /opt/local/include/openssl/hmac.h:99:70: note: passing argument to parameter 'md' here const unsigned char *d, size_t n, unsigned char *md, ^ hydra-snmp.c:373:44: warning: passing 'char [1024]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] HMAC((EVP_MD *) EVP_sha1(), key, 20, buffer, i - 1, hash, NULL); ^~~~~~ /opt/local/include/openssl/hmac.h:99:42: note: passing argument to parameter 'd' here const unsigned char *d, size_t n, unsigned char *md, ^ hydra-snmp.c:373:59: warning: passing 'char [64]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] HMAC((EVP_MD *) EVP_sha1(), key, 20, buffer, i - 1, hash, NULL); ^~~~ /opt/local/include/openssl/hmac.h:99:70: note: passing argument to parameter 'md' here const unsigned char *d, size_t n, unsigned char *md, ^ hydra-snmp.c:430:53: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((j = hydra_memsearch(buf + k, buf[k + 3], snmpv3_nouser, sizeof(snmpv3_nouser))) < 0) ^~~~~~~~~~~~~ ./hydra-mod.h:39:60: note: passing argument to parameter 'needle' here extern int hydra_memsearch(char *haystack, int hlen, char *needle, int nlen); ^ hydra-snmp.c:444:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_asciihex(snmpv3info, snmpv3infolen); ^~~~~~~~~~ ./hydra-mod.h:34:48: note: passing argument to parameter 'string' here extern void hydra_dump_asciihex(unsigned char *string, int length); ^ hydra-snmp.c:456:70: warning: passing 'unsigned char [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if ((buf[off + 15] & 5) == 4 && hydra_memsearch(buf, i, snmpv3_nouser, sizeof(snmpv3_nouser)) >= 0) { // user doe... ^~~~~~~~~~~~~ ./hydra-mod.h:39:60: note: passing argument to parameter 'needle' here extern int hydra_memsearch(char *haystack, int hlen, char *needle, int nlen); ^ hydra-snmp.c:529:24: warning: passing 'unsigned char [64]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_send(sock, snmpv3_init, sizeof(snmpv3_init), 0); ^~~~~~~~~~~ ./hydra-mod.h:30:41: note: passing argument to parameter 'buf' here extern int hydra_send(int socket, char *buf, int size, int options); ^ hydra-snmp.c:539:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_asciihex(snmpv3info, snmpv3infolen); ^~~~~~~~~~ ./hydra-mod.h:34:48: note: passing argument to parameter 'string' here extern void hydra_dump_asciihex(unsigned char *string, int length); ^ 27 warnings generated. gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-cvs.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-smtp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-smtp-enum.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-sapr3.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-ssh.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-sshkey.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-teamspeak.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-postgres.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-rsh.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-rlogin.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-oracle-listener.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-svn.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-pcanywhere.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-sip.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-oracle-sid.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-oracle.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-vmauthd.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-asterisk.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-firebird.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-afp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-ncp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-http-proxy.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-http-form.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-irc.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-redis.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-rdp.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c crc32.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c d3des.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c bfg.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c ntlm.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c sasl.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' sasl.c:378:34: warning: 'memset' call operates on objects of type 'char' while the size is based on a different type 'char *' [-Wsizeof-pointer-memaccess] memset(array[i], 0, sizeof(array[i])); ~~~~~~~~ ^~~~~~~~ sasl.c:378:34: note: did you mean to provide an explicit length? memset(array[i], 0, sizeof(array[i])); ^~~~~~~~ 1 warning generated. gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hmacmd5.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c hydra-mod.c -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' hydra-mod.c:838:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data(buf, ret, text); ^~~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:853:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data(buf, ret, text); ^~~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:859:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data(buf, ret, text); ^~~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:892:23: warning: passing 'char [1]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data("", -1, text); ^~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:929:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data(buff, got, text); ^~~~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:944:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] hydra_dump_data(buf, size, text); ^~~ ./hydra-mod.h:38:44: note: passing argument to parameter 'buf' here extern void hydra_dump_data(unsigned char *buf, int len, char *text); ^ hydra-mod.c:1091:24: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] printf("%04hx: ", i * 16); ~~~~~ ^~~~~~ %04x hydra-mod.c:1109:24: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] printf("%04hx: ", i * 16); ~~~~~ ^~~~~~ %04x hydra-mod.c:1245:24: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] printf("%04hx: ", i * 16); ~~~~~ ^~~~~~ %04x hydra-mod.c:1263:24: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] printf("%04hx: ", i * 16); ~~~~~ ^~~~~~ %04x 10 warnings generated. gcc -I. -O3 -I /opt/local/include -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lm -o hydra hydra.c hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-mssql.o hydra-xmpp.o hydra-http-proxy-urlenum.o hydra-snmp.o hydra-cvs.o hydra-smtp.o hydra-smtp-enum.o hydra-sapr3.o hydra-ssh.o hydra-sshkey.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-oracle-sid.o hydra-oracle.o hydra-vmauthd.o hydra-asterisk.o hydra-firebird.o hydra-afp.o hydra-ncp.o hydra-http-proxy.o hydra-http-form.o hydra-irc.o hydra-redis.o hydra-rdp.o hydra-s7-300.c crc32.o d3des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o -lm -lcurses -lssl -lidn -lpcre -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H clang: warning: argument unused during compilation: '-pie' hydra.c:1228:9: warning: implicit declaration of function 'service_redis' is invalid in C99 [-Wimplicit-function-declaration] service_redis(hydra_targets[target_no]->ip, hydra_heads[head_no]->sp[1], options, hydra_options.miscptr, hydra_brains.ofp, h... ^ hydra.c:2312:10: warning: implicit declaration of function 'setupterm' is invalid in C99 [-Wimplicit-function-declaration] if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) { ^ hydra.c:2312:39: warning: implicit declaration of function 'tigetnum' is invalid in C99 [-Wimplicit-function-declaration] if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) { ^ 3 warnings generated. ld: warning: directory not found for option '-L/usr/local/lib' ld: warning: directory not found for option '-L/lib' ld: library not found for -lidn clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [hydra] Error 1 This is the error now. I don't know why it's being cut above so just pasted here 3 warnings generated. |
can you please send the output of the following command: |
this is the output of that command. Starting hydra auto configuration ... Detected 64 Bit Darwin OS Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ... ... found Checking for idn (libidn.so) ... ... found Checking for curses (libcurses.so / term.h) ... ... found, color output enabled Checking for pcre (libpcre.so, pcre.h) ... ... found Checking for Postgres (libpq.so, libpq-fe.h) ... ... NOT found, module postgres disabled Checking for SVN (libsvn_client-1 libapr-1.so libaprutil-1.so) ... ... NOT found, module svn disabled Checking for firebird (libfbclient.so) ... ... NOT found, module firebird disabled Checking for MYSQL client (libmysqlclient.so, math.h) ... ... NOT found, module Mysql will not support version > 4.x Checking for AFP (libafpclient.so) ... ... NOT found, module Apple Filing Protocol disabled - Apple sucks anyway Checking for NCP (libncp.so / nwcalls.h) ... ... NOT found, module NCP disabled Checking for SAP/R3 (librfc/saprfc.h) ... ... NOT found, module sapr3 disabled Get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp Checking for libssh (libssh/libssh.h) ... ... NOT found, module ssh disabled Get it from http://www.libssh.org Checking for Oracle (libocci.so libclntsh.so / oci.h and libaio.so) ... ... NOT found, module Oracle disabled Get basic and sdk package from http://www.oracle.com/technetwork/database/features/instant-client/index.html Checking for GUI req's (pkg-config, gtk+-2.0) ... ... NOT found, optional anyway Checking for Android specialities ... ... rindex() found ... RSA_generate_key() found Checking for secure compile option support in gcc ... Compiling... yes Linking... no Hydra will be installed into .../bin of: /usr/local (change this by running ./configure --prefix=path) Writing Makefile.in ... now type "make" |
can you please checkout the current version here and then send in the output of "./configure --debug" ? |
Im having the same problem. I cloned the current version and the ./configure --debug results are below: Starting hydra auto configuration ... Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ... Hydra will be installed into .../bin of: /usr/local DEBUG: XDEFINES= -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lm -o hydra hydra.c hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-mssql.o hydra-xmpp.o hydra-http-proxy-urlenum.o hydra-snmp.o hydra-cvs.o hydra-smtp.o hydra-smtp-enum.o hydra-sapr3.o hydra-ssh.o hydra-sshkey.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-oracle-sid.o hydra-oracle.o hydra-vmauthd.o hydra-asterisk.o hydra-firebird.o hydra-afp.o hydra-ncp.o hydra-http-proxy.o hydra-http-form.o hydra-irc.o hydra-redis.o hydra-rdp.o hydra-s7-300.c crc32.o d3des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o -lm -lcurses -lssl -lidn -lpcre -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib -DLIBOPENSSL -DLIBNCURSES -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DHAVE_MATH_H And the error is correct.....there is no /lib Now this will probably result in an error regarding 64-bit symbols.....so you will have to do a make clean & ./configure again. This will probably result in fatal error: 'pcre.h' file not found: sudo rudix install pcre will fix this. After that I add -m32 to the CC line and I get:
ld: symbol(s) not found for architecture i386 If I add -m64 to the CC line I get: Undefined symbols for architecture x86_64: So this is where I am stuck |
can you please checkout and retry? I hope I fixed it. |
+1 - also getting the same errors |
@Viss did you try with the current version on github here? |
Viss@localhost-2: Starting hydra auto configuration ... Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ... Hydra will be installed into .../bin of: /usr/local Writing Makefile.in ... |
@Viss your compile problem has got nothing to do with this problem here :) can you please send the output of "./configure --debug" ? |
Im having the same issue here. gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -o pw-inspector pw-inspector.c |
Hello,
I tried compiling hydra on mac os x yosemite but after running the make command I ran into this error. Checking for stringprep.h in my system yields /opt/local/include/stringprep.h so am guessing that I have the said file.
Please advise.
EDIT:
hydra version 8.1
The text was updated successfully, but these errors were encountered: