Compiling latest aircrack-ng failed on ARM 32bit

Ralf Wenk iz-rpi03 at hs-karlsruhe.de
Mon Jul 16 09:56:31 UTC 2018


Hello,

the maintainer (Lars Engels) of the aircrack-ng port directed me to this
(ports at freebsd.org) list.

When trying to upgrade the aircrack-ng port the configure script ran
into the following error:

  configure: error: _AX_COMPILER_VERSION_GNU unknown gcc major


The system I try to upgrade aircrack-ng is an RaspberryPI B.
Kernel and world are cross-compiled and relatively new
# uname -a                                                                     

FreeBSD IZ-WLAN 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r336070M:\
 Sat Jul  7 21:46:46 CEST 2018\
     root at hs-karlsruhe.de:/usr/obj/usr/src/arm.armv6/sys/RPI-Bsc  arm
# 

The latest known working version on that system is aircrack-ng-1.2.r4_1.
Both newer versions from ports failed with the same error message.


The configure script stops with:

...
checking whether C compiler accepts -Wno-unused-but-set-variable... yes
checking whether C compiler accepts -Wno-array-bounds... yes
checking for C++ compiler vendor... gnu
checking for C++ compiler version... configure: error: in 
`/usr/ports/net-mgmt/aircrack-ng/work/aircrack-ng-1.3':
configure: error: _AX_COMPILER_VERSION_GNU unknown gcc major
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to ports at FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/aircrack-ng/work/aircrack-ng-1.3/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/aircrack-ng
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade20180711-9802-9x00yb env UPGRADE_TOOL=portupgrade 
UPGRADE_PORT=aircrack-ng-1.2.r4_1 UPGRADE_PORT_VER=1.2.r4_1 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! net-mgmt/aircrack-ng (aircrack-ng-1.2.r4_1)   (configure error)
# 



In total config.log contains 4592 lines, so I do not include it whole.
Related to the error message it contains after two thirds of the lines:

...
configure:26780: g++7 -c -O -pipe -I/usr/include -Wl,-rpath=/usr/local/lib/gcc7
 -fno-strict-aliasing  -Wl,-rpath=/usr/local/lib/gcc7  -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2 conftest.cpp >&5
configure:26780: $? = 0
configure:26788: result: gnu
configure:26793: checking for C++ compiler version
configure:27015: g++7 -o conftest -O -pipe -I/usr/include 
-Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing  
-Wl,-rpath=/usr/local/lib/gcc7  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE 
-D_FORTIFY_SOURCE=2  -L/usr/lib  -Wl,-rpath=/usr/local/lib/gcc7 
-L/usr/local/lib/gcc7 conftest.cpp  -ldl -lm >&5
/usr/local/lib/gcc7/libstdc++.so: undefined reference to `__aeabi_idiv at GCC_3.5'
/usr/local/lib/gcc7/libstdc++.so: undefined reference to 
`__aeabi_uldivmod at GCC_3.5'
/usr/local/lib/gcc7/libstdc++.so: undefined reference to 
`__aeabi_uidiv at GCC_3.5'
collect2: error: ld returned 1 exit status
configure:27015: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "aircrack-ng"
| #define PACKAGE_TARNAME "aircrack-ng"
| #define PACKAGE_VERSION "1.3"
| #define PACKAGE_STRING "aircrack-ng 1.3"
| #define PACKAGE_BUGREPORT "https://forum.aircrack-ng.org"
| #define PACKAGE_URL ""
| #define PACKAGE "aircrack-ng"
| #define VERSION "1.3"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define _REVISION "1.3"
| #define HAVE_OPENSSL_CRYPTO_H 1
| #define HAVE_PCAP_H 1
| #define HAVE_PCAP 1
| #define HAVE_PCRE 1
| #define HAVE_SQLITE3_H 1
| #define HAVE_SQLITE3 1
| #define HAVE_SQLITE 1
| #define HAVE_ZLIB 1
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define _REENTRANT 1
| /* end confdefs.h.  */
| 
| static long int longval () { return __GNUC__; }
| static unsigned long int ulongval () { return __GNUC__; }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
| 
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     return 1;
|   if ((__GNUC__) < 0)
|     {
|       long int i = longval ();
|       if (i != (__GNUC__))
|       return 1;
|       fprintf (f, "%ld", i);
|     }
|   else
|     {
|       unsigned long int i = ulongval ();
|       if (i != (__GNUC__))
|       return 1;
|       fprintf (f, "%lu", i);
|     }
|   /* Do not output a trailing newline, as this causes \r\n confusion
|      on some platforms.  */
|   return ferror (f) || fclose (f) != 0;
| 
|   ;
|   return 0;
| }
configure:27018: error: in `/usr/ports/net-mgmt/aircrack-ng/work/aircrack-ng-1.
3':
configure:27021: error: _AX_COMPILER_VERSION_GNU unknown gcc major
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=armv6-portbld-freebsd12.0
ac_cv_c_compiler_gnu=yes
ac_cv_c_int16_t=yes
ac_cv_c_int32_t=yes
ac_cv_c_int64_t=yes
ac_cv_c_int8_t=yes
ac_cv_c_uint16_t=yes
ac_cv_c_uint32_t=yes
ac_cv_c_uint64_t=yes
ac_cv_c_uint8_t=yes
ac_cv_cflags_warn_all=-Wall
ac_cv_cxx_compiler_gnu=yes
ac_cv_cxxflags_warn_all=-Wall
ac_cv_env_BREW_set=''
ac_cv_env_BREW_value=''
...


Any idea how to fix this?


Ralf



More information about the freebsd-ports mailing list