seemoo-lab / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
2.46k stars 456 forks source link

Building APK Error #252

Open Exxmixx opened 6 years ago

Exxmixx commented 6 years ago

I have everything installed, using NDKr11c as it says I have tom when I run the 'make' command, this is my error:

make -C nexutil/.
make[1]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/nexutil'
cd ../libargp && make
make[2]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libargp'
/media/tek/Internal/Tools/NetHunter/nexmon/android-ndk-r11c//ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
make[3]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libargp'
make[3]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libargp'
make[2]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libargp'
cd ../libnexio && make
make[2]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libnexio'
/media/tek/Internal/Tools/NetHunter/nexmon/android-ndk-r11c//ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
make[3]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libnexio'
make[3]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libnexio'
make[2]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/libnexio'
touch nexutil.c
/media/tek/Internal/Tools/NetHunter/nexmon/android-ndk-r11c//ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21 GIT_VERSION=2.2.2-195-g01e0
make[2]: Entering directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/nexutil'
[arm64-v8a] Compile        : nexutil <= nexutil.c
[arm64-v8a] Executable     : nexutil
[arm64-v8a] Install        : nexutil => libs/arm64-v8a/nexutil
[x86_64] Compile        : nexutil <= nexutil.c
[x86_64] Executable     : nexutil
[x86_64] Install        : nexutil => libs/x86_64/nexutil
[mips64] Compile        : nexutil <= nexutil.c
[mips64] Executable     : nexutil
[mips64] Install        : nexutil => libs/mips64/nexutil
[armeabi-v7a] Compile thumb  : nexutil <= nexutil.c
[armeabi-v7a] Executable     : nexutil
./argp-help.c:1643: error: undefined reference to 'argp_fmtstream_set_wmargin'
./argp-help.c:1657: error: undefined reference to 'argp_fmtstream_set_lmargin'
./argp-help.c:1663: error: undefined reference to 'argp_fmtstream_puts'
./argp-help.c:1675: error: undefined reference to 'argp_fmtstream_set_wmargin'
./argp-help.c:1676: error: undefined reference to 'argp_fmtstream_set_lmargin'
./argp-help.c:1678: error: undefined reference to 'argp_fmtstream_putc'
./argp-help.c:1704: error: undefined reference to 'argp_fmtstream_putc'
./argp-help.c:1111: error: undefined reference to 'argp_fmtstream_set_lmargin'
./argp-help.c:1132: error: undefined reference to 'argp_fmtstream_set_wmargin'
./argp-help.c:1140: error: undefined reference to 'argp_fmtstream_putc'
./argp-help.c:1141: error: undefined reference to 'argp_fmtstream_putc'
./argp-help.c:1174: error: undefined reference to 'argp_fmtstream_set_wmargin'
./argp-help.c:1162: error: undefined reference to 'argp_fmtstream_puts'
./argp-help.c:1189: error: undefined reference to 'argp_fmtstream_set_lmargin'
./argp-help.c:1208: error: undefined reference to 'argp_fmtstream_point'
./argp-help.c:1216: error: undefined reference to 'argp_fmtstream_puts'
./argp-help.c:1220: error: undefined reference to 'argp_fmtstream_puts'
./argp-help.c:1460: error: undefined reference to 'argp_fmtstream_write'
./argp-help.c:1550: error: undefined reference to 'argp_fmtstream_point'
./argp-help.c:1572: error: undefined reference to 'argp_fmtstream_point'
./argp-help.c:956: error: undefined reference to 'argp_fmtstream_point'
collect2: error: ld returned 1 exit status
/media/tek/Internal/Tools/NetHunter/nexmon/android-ndk-r11c/build/core/build-binary.mk:678: recipe for target 'local/armeabi-v7a/nexutil' failed
make[2]: *** [local/armeabi-v7a/nexutil] Error 1
make[2]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/nexutil'
Makefile:11: recipe for target 'libs/armeabi/nexutil' failed
make[1]: *** [libs/armeabi/nexutil] Error 2
make[1]: Leaving directory '/media/tek/Internal/Tools/NetHunter/nexmon/utilities/nexutil'
Makefile:6: recipe for target 'nexutil/.' failed
make: *** [nexutil/.] Error 2
CeruleanSky commented 5 years ago

I had the same issue. This was caused by an unclean build environment.
I am not sure what the best way is, but for me a git checkout . in the nexmon root directory worked. you could also try a git checkout utilities