error: ‘Monitor’ has no member named ‘clients’
Closed this issue · 8 comments
shivangp76 commented
After applying the dwm-single-tagset-6.2.diff and attempting to rebuild dwm, I got the following error:
$ make install
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION="6.2" -DXINERAMA
LDFLAGS = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.2\" -DXINERAMA dwm.c
dwm.c: In function ‘drawbar’:
dwm.c:774:12: error: ‘Monitor’ has no member named ‘clients’
774 | for (c = m->clients; c; c = c->next) {
| ^~
make: *** [Makefile:18: dwm.o] Error 1
mhdzli commented
@shivangp76
Witch version of dwm did you use?
shivangp76 commented
6.2
mhdzli commented
@shivangp76
Did you apply other patches before single-tagset?
shivangp76 commented
Nope, I did not apply any other patches.
mhdzli commented
Watch this video on my lbry channel.
mhdzli commented
@shivangp76
Apparently you have for (c = m->clients; c; c = c->next) {
somewhere in your dwm.c
if you apply this patch correctly it should change to for (c = m->cl->clients; c; c = c->next) {
Did you use git apply for that?
shivangp76 commented
I solved it. It turns out when I cloned dwm from the official suckless
repo, there were some changes to the code (even though it was still version
6.2) which created errors when applying the patch. To fix this, I just
downloaded the tarball from their website and then applied the patch. Thank
you for the help!
…On Sat, Aug 8, 2020, 6:41 AM mhdzli ***@***.***> wrote:
Closed #1 <#1>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHFCBU6WHQDWQHDD77ONN5DR7UTUVANCNFSM4PYR372A>
.
mhdzli commented
@shivangp76
Great. Happy to hear that and your welcome!