dhclient (with NetworkManager, wireless) issue #20

Closed
opened 2021-07-09 23:41:18 +02:00 by andreagirotto · 4 comments

I configured NetworkManager to use dhclient instead of its internal dhcp client.

When upgraded:
dhclient-4.4.2.P1-1-x86_64.pkg.tar.zst
to:
dhclient-4.4.2.P1-1.1-x86_64.pkg.tar.zst

The wireless connection fails to connect (to every AP I could try) with these messages on the journald:

Jul 09 23:17:45 scooter dhclient[2491]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Jul 09 23:17:53 scooter dhclient[2491]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
Jul 09 23:18:09 scooter NetworkManager[445]: <warn>  [1625865489.9234] dhcp4 (wlan0): request timed out
Jul 09 23:18:09 scooter kernel: wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)

If I downgrade dhclient to the official Archlinux version: everything works (the wifi connection is established).
If I configure NetworkManager to use its internal dhcp client: everything works.

I configured NetworkManager to use dhclient instead of its internal dhcp client. When upgraded: dhclient-4.4.2.P1-1-x86_64.pkg.tar.zst to: dhclient-4.4.2.P1-1.1-x86_64.pkg.tar.zst The wireless connection fails to connect (to every AP I could try) with these messages on the journald: ``` Jul 09 23:17:45 scooter dhclient[2491]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 Jul 09 23:17:53 scooter dhclient[2491]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21 Jul 09 23:18:09 scooter NetworkManager[445]: <warn> [1625865489.9234] dhcp4 (wlan0): request timed out Jul 09 23:18:09 scooter kernel: wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING) ``` If I downgrade dhclient to the official Archlinux version: everything works (the wifi connection is established). If I configure NetworkManager to use its internal dhcp client: everything works.
Owner

Thanks for your report. That seems like the first (reported) package to not work due to possibly -O3 or x86-64-v3 (highly unlikely).

That needs to be tested further, possibly by compiling dhclient with -march=x86-64-v3 but without -O3. For now I'm going to blacklist it until this is sorted out.

Thanks for your report. That seems like the first (reported) package to *not* work due to possibly `-O3` or `x86-64-v3` (highly unlikely). That needs to be tested further, possibly by compiling dhclient with `-march=x86-64-v3` but without `-O3`. For now I'm going to blacklist it until this is sorted out.
anonfunc added the
bug
label 2021-07-09 23:53:19 +02:00
Author

I confirm that it is the -O3 flag.
My makepkg.conf has these options configured:

CFLAGS="-march=tigerlake -mtune=tigerlake -O3 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -flto"

so I downloaded the Archlinux original PKGBUILD and added these lines:

pkgrel=1.2
CFLAGS=${CFLAGS/-O3/-O2}
CFLAGS=${CFLAGS/-march=tigerlake/-march=x86-64-v3}
CFLAGS=${CFLAGS/-mtune=tigerlake/-mtune=generic}
CFLAGS=${CFLAGS/-flto/}

recompiled it and now it is working.
Thank you for the solution.

I confirm that it is the `-O3` flag. My `makepkg.conf` has these options configured: ``` CFLAGS="-march=tigerlake -mtune=tigerlake -O3 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ -fstack-clash-protection -fcf-protection \ -flto" ``` so I downloaded the Archlinux original `PKGBUILD` and added these lines: ``` pkgrel=1.2 CFLAGS=${CFLAGS/-O3/-O2} CFLAGS=${CFLAGS/-march=tigerlake/-march=x86-64-v3} CFLAGS=${CFLAGS/-mtune=tigerlake/-mtune=generic} CFLAGS=${CFLAGS/-flto/} ``` recompiled it and now it is working. Thank you for the solution.
Owner

Thanks for your tests. Looks like a separate -O3 blacklist is in order.

Well, currently only this package is buggy, but it would help down the road if more creep up.

Thanks for your tests. Looks like a separate -O3 blacklist is in order. Well, currently only this package is buggy, but it would help down the road if more creep up.
Owner

Going to keep this blacklisted until figured out why -O3 breaks this. Feel free to reopen if anything new comes up.

Going to keep this blacklisted until figured out why `-O3` breaks this. Feel free to reopen if anything new comes up.
Sign in to join this conversation.
No description provided.