docker build . -t rad_eap_test:latest
[+] Building 13.6s (12/16)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 846B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/frolvlad/alpine-gcc:latest 2.3s
=> [auth] frolvlad/alpine-gcc:pull token for registry-1.docker.io 0.0s
=> [ 1/11] FROM docker.io/frolvlad/alpine-gcc:latest@sha256:62e2ab064db2b476165f078f3623bf99297de9ee9f84c5e53feecb4aaf998678 3.6s
=> => resolve docker.io/frolvlad/alpine-gcc:latest@sha256:62e2ab064db2b476165f078f3623bf99297de9ee9f84c5e53feecb4aaf998678 0.0s
=> => sha256:f8f41ada4a8fb09244f8bbcb0f16707f32a52131df2312051bff798f5fe78a5f 56.08MB / 56.08MB 1.1s
=> => sha256:62e2ab064db2b476165f078f3623bf99297de9ee9f84c5e53feecb4aaf998678 702B / 702B 0.0s
=> => sha256:8aecba4bd4175b075a236ac5ae6933cfc6e7e66e7061411a1ba138a28a0b41b8 1.84kB / 1.84kB 0.0s
=> => extracting sha256:f8f41ada4a8fb09244f8bbcb0f16707f32a52131df2312051bff798f5fe78a5f 2.3s
=> [internal] load build context 0.0s
=> => transferring context: 37.75kB 0.0s
=> [ 2/11] WORKDIR /eapol 0.3s
=> [ 3/11] RUN apk update && apk upgrade && apk add --update linux-headers make openssl openssl-dev bind-tools freeradius-radclient grep bash && rm /var/cache/apk/* 3.5s
=> [ 4/11] RUN wget https://w1.fi/releases/wpa_supplicant-2.10.tar.gz -O - | tar -xz 1.2s
=> [ 5/11] COPY defconfig /eapol/wpa_supplicant-2.10/wpa_supplicant/.config 0.0s
=> [ 6/11] WORKDIR /eapol/wpa_supplicant-2.10/wpa_supplicant 0.0s
=> ERROR [ 7/11] RUN make eapol_test 2.5s
------
> [ 7/11] RUN make eapol_test:
#0 1.567 CC config.c
#0 1.892 CC notify.c
#0 2.390 In function 'wpa_bss_update',
#0 2.390 inlined from 'wpa_bss_update_scan_res' at bss.c:811:9:
#0 2.390 bss.c:701:25: error: pointer 'bss' may be used after 'realloc' [-Werror=use-after-free]
#0 2.390 701 | wpa_bss_update_pending_connect(wpa_s, bss, nbss);
#0 2.390 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 2.391 In file included from /eapol/wpa_supplicant-2.10/src/utils/common.h:12,
#0 2.391 from bss.c:11:
#0 2.391 /eapol/wpa_supplicant-2.10/src/utils/os.h:488:26: note: call to 'realloc' here
#0 2.391 488 | #define os_realloc(p, s) realloc((p), (s))
#0 2.391 | ^~~~~~~~~~~~~~~~~
#0 2.391 bss.c:689:24: note: in expansion of macro 'os_realloc'
#0 2.391 689 | nbss = os_realloc(bss, sizeof(*bss) + res->ie_len +
#0 2.391 | ^~~~~~~~~~
#0 2.514 cc1: all warnings being treated as errors
#0 2.520 make: *** [../src/build.rules:89: /eapol/wpa_supplicant-2.10/build/wpa_supplicant/bss.o] Error 1
------
Dockerfile:18
--------------------
16 |
17 | WORKDIR /eapol/wpa_supplicant-$WPA_SUPPLICANT_VERSION/wpa_supplicant
18 | >>> RUN make eapol_test
19 | RUN mv eapol_test /usr/local/bin/
20 |
--------------------
ERROR: failed to solve: process "/bin/sh -c make eapol_test" did not complete successfully: exit code: 2