On 2020/03/23 09:00, Martin wrote: > It looks stupid, but I can't add DEBUG='-g' to aircrack-ng executable when > built it from ports. > > I've tried to: > > 1. make DEBUG='-g' > 2. in Makefile MAKE_FLAGS+= CC=${CC} DEBUG='-g' > > In both cases no egdb debug symbols added to the executable during build. > > Some search points me to kernel debugging by adding makeoptions DEBUG="-g" > into kernel config file. But nothing found how to deal with port executable > debugging. > > Please advice. > > Martin > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Friday, March 20, 2020 12:32 PM, Klemens Nanni <k...@openbsd.org> wrote: > > > On Fri, Mar 20, 2020 at 10:33:51AM +0000, Martin wrote: > > > > > Tried with GDB from ports, no debugging symbols found. > > > > There is no debug-aircrack-ng package yet; you could work on that or > > simply rebuild the port with DEBUG='-g' to get an executable with > > symbols you can load from egdb using `symbol-file FILE'. > > > > > On Tuesday, March 10, 2020 2:16 PM, Martin martin...@protonmail.com wrote: > > > > > > > It seems malloc problem. aircrack-ng from packages. > > > > 6.6-current amd64 setting is: > > > > /etc/sysctl.conf > > > > vm.malloc_conf=CF > > > > Should I set different malloc rule or is it a bug? > > > > From malloc(3): > > > > If a program changes behavior if any of these options (except X) are > > used, it is buggy. > >
The port needs this diff to honour CFLAGS, then you can "make clean; make DEBUG=-g repackage reinstall". benoit, ok? Index: Makefile =================================================================== RCS file: /cvs/ports/security/aircrack-ng/Makefile,v retrieving revision 1.29 diff -u -p -r1.29 Makefile --- Makefile 6 Dec 2019 14:29:40 -0000 1.29 +++ Makefile 23 Mar 2020 14:01:42 -0000 @@ -2,7 +2,7 @@ COMMENT= 802.11 WEP and WPA-PSK keys cracking program DISTNAME= aircrack-ng-1.5.2 -REVISION= 3 +REVISION= 4 CATEGORIES= security HOMEPAGE= https://www.aircrack-ng.org/ @@ -39,7 +39,7 @@ CONFIGURE_STYLE= autoreconf CONFIGURE_ENV+= ax_cv_neon_cflags=no ax_cv_neon_cxxflags=no MAKE_ENV+= SQLITE=true UNSTABLE=true -MAKE_FLAGS+= CC=${CC} +MAKE_FLAGS+= CC="${CC}" CFLAGS="${CFLAGS}" .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" PKG_ARGS+= -Dx86=1