Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2018 11:20:57 +0200
From:      Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
To:        freebsd-ports@freebsd.org
Cc:        freebsd-arm@freebsd.org
Subject:   Compiling latest aircrack-ng failed on ARM 32bit
Message-ID:  <E1fezgf-0077Bm-6l@smtp.hs-karlsruhe.de>

next in thread | raw e-mail | index | archive | help
Hello,

the maintainer (Lars) of the aircrack-ng port directed me to this
(ports=40freebsd.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
=23 uname -a                                                             =
       =20

FreeBSD IZ-WLAN 12.0-CURRENT FreeBSD 12.0-CURRENT =232 r336070M:=5C
 Sat Jul  7 21:46:46 CEST 2018=5C
     root=40hs-karlsruhe.de:/usr/obj/usr/src/arm.armv6/sys/RPI-Bsc  arm
=23=20

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=20
=60/usr/ports/net-mgmt/aircrack-ng/work/aircrack-ng-1.3':
configure: error: _AX_COMPILER_VERSION_GNU unknown gcc major
See =60config.log' for more details
=3D=3D=3D>  Script =22configure=22 failed unexpectedly.
Please report the problem to ports=40FreeBSD.org =5Bmaintainer=5D and att=
ach the
=22/usr/ports/net-mgmt/aircrack-ng/work/aircrack-ng-1.3/config.log=22 inc=
luding
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 =5Bexit code 1=5D: /usr/bin/script -qa=20
/tmp/portupgrade20180711-9802-9x00yb env UPGRADE_TOOL=3Dportupgrade=20
UPGRADE_PORT=3Daircrack-ng-1.2.r4_1 UPGRADE_PORT_VER=3D1.2.r4_1 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / =21:failed)
        =21 net-mgmt/aircrack-ng (aircrack-ng-1.2.r4_1)   (configure erro=
r)
=23=20



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

=23=23 ---------------- =23=23
=23=23 Cache variables. =23=23
=23=23 ---------------- =23=23

ac_cv_build=3Darmv6-portbld-freebsd12.0
ac_cv_c_compiler_gnu=3Dyes
ac_cv_c_int16_t=3Dyes
ac_cv_c_int32_t=3Dyes
ac_cv_c_int64_t=3Dyes
ac_cv_c_int8_t=3Dyes
ac_cv_c_uint16_t=3Dyes
ac_cv_c_uint32_t=3Dyes
ac_cv_c_uint64_t=3Dyes
ac_cv_c_uint8_t=3Dyes
ac_cv_cflags_warn_all=3D-Wall
ac_cv_cxx_compiler_gnu=3Dyes
ac_cv_cxxflags_warn_all=3D-Wall
ac_cv_env_BREW_set=3D''
ac_cv_env_BREW_value=3D''
...


Any idea how to fix this?


Ralf




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1fezgf-0077Bm-6l>