aircrack-ng installation error: undefined reference to 'cpuinfo' please help...
I am using Fedora 27, I want to compile aircrack-ng-1.2-rc4 from the source since the yum and dnf installation has some bugs specially on airodump and airbase.
below are the output and errors when I enter make command... [root@fedora aircrack-ng-1.2-rc4]# make make -C src all make[1]: Entering directory '/home/aircrack-ng-1.2-rc4/src' gcc -g -w -Wall -O3 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude crypto.o common.o uniqueiv.o aircrack-ptw-lib.o memory.o simd-intrinsics.o aircrack-ng-core.o wpapsk-simd.o sha1-sse2.S -o aircrack-ng-simd -lpthread -lssl -lcrypto -lstdc++ liblinecount.a aircrack-ng-core.o: In function `crack_wpa_thread': /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4038: undefined reference to `cpuid_simdsize' /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4038: undefined reference to `cpuinfo' /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4088: undefined reference to `cpuinfo' /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4088: undefined reference to `cpuinfo' /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4128: undefined reference to `cpuinfo' /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4131: undefined reference to `cpuinfo' aircrack-ng-core.o:/home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:4221: more undefined references to `cpuinfo' follow aircrack-ng-core.o: In function `main': /home/toshi82/aircrack-ng-1.2-rc4/src/aircrack-ng.c:5217: undefined reference to `cpuid_getinfo' wpapsk-simd.o: In function `init_wpapsk': /home/toshi82/aircrack-ng-1.2-rc4/src/wpapsk.c:518: undefined reference to `cpuinfo' wpapsk-simd.o: In function `wpapsk_sse': /home/toshi82/aircrack-ng-1.2-rc4/src/wpapsk.c:218: undefined reference to `cpuinfo' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:186: aircrack-ng-simd] Error 1 make[1]: Leaving directory '/home/aircrack-ng-1.2-rc4/src' make: *** [Makefile:25: all] Error 2 |
Quote:
You say nothing about version/distro of Linux, which is important, since the missing package name will vary by distro. Further, the software you're trying to compile is probably already available as a package...which we can't tell you how to find/install because we know nothing about your setup. Also, doing basic research first is a good thing, since the very error you mention has been filed as a bug-report: https://github.com/aircrack-ng/aircrack-ng/issues/155 |
toshi382, hello and welcome to LQ.
Have you ever compiled from source? What is your skill level? |
Hello,
Sorry for the incompleteness. I am using Fedora 27, I want to compile aircrack-ng-1.2-rc4 from the source since the yum and dnf installation has some bugs specially on airodump and airbase. Yes I am new with Linux so I need your guidance about this problem. Thanks. |
I have a lot of questions here, you have a lot going on.
FC27 is pretty new. Usually when you get a new distro you also have to put in a lot of development support. A default install usually won't let you build from source. Do you have some web site or tutorial that tells you how to set up a build environment? I see an .rpm listed here. Have you tried it? https://rpmfind.net/linux/rpm2html/s...ry=aircrack-ng I assume it is the same as https://fedora.pkgs.org/27/fedora-x8...86_64.rpm.html Might be better plan easier to just get a distro that doesn't have problems if you really want to use this program. What issues with this do you have by the way, it may have nothing to do with this program. As you can see however it is an RC release. Unstable. |
I already installed the rpm. However, same error with the yum and dnf installation.
Airodump and airbase don't work with this installation because my laptop does not support AVX instruction. Aircrack wiki suggested that I need to compile from the source and edit some of its configuration and source file before installation. So I need to know what is an undefined reference to 'cpuinfo' mean... |
Quote:
Have you checked out with geany for example what that line does? -- I have a reason why I use gentoo, It ships with a working toolchain. I wanted to do the same with ubuntu many years ago and ditched that for obvious reasons. And some stuff does not compile from git and other stuff. I usually only build from git or use gentoo based packages, or gentoo overlay packages. IF I do not find it there it is usually some git stuff. And that only sometimes build. some stuff needs a lot of patches or is not proplery coded. happened several times. -- Have you reported back to your distro, so they may fix your issue? |
yes, I already replaced the file aircrack-ng.c with the latest git source code. I reported this issue to aircrack-ng.org. But no replies yet.
|
https://github.com/aircrack-ng/aircr.../aircrack-ng.c
Quote:
When you know what you are doing you could set that by hand in the code. Could be interesting where the issue is at the end. Quote:
Quote:
Have you tried to set active the else path? does it run than? Quote:
|
I tried to deactivate other stuff but it gives the same result...
|
I think I solved the
Quote:
Quote:
However, I cannot solved the problem on the following error lines Quote:
|
Quote:
my linuxfromscratch system here. Did you edit the make file before you ran make? I'm asking because your compile attempt seems to be missing a step. On my first attempt make ran "autocfg" while your output shows yours did not. Here's mine: Code:
terry [ /sources/blfs/sources/xc/aircrack-ng-1.2-rc4 ]$ make I don't know if that's part of your problem but I thought I'd point it out to you. By the way, I did a make clean and reran make and the autocfg did not get run the 2nd time so it only happens at the first make. |
Guys I found the problem.
I edited the MULTIBIN in the common.mak and change the value to "true" as suggested in https://aircrack-ng.blogspot.com/201...rovements.html for non-AVX unit. However, changing the MULTIBIN value into "true" will result to the error presented above. So, changing the vlaue of MULTIBIN is not a good idea IMO. Thanks guys... Solve... |
All times are GMT -5. The time now is 03:07 PM. |