Comments (6)
Could you test again with current master?
from aircrack-ng-archive.
it is still broken, now differently :/
~/aircrack-ng[master]$ CC="arm-linux-musleabihf-gcc -isystem /home/rofl/x-prefix/armv7hf/include -L /home/rofl/x-prefix/armv7hf/lib" PKG_CONFIG_SYSROOT_DIR=/home/rofl/x-prefix/armv7hf/ PKG_CONFIG_LIBDIR=/home/rofl/x-prefix/armv7hf/lib/pkgconfig/ ./configure --host=arm-linux-musleabihf --without-opt
...
checking for python3... no
checking for python2... /bin/python2
checking for python2-config... /bin/python2-config
checking for Python prefix... /
checking for Python site-packages directory... lib/python2.7/site-packages
checking if Python >= '2.7'... configure: error: in `/home/rofl/aircrack-ng':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
there are several issues here:
- python2-config is utterly incompatible with cross-compilation, it should NOT be used
- we don't need to know python prefix or python site directories, since we don't install python libraries!
- we don't need to test if runtime dependencies like ethtool or python are installed
- and lastly, this should not break the build!
@jbenden ^
from aircrack-ng-archive.
I just fixed the cross-compilation problem with the configure
script. You should be able to continue with your compilation. It was tested on an x86_64 machine with an arm-unknown-linux-gnuabihf
compiler.
As for the other points; they are not really relevant to the cross-compilation being broken. But for clarity, Python is required as the ext-scripts
are Python. Due to this, it is a requirement to know where to install them. Ethtool is detected simply to show a user that it may be desirable to have it present. It is not a hard requirement, and does not cause the build to halt.
Sorry for breaking the build. :)
from aircrack-ng-archive.
thanks. how do you propose installing the python libraries into the crosscompiled rootfs, rather than into the host's filesystem ? running pyton2-config will return the host's directories! if nothing else, there should be an option to override the directories so this can be achieved. even better, if crosscompile is detected, either fail and require the user to pass these paths by hand, or just --disable-python, if those are not provided.
from aircrack-ng-archive.
here's a trick: if a python script (program) depends on other modules, these can be put into the same directory as the script itself, and the script can use them via
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import foo
the files could all be installed into $PREFIX/share/aircrack-ng/python/ (including the app using them) and $PREFIX/bin/airFOO-ng could be a symlink to ../share/aircrack-ng/python/airFOO-ng.py
from aircrack-ng-archive.
The --with-ext-scripts
option completely requires a working Python; as such, if none was found or specified (PYTHON
environment variable), then the configure
phase of the build will fail with an appropriate error message. For the Python programs to build and install, they all utilize distutils
for these various phases. I don't think there's a quick fix for this.
In short, when cross-compiling the --with-ext-scripts
option to configure
should not be used, for now.
from aircrack-ng-archive.
Related Issues (20)
- Mutiple targets support
- Strange interface name after installing aircrack on ubuntu HOT 1
- Is it compatible with the NetGear A6200 WiFi adapter? HOT 2
- WPA Handshake Capture Notice for out-of-scope ESSIDs which are not written to capture file
- Predicting, Decrypting, and Abusing WPA2/802.11 Group Keys
- DUP icmp packets Airbase-ng 1.2 rc4 HOT 3
- airmon-ng in Mac OS HOT 1
- AirDrop-ng: Unable to get driver HOT 1
- aircrack-ng compilation error: undefined reference 'cpuinfo' HOT 5
- airbase-ng not working HOT 2
- dcrack syntax error on line 202 HOT 1
- Can't Get My Experimental PC to Connect to the AP using airebase-ng HOT 1
- AirMon? Where are you? HOT 3
- airmon assumes original mac cant change HOT 2
- results of "uptime" and "wps" and other parameters are not saved in file. HOT 4
- Conflict in Airodump-ng when we have multiple Monitors from a wlan HOT 1
- Same value(s) in netxml file for client's <snrinfo> HOT 1
- Airodump-ng daemon mode
- Not Compiling (Compile Error) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aircrack-ng-archive.