Skip to content

dwm can't compile because "selmon is undeclared" #27

Open
@Kszug

Description

@Kszug

I tried to have dwm with polybar and tried installing your anybar and icp patches, while with the anybar patch everything compiled, with the icp I have multiple errors due to error: ‘selmon’ undeclared

here's a list of my other patches:
shifttools, vanitygaps, centeredmaster, deck, gaplessgrid, always on top, swallow

here's the whole error:
sudo make clean install                                                                                                      
[sudo] password for kszug: 
rm -f dwm dwm-msg drw.o dwm.o util.o dwm-6.2.tar.gz 
dwm build options: 
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/yajl  -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION="6.2" -DXINERAMA 
LDFLAGS  = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lX11-xcb -lxcb -lxcb-res  -lyajl 
CC       = cc 
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/yajl  -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.2\" -DXINERAMA drw.c 
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/yajl  -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.2\" -DXINERAMA dwm.c 
In file included from dwm.c:301: 
config.h:103:7: warning: initialization of ‘unsigned int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion] 
  103 |     { NULL,                         XK_Print,          spawn,              SHCMD("flameshot gui") }, 
      |       ^~~~ 
config.h:103:7: note: (near initialization for ‘keys[12].mod’) 
In file included from config.h:52, 
                 from dwm.c:301: 
vanitygaps.c:11:13: warning: ‘togglesmartgaps’ declared ‘static’ but never defined [-Wunused-function] 
   11 | static void togglesmartgaps(const Arg *arg); 
      |             ^~~~~~~~~~~~~~~ 
vanitygaps.c:21:13: warning: ‘nrowgrid’ declared ‘static’ but never defined [-Wunused-function] 
   21 | static void nrowgrid(Monitor *m); 
      |             ^~~~~~~~ 
dwm.c:1844:1: warning: ‘togglebar’ defined but not used [-Wunused-function] 
 1844 | togglebar(const Arg *arg) 
      | ^~~~~~~~~ 
In file included from config.h:52, 
                 from dwm.c:301: 
vanitygaps.c:629:1: warning: ‘grid’ defined but not used [-Wunused-function] 
  629 | grid(Monitor *m) 
      | ^~~~ 
vanitygaps.c:566:1: warning: ‘spiral’ defined but not used [-Wunused-function] 
  566 | spiral(Monitor *m) 
      | ^~~~~~ 
vanitygaps.c:560:1: warning: ‘dwindle’ defined but not used [-Wunused-function] 
  560 | dwindle(Monitor *m) 
      | ^~~~~~~ 
vanitygaps.c:371:1: warning: ‘centeredfloatingmaster’ defined but not used [-Wunused-function] 
  371 | centeredfloatingmaster(Monitor *m) 
      | ^~~~~~~~~~~~~~~~~~~~~~ 
vanitygaps.c:240:1: warning: ‘bstackhoriz’ defined but not used [-Wunused-function] 
  240 | bstackhoriz(Monitor *m) 
      | ^~~~~~~~~~~ 
vanitygaps.c:199:1: warning: ‘bstack’ defined but not used [-Wunused-function] 
  199 | bstack(Monitor *m) 
      | ^~~~~~ 
vanitygaps.c:133:1: warning: ‘incrivgaps’ defined but not used [-Wunused-function] 
  133 | incrivgaps(const Arg *arg) 
      | ^~~~~~~~~~ 
vanitygaps.c:122:1: warning: ‘incrihgaps’ defined but not used [-Wunused-function] 
  122 | incrihgaps(const Arg *arg) 
      | ^~~~~~~~~~ 
vanitygaps.c:111:1: warning: ‘incrovgaps’ defined but not used [-Wunused-function] 
  111 | incrovgaps(const Arg *arg) 
      | ^~~~~~~~~~ 
vanitygaps.c:100:1: warning: ‘incrohgaps’ defined but not used [-Wunused-function] 
  100 | incrohgaps(const Arg *arg) 
      | ^~~~~~~~~~ 
vanitygaps.c:89:1: warning: ‘incrogaps’ defined but not used [-Wunused-function] 
   89 | incrogaps(const Arg *arg) 
      | ^~~~~~~~~ 
vanitygaps.c:78:1: warning: ‘incrigaps’ defined but not used [-Wunused-function] 
   78 | incrigaps(const Arg *arg) 
      | ^~~~~~~~~ 
vanitygaps.c:67:1: warning: ‘incrgaps’ defined but not used [-Wunused-function] 
   67 | incrgaps(const Arg *arg) 
      | ^~~~~~~~ 
vanitygaps.c:61:1: warning: ‘defaultgaps’ defined but not used [-Wunused-function] 
   61 | defaultgaps(const Arg *arg) 
      | ^~~~~~~~~~~ 
vanitygaps.c:50:1: warning: ‘togglegaps’ defined but not used [-Wunused-function] 
   50 | togglegaps(const Arg *arg) 
      | ^~~~~~~~~~ 
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/yajl  -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.2\" -DXINERAMA util.c 
cc -o dwm drw.o dwm.o util.o -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lX11-xcb -lxcb -lxcb-res  -lyajl 
cc -o dwm-msg dwm-msg.o -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lX11-xcb -lxcb -lxcb-res  -lyajl 
mkdir -p /usr/local/bin 
cp -f dwm dwm-msg /usr/local/bin 
chmod 755 /usr/local/bin/dwm 
chmod 755 /usr/local/bin/dwm-msg 
mkdir -p /usr/local/share/man/man1 
sed "s/VERSION/6.2/g" < dwm.1 > /usr/local/share/man/man1/dwm.1 
chmod 644 /usr/local/share/man/man1/dwm.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions