Skip to content
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

missing dependencies pkg-config: No such file or directory #188

Closed
bwanaaa opened this issue May 10, 2021 · 2 comments
Closed

missing dependencies pkg-config: No such file or directory #188

bwanaaa opened this issue May 10, 2021 · 2 comments

Comments

@bwanaaa
Copy link

bwanaaa commented May 10, 2021

$make

make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
cc -O3 -Wall -Wextra -std=gnu99    -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c    -DVERSION_TAG=\"6.1.6-22-gb765ad3\" -DVERSION_YEAR=\"2021\"
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `testeapolpmk':
hcxpcapngtool.c:(.text+0x1a5f): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1a83): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1a97): undefined reference to `EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1aad): undefined reference to `EVP_DigestSignInit'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1aca): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1ae8): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1af4): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1c2e): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1c52): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1c6a): undefined reference to `EVP_sha256'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1c80): undefined reference to `EVP_DigestSignInit'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1ca0): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1cc2): undefined reference to `EVP_DigestSignFinal'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1cd6): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1ce2): undefined reference to `EVP_MD_CTX_reset'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1cf2): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1d07): undefined reference to `EVP_aes_128_cbc'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1d1d): undefined reference to `EVP_PKEY_new_CMAC_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1e8b): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1eaf): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1ec7): undefined reference to `EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1edd): undefined reference to `EVP_DigestSignInit'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1efe): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f21): undefined reference to `EVP_DigestSignFinal'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f35): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f41): undefined reference to `EVP_MD_CTX_reset'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f51): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f79): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1f91): undefined reference to `EVP_md5'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1fa7): undefined reference to `EVP_DigestSignInit'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1fc6): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1fe9): undefined reference to `EVP_DigestSignFinal'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1ffd): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x2009): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x2166): undefined reference to `EVP_DigestSignFinal'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x217a): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x2186): undefined reference to `EVP_MD_CTX_reset'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x21a9): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x21c1): undefined reference to `EVP_sha1'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `initlists':
hcxpcapngtool.c:(.text+0x31ac): undefined reference to `OPENSSL_init_crypto'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x31b8): undefined reference to `OPENSSL_init_crypto'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x31bd): undefined reference to `OpenSSL_version_num'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `testpmkid.part.0':
hcxpcapngtool.c:(.text+0x5e69): undefined reference to `EVP_PKEY_new_mac_key'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5e7d): undefined reference to `EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5e93): undefined reference to `EVP_DigestSignInit'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5ea4): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5eb0): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5ed4): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5ef3): undefined reference to `EVP_DigestSignFinal'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5f03): undefined reference to `EVP_PKEY_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x5f0f): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `getpmkid':
hcxpcapngtool.c:(.text+0x64c0): undefined reference to `PKCS5_PBKDF2_HMAC_SHA1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x651e): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `outputeapmschapv2hashlist':
hcxpcapngtool.c:(.text+0x6b88): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6b9d): undefined reference to `EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6bae): undefined reference to `EVP_DigestInit_ex'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6bd5): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6bf2): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6c10): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6c32): undefined reference to `EVP_DigestFinal_ex'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6c46): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6d88): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6e41): undefined reference to `EVP_MD_CTX_free'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `addpmkid':
hcxpcapngtool.c:(.text+0x70bc): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `gethandshake':
hcxpcapngtool.c:(.text+0x807e): undefined reference to `PKCS5_PBKDF2_HMAC_SHA1'
/usr/bin/ld: /tmp/ccjURBxJ.o: in function `decompressgz':
hcxpcapngtool.c:(.text+0x96d0): undefined reference to `inflateInit2_'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x9794): undefined reference to `inflate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x97a6): undefined reference to `inflateEnd'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x97e4): undefined reference to `inflateEnd'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x9819): undefined reference to `inflateEnd'
collect2: error: ld returned 1 exit status
make: *** No rule to make target 'hcxpcapngtool', needed by 'build'.  Stop.

how do i fix this?

@ZerBea
Copy link
Owner

ZerBea commented May 10, 2021

That is easy to fix. You have to install the missing dependencies (using your packet manager) as described in README.md:

Requirements
--------------
* Linux (recommended Arch Linux, but other distros should work, too (no support for other distributions).
* gcc 10 recommended (deprecated versions are not supported: https://gcc.gnu.org/)
* libopenssl and openssl-dev installed
* librt and librt-dev installed (should be installed by default)
* zlib and zlib-dev installed (for gzip compressed cap/pcap/pcapng files)
* libcurl and curl-dev installed (used by whoismac and wlancap2wpasec)
* libpthread and pthread-dev installed (used by hcxhashcattool)
* pkg-config installed
To install requirements on Kali use the following 'apt-get install pkg-config libcurl4-openssl-dev libssl-dev zlib1g-dev'
If you decide to compile latest git head, make sure that your distribution is updated on latest version.

The names of the packages could be different - that depend on your distribution.

Closed this issue, because it is not related to hcxtools, but you can still ask your questions here.

@ZerBea ZerBea closed this as completed May 10, 2021
@ZerBea
Copy link
Owner

ZerBea commented May 10, 2021

You can read more here:
#178
here
#174
here
#140
here
#135
and much more...

It looks like some distributions (e.g. KALI) doesn't install the dependencies by default.
Also make your your distribution is updated/upgraded to the latest version (e.g. KALI, UBUNTU, Debian, ...).

@ZerBea ZerBea changed the title cannot compile missing dependencies pkg-config: No such file or directory May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants