You are not logged in.

#1 2010-11-15 00:50:04

finh
Member
Registered: 2010-10-31
Posts: 22

[solved] dwm dwm.c errors

I recently applied the bottom stack patch and everything was fine, then I tried to apply the pertag patch, after which I found out was not compatible with the bottom stack, so I tried to apply the updated pertag patch. I'm trying to compile and I'm getting these errors:

dwm build options:
CFLAGS   = -g -std=c99 -pedantic -Wall -O0 -I. -I/usr/include -I/usr/X11R6/include -DVERSION="5.8" -DXINERAMA
LDFLAGS  = -g -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
CC       = cc
CC dwm.c
dwm.c:283: error: redefinition of 'struct Monitor'
dwm.c: In function 'cleanupmon':
dwm.c:531: warning: unused variable 'i'
dwm.c: In function 'togglebar':
dwm.c:1681: error: 'Monitor' has no member named 'showbars'
make: *** [dwm.o] Error 1

Here is my dwm.c file.
http://ompldr.org/vNjV4eg

Anyone know how to fix this? I don't know where to start in the dwm.c file.

Last edited by finh (2010-11-15 02:01:44)

Offline

#2 2010-11-15 01:32:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] dwm dwm.c errors

I'm not sure what you have done - but you have two struct Monitor entries...

The simplest way to get it working is to patch pertag to a vanilla dwm.c and then hand patch bstack.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-11-15 02:01:25

finh
Member
Registered: 2010-10-31
Posts: 22

Re: [solved] dwm dwm.c errors

yeap, I just started from scratch and applied the new patches.

thanks.

Offline

Board footer

Powered by FluxBB