You are not logged in.

#1 2019-11-12 18:16:44

mormonxyz
Member
Registered: 2019-10-05
Posts: 7

[SOLVED] Error compiling dwm after applying the patch "alpha"

I get the following error when I run the command "sudo make install" after applying the patch "dwm-alpha-20180613-b69c870.diff" successfully to dwm 6.2:


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=2 -DVERSION="6.2" -DXINERAMA
LDFLAGS  = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lXrender
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=2 -DVERSION=\"6.2\" -DXINERAMA dwm.c
dwm.c: In function ‘setup’:
dwm.c:1581:46: error: ‘alphas’ undeclared (first use in this function)
 1581 |   scheme[i] = drw_scm_create(drw, colors[i], alphas[i], 3);
      |                                              ^~~~~~
dwm.c:1581:46: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:18: dwm.o] Error 1

Last edited by mormonxyz (2019-11-12 19:02:40)

Offline

#2 2019-11-12 18:55:04

mormonxyz
Member
Registered: 2019-10-05
Posts: 7

Re: [SOLVED] Error compiling dwm after applying the patch "alpha"

I solved this problem by deleting the config.h file and then running the command

sudo make install

Last edited by mormonxyz (2019-11-30 15:18:36)

Offline

Board footer

Powered by FluxBB