You are not logged in.

#1 2015-02-18 00:23:07

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

[SOLVED-ish] Useless gaps patch on dwm failing to build

Trying to apply uselessgaps unsuccessfully.

Here's the error at compilation:

┌─[parazyd][archbox][~/dwm]
└──╼ makepkg -efi
==> Making package: dwm 6.0-2 (Wed Feb 18 00:45:08 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -I /usr/include/freetype2 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama -lXft -lfontconfig
CC       = cc
CC dwm.c
In file included from dwm.c:336:0:
config.h:52:2: warning: initialization makes integer from pointer without a cast
  { "",  tile },     /* first entry is default */
  ^
config.h:52:2: warning: (near initialization for ‘layouts[0].addgaps’)
config.h:52:2: error: initializer element is not computable at load time
config.h:52:2: error: (near initialization for ‘layouts[0].addgaps’)
config.h:53:2: warning: initialization makes integer from pointer without a cast
  { "",  NULL },     /* no layout function means floating behavior */
  ^
config.h:53:2: warning: (near initialization for ‘layouts[1].addgaps’)
config.h:54:2: warning: initialization makes integer from pointer without a cast
  { "",  monocle }, 
  ^
config.h:54:2: warning: (near initialization for ‘layouts[2].addgaps’)
config.h:54:2: error: initializer element is not computable at load time
config.h:54:2: error: (near initialization for ‘layouts[2].addgaps’)
config.h:55:2: warning: initialization makes integer from pointer without a cast
  { "",  spiral },
  ^
config.h:55:2: warning: (near initialization for ‘layouts[3].addgaps’)
config.h:55:2: error: initializer element is not computable at load time
config.h:55:2: error: (near initialization for ‘layouts[3].addgaps’)
config.h:56:2: warning: initialization makes integer from pointer without a cast
  { "",  dwindle },
  ^
config.h:56:2: warning: (near initialization for ‘layouts[4].addgaps’)
config.h:56:2: error: initializer element is not computable at load time
config.h:56:2: error: (near initialization for ‘layouts[4].addgaps’)
config.h:57:2: warning: initialization makes integer from pointer without a cast
  { "",  bstack },
  ^
config.h:57:2: warning: (near initialization for ‘layouts[5].addgaps’)
config.h:57:2: error: initializer element is not computable at load time
config.h:57:2: error: (near initialization for ‘layouts[5].addgaps’)
In file included from dwm.c:336:0:
config.h:75:1: warning: initialization from incompatible pointer type
 static const char *scratchpadcmd[]   = { termcmd, "-title", scratchpadname, "-geometry", "160x40", NULL };
 ^
config.h:75:1: warning: (near initialization for ‘scratchpadcmd[0]’)
Makefile:18: recipe for target 'dwm.o' failed
make: *** [dwm.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

And here are dwm.c and config.h I want this to work with:
https://raw.githubusercontent.com/paraz … ster/dwm.c
https://raw.githubusercontent.com/paraz … r/config.h

Any ideas on making this work?

Last edited by parazyd (2015-02-19 06:01:15)

Offline

#2 2015-02-18 00:31:45

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

Re: [SOLVED-ish] Useless gaps patch on dwm failing to build

The scratchpad error is pretty evident from your config.h; the others look like the uselessgaps patch needs updating...

This, however, isn't a support thread as such.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-02-18 00:33:53

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: [SOLVED-ish] Useless gaps patch on dwm failing to build

jasonwryan wrote:

The scratchpad error is pretty evident from your config.h; the others look like the uselessgaps patch needs updating...

This, however, isn't a support thread as such.

It's the uselessgaps I'm trying to fix. Do I just open a new thread?

Offline

#4 2015-02-18 00:36:46

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

Re: [SOLVED-ish] Useless gaps patch on dwm failing to build

I'll split this off...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-02-19 06:00:44

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: [SOLVED-ish] Useless gaps patch on dwm failing to build

Built by patching against vanilla.

Offline

Board footer

Powered by FluxBB