[SOLVED] dwm Compiling Error

Hello,
I am running dwm, and I love how simple and light it is. I edited my config.h few times and compiled it and it was fine. The last time I tried, it gave me an error. I could not figure that out. I tried to use a valid config.h from the internet in case I missed my config.h up, and I tried to re-install it. Nothing worked. This is the error that I get when I run the command makepkg -efi --noconfirm:
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC = cc
CC dwm.c
In file included from dwm.c:288:0:
config.h:18:19: error: ‘MAXTAGLEN’ undeclared here (not in a function)
const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "w" };
^
In file included from dwm.c:288:0:
config.h: In function ‘focusstackf’:
config.h:132:9: error: ‘sel’ undeclared (first use in this function)
if(!sel)
^
config.h:132:9: note: each undeclared identifier is reported only once for each function it appears in
config.h:134:8: error: ‘lt’ undeclared (first use in this function)
if(lt[sellt]->arrange) {
^
config.h:134:11: error: ‘sellt’ undeclared (first use in this function)
if(lt[sellt]->arrange) {
^
config.h:138:25: error: ‘clients’ undeclared (first use in this function)
for(c = clients; c && (!ISVISIBLE(c) || c->isfloating == sel->isfloating); c = c->next);
^
config.h:152:9: error: too few arguments to function ‘restack’
restack();
^
dwm.c:213:13: note: declared here
static void restack(Monitor *m);
^
In file included from dwm.c:288:0:
config.h: In function ‘setltor1’:
config.h:162:16: error: ‘lt’ undeclared (first use in this function)
setlayout((lt[sellt] == arg->v) ? &a : arg);
^
config.h:162:19: error: ‘sellt’ undeclared (first use in this function)
setlayout((lt[sellt] == arg->v) ? &a : arg);
^
config.h: In function ‘toggletorall’:
config.h:169:8: error: ‘sel’ undeclared (first use in this function)
if(sel && ((arg->ui & TAGMASK) == sel->tags)) {
^
config.h: In function ‘togglevorall’:
config.h:181:8: error: ‘sel’ undeclared (first use in this function)
if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
^
config.h:181:39: error: ‘tagset’ undeclared (first use in this function)
if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
^
config.h:181:46: error: ‘seltags’ undeclared (first use in this function)
if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
^
config.h: In function ‘vieworprev’:
config.h:193:34: error: ‘tagset’ undeclared (first use in this function)
view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
^
config.h:193:41: error: ‘seltags’ undeclared (first use in this function)
view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
^
config.h: In function ‘warptosel’:
config.h:200:8: error: ‘sel’ undeclared (first use in this function)
if(sel)
^
config.h: In function ‘zoomf’:
config.h:208:8: error: ‘sel’ undeclared (first use in this function)
if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
^
config.h:208:16: error: ‘lt’ undeclared (first use in this function)
if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
^
config.h:208:19: error: ‘sellt’ undeclared (first use in this function)
if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
^
config.h: At top level:
config.h:213:2: error: expected identifier or ‘(’ before ‘{’ token
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
^
config.h:213:78: error: expected identifier or ‘(’ before ‘,’ token
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
^
config.h:214:78: error: expected identifier or ‘(’ before ‘,’ token
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
^
config.h:215:78: error: expected identifier or ‘(’ before ‘,’ token
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
^
config.h:216:78: error: expected identifier or ‘(’ before ‘,’ token
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
^
config.h:222:145: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
^
config.h:223:20: error: redefinition of ‘termcmd’
static const char *termcmd[] = { "uxterm", NULL };
^
config.h:63:20: note: previous definition of ‘termcmd’ was here
static const char *termcmd[] = { "uxterm", NULL };
^
config.h:225:12: error: redefinition of ‘keys’
static Key keys[] = {
^
config.h:65:12: note: previous definition of ‘keys’ was here
static Key keys[] = {
^
config.h:264:15: error: redefinition of ‘buttons’
static Button buttons[] = {
^
config.h:96:15: note: previous definition of ‘buttons’ was here
static Button buttons[] = {
^
dwm.c: In function ‘createmon’:
dwm.c:654:15: error: ‘nmaster’ undeclared (first use in this function)
m->nmaster = nmaster;
^
dwm.c: In function ‘keypress’:
dwm.c:1087:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
^
In file included from dwm.c:288:0:
dwm.c: At top level:
config.h:15:13: warning: ‘readin’ defined but not used [-Wunused-variable]
static Bool readin = True; /* False means do not read stdin */
^
In file included from dwm.c:288:0:
config.h:65:12: warning: ‘keys’ defined but not used [-Wunused-variable]
static Key keys[] = {
^
config.h:96:15: warning: ‘buttons’ defined but not used [-Wunused-variable]
static Button buttons[] = {
^
make: *** [dwm.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
And this is my config.h
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-bold-r-normal-*-14-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#cccccc";
static const char normbgcolor[] = "#eeeeee";
static const char normfgcolor[] = "#000000";
static const char selbordercolor[] = "#0066ff";
static const char selbgcolor[] = "#eeeeee";
static const char selfgcolor[] = "#0066ff";
static unsigned int borderpx = 3; /* border pixel of windows */
static unsigned int snap = 32; /* snap pixel */
static Bool showbar = True; /* False means no bar */
static Bool topbar = True; /* False means bottom bar */
static Bool readin = True; /* False means do not read stdin */
/* tagging */
const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "w" };
static Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "acme", NULL, NULL, 1 << 2, False, -1 },
{ "Acroread", NULL, NULL, 0, True, -1 },
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "GQview", NULL, NULL, 0, True, -1 },
{ "MPlayer", NULL, NULL, 0, True, -1 },
{ "Navigator", NULL, NULL, 1 << 5, False, -1 },
/* layout(s) */
static float mfact = 0.65;
static Bool resizehints = False; /* False means respect size hints in tiled resizals */
static Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "< >", NULL }, /* no layout function means floating behavior */
{ "[ ]", monocle },
/* custom functions declarations */
static void focusstackf(const Arg *arg);
static void setltor1(const Arg *arg);
static void toggletorall(const Arg *arg);
static void togglevorall(const Arg *arg);
static void vieworprev(const Arg *arg);
static void warptosel(const Arg *arg);
static void zoomf(const Arg *arg);
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, vieworprev, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, togglevorall, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletorall, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "uxterm", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstackf, {.i = +1 } },
{ MODKEY, XK_j, warptosel, {0} },
{ MODKEY, XK_k, focusstackf, {.i = -1 } },
{ MODKEY, XK_k, warptosel, {0} },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoomf, {0} },
{ MODKEY, XK_Return, warptosel, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_space, setltor1, {.v = &layouts[0]} },
{ MODKEY|ShiftMask, XK_space, setltor1, {.v = &layouts[2]} },
{ MODKEY, XK_0, vieworprev, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_w, 5)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
/* button definitions */
/* click can ClkTagBar, ClkTagButton,
* ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setltor1, {.v = &layouts[0]} },
{ ClkLtSymbol, 0, Button2, setmfact, {.f = 1.65} },
{ ClkLtSymbol, 0, Button3, setltor1, {.v = &layouts[2]} },
{ ClkLtSymbol, 0, Button4, setmfact, {.f = +0.05} },
{ ClkLtSymbol, 0, Button5, setmfact, {.f = -0.05} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkStatusText, Button3Mask, Button1, killclient, {0} },
{ ClkWinTitle, 0, Button1, warptosel, {0} },
{ ClkWinTitle, 0, Button1, movemouse, {0} },
{ ClkWinTitle, 0, Button2, zoomf, {0} },
{ ClkWinTitle, 0, Button3, resizemouse, {0} },
{ ClkWinTitle, 0, Button4, focusstackf, {.i = -1 } },
{ ClkWinTitle, 0, Button5, focusstackf, {.i = +1 } },
{ ClkRootWin, 0, Button1, warptosel, {0} },
{ ClkRootWin, 0, Button1, movemouse, {0} },
{ ClkRootWin, 0, Button3, resizemouse, {0} },
{ ClkRootWin, 0, Button4, focusstackf, {.i = -1 } },
{ ClkRootWin, 0, Button5, focusstackf, {.i = +1 } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, zoomf, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, vieworprev, {0} },
{ ClkTagBar, 0, Button3, togglevorall, {0} },
{ ClkTagBar, 0, Button4, focusstackf, {.i = -1 } },
{ ClkTagBar, 0, Button5, focusstackf, {.i = +1 } },
{ ClkTagBar, Button2Mask, Button1, tag, {0} },
{ ClkTagBar, Button2Mask, Button3, toggletorall, {0} },
/* custom functions */
void
focusstackf(const Arg *arg) {
Client *c = NULL, *i;
if(!sel)
return;
if(lt[sellt]->arrange) {
if (arg->i > 0) {
for(c = sel->next; c && (!ISVISIBLE(c) || c->isfloating != sel->isfloating); c = c->next);
if(!c)
for(c = clients; c && (!ISVISIBLE(c) || c->isfloating == sel->isfloating); c = c->next);
else {
for(i = clients; i != sel; i = i->next)
if(ISVISIBLE(i) && i->isfloating == sel->isfloating)
c = i;
if(!c)
for(i = sel; i; i = i->next)
if(ISVISIBLE(i) && i->isfloating != sel->isfloating)
c = i;
if(c) {
focus(c);
restack();
else
focusstack(arg);
void
setltor1(const Arg *arg) {
Arg a = {.v = &layouts[1]};
setlayout((lt[sellt] == arg->v) ? &a : arg);
void
toggletorall(const Arg *arg) {
Arg a;
if(sel && ((arg->ui & TAGMASK) == sel->tags)) {
a.ui = ~0;
tag(&a);
else
toggletag(arg);
void
togglevorall(const Arg *arg) {
Arg a;
if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
a.ui = ~0;
view(&a);
else
toggleview(arg);
void
vieworprev(const Arg *arg) {
Arg a = {0};
view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
void
warptosel(const Arg *arg) {
XEvent ev;
if(sel)
XWarpPointer(dpy, None, sel->win, 0, 0, 0, 0, 0, 0);
XSync(dpy, False);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
void
zoomf(const Arg *arg) {
if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
togglefloating(NULL);
else
zoom(NULL);
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "uxterm", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
Any suggestions?
Last edited by husainaloos (2013-05-07 16:31:16)

No, you were not missing "some graphical libraries that you didn't incluce in the config.h file". It looks like, as jasonwryan said, you copied functions into your config.h without checking how they work. Thus, you ended up having functions that use variables you never define in config.h (and there's alot of those!)
Next time, either stick to already working patches found at suckless.org, or give some effort and at least try to figure out what is wrong with the code you randomly copied.

Similar Messages

  • [SOLVED] DWM Compile Errors

    Hey guys,
    I'm new to arch linux, and newish to linux in general. I'm trying to compile dwm and keep running into the same error. I have been trying to follow the wiki entry on dwm to a T but have not had success thus far.
    Currently what I've done is:
    1. update abs
    2. copy makepkg files to ~/dwm
    3. edit config.h, save
    4. makepkg -f >> PKGFILE
    5. makepkg -efi
    Then I get this
    Any suggestions would be greatly appreciate
    thanks
    Last edited by raidicus (2010-05-29 23:43:57)

    Well, its definitely possible that I misunderstood the process of compiling. i thought you needed to edit dwm's config.h before you compiled it...
    IE you get a bunch of config files, edit them, then make an installable package out of them.
    in other words i thought I *was* following the wiki...but now I see that I mixed up the steps a little bit..
    So basically config.h doesn't have to be messed with then compiled...

  • [SOLVED] DWM patch error

    Hi. I want to apply the Bottom Stack patch to my dwm. I did for 5.6 but i don't know how
    This is my PKGBUILD
    # $Id: PKGBUILD 3133 2009-09-28 09:01:18Z spupykin $
    # Maintainer: Sergej Pupykin <[email protected]>
    # Contributor: Dag Odenhall <[email protected]>
    # Contributor: Grigorios Bouzakis <[email protected]>
    pkgname=dwm
    pkgver=5.7.2
    pkgrel=1
    pkgdesc="A dynamic window manager for X"
    url="http://dwm.suckless.org"
    arch=('i686' 'x86_64')
    license=('MIT')
    options=(zipman)
    depends=('libx11')
    install=dwm.install
    source=(http://code.suckless.org/dl/dwm/dwm-$pkgver.tar.gz \
    config.h bstack.c)
    md5sums=()
    build() {
    cd $srcdir/$pkgname-$pkgver
    cp $srcdir/config.h config.h
    patch -p0 -i /home/kismet/.dwm/patch/bstack.c
    make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
    make PREFIX=/usr DESTDIR=$pkgdir install || return 1
    install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
    install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
    I don't how exactly put the patch.. this is the error i get
    ~/.dwm makepkg -efi
    ==> Creando el paquete: dwm 5.7.2-1 i686 (mié dic 16 18:02:39 CET 2009)
    ==> Comprobando Dependencias en tiempo de Ejecución...
    ==> Comprobando Dependencias en tiempo de Compilación...
    ==> PRECAUCIÓN: Saltando obtención de fuentes -- usando el arbol src/ existente
    ==> PRECAUCIÓN: saltando pruebas de integridad -- usando el arbol src/ existente
    ==> PRECAUCIÓN: Saltando extracción de las fuentes -- usando src/tree existente
    ==> Eliminando directorio pkg/ existente...
    ==> Entrando a un ambiente fakeroot...
    ==> Comenzando build()...
    patch: **** Only garbage was found in the patch input.
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.7.2" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    En el fichero incluído de dwm.c:274:
    config.h:37:20: error: bstack.c: No existe el fichero o el directorio
    In file included from dwm.c:274:
    config.h:44: error: 'bstack' no se declaró aquí (no en una función)
    make: *** [dwm.o] Error 1
    ==> ERROR: Falló la compilación.
    Abortando...
    ~/.dwm
    What's happen?
    Last edited by kismet010 (2010-02-08 05:51:28)

    well, new error..
    applying another patch:
    patch -i ~/.dwm/src/dwm-5.7.2/bstack.c
    patch -i ~/.dwm/src/dwm-5.7.2/dwm-5.7.2-pertag.diff
    get this:
    ~/.dwm makepkg -efi
    ==> Creando el paquete: dwm 5.7.2-1 i686 (mié dic 16 19:28:13 CET 2009)
    ==> Comprobando Dependencias en tiempo de Ejecución...
    ==> Comprobando Dependencias en tiempo de Compilación...
    ==> PRECAUCIÓN: Saltando obtención de fuentes -- usando el arbol src/ existente
    ==> PRECAUCIÓN: saltando pruebas de integridad -- usando el arbol src/ existente
    ==> PRECAUCIÓN: Saltando extracción de las fuentes -- usando src/tree existente
    ==> Eliminando directorio pkg/ existente...
    ==> Entrando a un ambiente fakeroot...
    ==> Comenzando build()...
    patch: **** Only garbage was found in the patch input.
    patching file dwm.c
    Reversed (or previously applied) patch detected! Assume -R? [n]
    Apply anyway? [n] y
    Hunk #1 FAILED at 120.
    Hunk #2 succeeded at 303 with fuzz 2 (offset 30 lines).
    Hunk #3 FAILED at 1475.
    Hunk #4 FAILED at 1493.
    Hunk #5 FAILED at 1534.
    Hunk #6 FAILED at 1645.
    Hunk #7 FAILED at 1665.
    Hunk #8 FAILED at 1937.
    7 out of 8 hunks FAILED -- saving rejects to file dwm.c.rej
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.7.2" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from config.h:37,
    from dwm.c:254:
    bstack.c: En la función 'bstack':
    bstack.c:7: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:11: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:12: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:12: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:13: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:13: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:13: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:13: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:17: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:18: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:18: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:19: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:20: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:20: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:20: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:20: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:22: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:25: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:25: error: puntero deferenciado a tipo de dato incompleto
    bstack.c:26: error: puntero deferenciado a tipo de dato incompleto
    dwm.c: En el nivel principal:
    dwm.c:281: error: redefinición de 'struct Monitor'
    dwm.c:306: error: redefinición de 'struct Monitor'
    make: *** [dwm.o] Error 1
    ==> ERROR: Falló la compilación.
    Abortando...
    ~/.dwm
    Edit: same error (without hunks) althought not patching for bstack.c
    Last edited by kismet010 (2009-12-16 18:36:13)

  • JAR file needed to solve the compilation error

    Hi ,
       I am getting the compilation error when i tried to access the "<b>com.sapportals.wcm.service.scheduler.ISchedulerTask</b>" interface.
    Where can i find the corresponding JAR file ?
    can anyone send this JAR to my mail iD ?
    [email protected]
    Thanks and Regards,
    Saravanan

    Hi Saravanan,
    Try this weblog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Using JAR Class Finder</a>.
    Regards,
    Abhishek.

  • [Solved] Prelink compilation error

    gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o execstack execstack.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o -lelf
    /bin/sh ../libtool --mode=link gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1,--sort-common,--as-needed,-z,relro -o prelink -all-static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o -lelf
    gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o prelink -static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o -lelf
    /usr/bin/ld: cannot find -lelf
    collect2: error: ld returned 1 exit status
    Makefile:269: recipe for target 'prelink' failed
    make[2]: *** [prelink] Error 1
    make[2]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink/src'
    Makefile:175: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink'
    Makefile:121: recipe for target 'all' failed
    make: *** [all] Error 2
    $ ls -l /usr/lib/libelf.so
    lrwxrwxrwx 1 root root 11 Oct 27 20:18 /usr/lib/libelf.so -> libelf.so.1
    what am i doing wrong ?
    Last edited by Perfect Gentleman (2013-10-28 00:18:33)

    is it possible to get rid of it ?
    arch=x86_64, i got libelf.a only in /usr/lib32
    solved
    i removed some code with words "all-static" from libtool  and package built fine.
    I understand that it is needed a patch. but i don't how to write it.
    Allan, thanx for tips
    Last edited by Perfect Gentleman (2013-10-27 14:26:30)

  • [solved] openchrome compilation errors

    Hello, I trying to compile openchrome driver from svn:
    mkdir openchrome
    cd openchrome
    svn co http://svn.openchrome.org/svn/trunk
    cd trunk
    ./autogen.sh --prefix=/usr
    make
    and get some errors:
    bash-4.0# make                                                               
    make  all-recursive                                                           
    make[1]: Entering `/root/Desktop/openchrome/trunk'                 
    Making all in src                                                             
    make[2]: Entering `/root/Desktop/openchrome/trunk/src'             
    created svnversion.h                                                         
    make  all-am                                                                 
    make[3]: Entering `/root/Desktop/openchrome/trunk/src'             
    /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm   -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm   -MT via_3d.lo -MD -MP -MF .deps/via_3d.Tpo -c -o via_3d.lo via_3d.c                                   
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -MT via_3d.lo -MD -MP -MF .deps/via_3d.Tpo -c via_3d.c  -fPIC -DPIC -o .libs/via_3d.o                                                   
    mv -f .deps/via_3d.Tpo .deps/via_3d.Plo                                                   
    /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm   -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm   -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c -o via_accel.lo via_accel.c                       
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c via_accel.c  -fPIC -DPIC -o .libs/via_accel.o                                       
    In file included from via_accel.c:42:                                                     
    via_driver.h:78:23: error: GL/glxint.h: No file found                 
    In file included from via_accel.c:42:                                                     
    via_driver.h:329: error: expected specifier-qualifier-list before '__GLXvisualConfig'     
    via_accel.c: In function 'viaExaTexUploadToScreen':
    via_accel.c:1896: error: 'struct _VIA' has no member named 'agpAddr'
    via_accel.c: In function 'viaIsAGP':
    via_accel.c:2130: error: 'struct _VIA' has no member named 'IsPCI'
    via_accel.c:2132: error: 'struct _VIA' has no member named 'agpMappedAddr'
    via_accel.c:2134: error: 'struct _VIA' has no member named 'agpSize'
    via_accel.c:2135: error: 'struct _VIA' has no member named 'agpAddr'
    via_accel.c: In function 'viaInitExa':
    via_accel.c:2316: error: 'struct _VIA' has no member named 'drmVerMajor'
    via_accel.c:2317: error: 'struct _VIA' has no member named 'drmVerMajor'
    via_accel.c:2317: error: 'struct _VIA' has no member named 'drmVerMinor'
    via_accel.c: In function 'viaInitAccel':
    via_accel.c:2398: error: 'struct _VIA' has no member named 'drmVerMajor'
    via_accel.c:2399: error: 'struct _VIA' has no member named 'drmVerMajor'
    via_accel.c:2399: error: 'struct _VIA' has no member named 'drmVerMinor'
    via_accel.c: In function 'viaExitAccel':
    via_accel.c:2496: error: 'struct _VIA' has no member named 'IsPCI'
    via_accel.c:2498: error: 'struct _VIA' has no member named 'agpMappedAddr'
    via_accel.c: In function 'viaFinishInitAccel':
    via_accel.c:2542: error: 'struct _VIA' has no member named 'IsPCI'
    via_accel.c:2563: error: 'struct _VIA' has no member named 'agpMappedAddr'
    via_accel.c:2583: error: 'struct _VIA' has no member named 'agpMappedAddr'
    make[3]: *** [via_accel.lo] Błąd 1
    make[3]: Leaving `/root/Desktop/openchrome/trunk/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving `/root/Desktop/openchrome/trunk/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving `/root/Desktop/openchrome/trunk'
    make: *** [all] Error 2
    WTF ???
    Last edited by Spy (2009-08-08 13:19:26)

    djszapi wrote:
    Hello Spy!
    extra/xf86-video-openchrome <- from extra?
    xf86-video-openchrome-svn <- from AUR ?
    http://aur.archlinux.org/packages.php?ID=21155 <- I can't install it because of versionpkg dependency, maybe a report to the author would be good.
    extra/xf86-video-openchrome <- from extra? - it's fuckin old
    xf86-video-openchrome-svn <- from AUR ? - it's script after i type "make" bash display some strange errors (look up)
    AAAAAAAaaaaaaaargh.... I forgot install glproto package.... now it's works.

  • [SOLVED] UltimateStunts compiling error

    Just downloaded UltimateStunts source, and I followed instuctions and installed required programs mentoined here http://www.ultimatestunts.nl/documentat … ompile.htm but I get error when running 'make' ..
    make all-recursive
    make[1]: Entering directory `/home/broi/ultimatestunts-srcdata-0761'
    Making all in intl
    make[2]: Entering directory `/home/broi/ultimatestunts-srcdata-0761/intl'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761/intl'
    Making all in po
    make[2]: Entering directory `/home/broi/ultimatestunts-srcdata-0761/po'
    make[2]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761/po'
    Making all in data
    make[2]: Entering directory `/home/broi/ultimatestunts-srcdata-0761/data'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761/data'
    Making all in shared
    make[2]: Entering directory `/home/broi/ultimatestunts-srcdata-0761/shared'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761/shared'
    Making all in simulation
    make[2]: Entering directory `/home/broi/ultimatestunts-srcdata-0761/simulation'
    if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../shared -DSYSCONFDIR="\"/usr/local/etc\"" -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT metaserver.o -MD -MP -MF ".deps/metaserver.Tpo" -c -o metaserver.o metaserver.cpp; \
    then mv -f ".deps/metaserver.Tpo" ".deps/metaserver.Po"; else rm -f ".deps/metaserver.Tpo"; exit 1; fi
    metaserver.cpp: In member function 'CString CMetaServer::httpReadBodyNormal()':
    metaserver.cpp:265:47: error: 'read' was not declared in this scope
    metaserver.cpp: In member function 'int CMetaServer::readChar()':
    metaserver.cpp:448:28: error: 'read' was not declared in this scope
    metaserver.cpp: In member function 'CString CMetaServer::readStr(unsigned int)':
    metaserver.cpp:470:37: error: 'read' was not declared in this scope
    metaserver.cpp: In member function 'bool CMetaServer::writeStr(const CString&)':
    metaserver.cpp:491:53: error: 'write' was not declared in this scope
    metaserver.cpp: In member function 'void CMetaServer::tcpDisconnect()':
    metaserver.cpp:544:16: error: 'close' was not declared in this scope
    make[2]: *** [metaserver.o] Error 1
    make[2]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761/simulation'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/broi/ultimatestunts-srcdata-0761'
    make: *** [all] Error 2
    [broi@BroisLinux ultimatestunts-srcdata-0761]$
    Thank you
    Last edited by broi (2012-04-19 11:49:24)

    drcouzelis wrote:Is there a reason you're not installing it from the AUR?
    Not really, but anyway makepkg just automaticaly check for dependencies (I got them all), download/extract/configure/make/install package plus make .xz installable with pacman?
    However, I tried with AUR now, too, but same problem.

  • [SOLVED] DWM+pertag+bstack error

    hi
    i'm trying to compile dwm with pertag diff patch and bstack.c
    i get an error while compiling it:
    CC dwm.c
    In file included from config.h:42,
    from dwm.c:254:
    bstack.c: En la función 'bstack':
    bstack.c:7: error: puntero deferenciado a tipo de dato incompletoº
    bstack.c:11:error:puntero..
    make: *** [dwm.o] Error 1
    ==> ERROR: Falló la compilación.ª
    Abortando...
    º means: dereference pointer to incomplete data type
    ª means: Compilation failed.
    it sucks 'cos i want to read pdf on top of my 10" screen and write documents at bottom, without the problem of change to another desktop and have to move to another layout, i.e., floating for gimp
    another thing: for write this post i must to write the code manually, 'cos a don't know how to copy from urxvt and paste it to firefox.. yep, that's a newbie question
    Edit: solved here
    Last edited by kismet010 (2010-02-08 05:51:09)

    Looks like this workaround isn't enough to get it to compile on the latest hg clone.
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    dwm.c: In function 'gaplessgrid':
    dwm.c:262: error: dereferencing pointer to incomplete type
    dwm.c:276: error: dereferencing pointer to incomplete type
    dwm.c:276: error: dereferencing pointer to incomplete type
    dwm.c:279: error: dereferencing pointer to incomplete type
    dwm.c:282: error: dereferencing pointer to incomplete type
    dwm.c:282: error: dereferencing pointer to incomplete type
    dwm.c:283: error: dereferencing pointer to incomplete type
    dwm.c:284: error: dereferencing pointer to incomplete type
    make: *** [dwm.o] Error 1
    Line 262 for me is:
    for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next))
    I've tried many things and maybe i'm missing something very simple here.

  • [SOLVED] dwm doesn't compile with moveresize function

    I'am trying to compile dwm with moveresize function but I get this error:
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.7.2" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:254:0:
    config.h: In function 'moveresize':
    config.h:23:7: error: dereferencing pointer to incomplete type
    config.h:23:34: error: dereferencing pointer to incomplete type
    config.h:26:9: error: dereferencing pointer to incomplete type
    config.h:26:17: error: dereferencing pointer to incomplete type
    config.h:27:6: error: dereferencing pointer to incomplete type
    config.h:28:6: error: dereferencing pointer to incomplete type
    config.h:29:6: error: dereferencing pointer to incomplete type
    make: *** [dwm.o] Error 1
    Here's my config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#454545";
    static const char normbgcolor[] = "#454545";
    static const char normfgcolor[] = "#C0C0C0";
    static const char selbordercolor[] = "#C0C0C0";
    static const char selbgcolor[] = "#454545";
    static const char selfgcolor[] = "#FFFFFF";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* moveresize */
    static void moveresize(const Arg *arg) {
    XEvent ev;
    Monitor *m = selmon;
    if(!(m->sel && arg && arg->v && m->sel->isfloating))
    return;
    resize(m->sel, m->sel->x + ((int *)arg->v)[0],
    m->sel->y + ((int *)arg->v)[1],
    m->sel->w + ((int *)arg->v)[2],
    m->sel->h + ((int *)arg->v)[3],
    True);
    while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    /* tagging */
    static const char *tags[] = { "term", "web", "fm", "im", "media", "float" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 1 << 5, True, -1 },
    { "Chromium", NULL, NULL, 1 << 1, True, -1 },
    { "MPlayer", NULL, NULL, 0, True, -1 },
    { "Wine", NULL, NULL, 1 << 5, True, -1 },
    { "Gpicview", NULL, NULL, 0, True, -1 },
    { "Pcmanfm", NULL, NULL, 1 << 2, True, -1 },
    { "Xarchiver", NULL, NULL, 0, True, -1 },
    { "Amsn", NULL, NULL, 1 << 3, True, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod4Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *tdmenucmd[] = { "tdmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "roxterm", NULL };
    static const char *mutecmd[] = { "amixer", "-q", "sset", "Master", "toggle", NULL };
    static const char *volupcmd[] = { "amixer", "-q", "sset", "Master", "5-", "unmute", NULL };
    static const char *voldowncmd[] = { "amixer", "-q", "sset", "Master", "5+", "unmute", NULL };
    static const char *bgltupcmd[] = { "xbacklight", "-inc", "15", NULL };
    static const char *bgltdowncmd[] = { "xbacklight", "-dec", "1", NULL };
    static const char *displayoff[] = { "xset", "dpms", "force", "off", NULL };
    static const char *suspend[] = { "sudo", "pm-suspend", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { 0, 0x1008ff12, spawn, {.v = mutecmd } },
    { 0, 0x1008ff11, spawn, {.v = volupcmd } },
    { 0, 0x1008ff13, spawn, {.v = voldowncmd } },
    { 0, 0x1008ff02, spawn, {.v = bgltupcmd } },
    { 0, 0x1008ff03, spawn, {.v = bgltdowncmd } },
    { 0, 0x1008ff59, spawn, {.v = displayoff } },
    { 0, 0x1008ff2f, spawn, {.v = suspend } },
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY, XK_r, spawn, {.v = tdmenucmd } },
    { MODKEY, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY|ShiftMask, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    { MODKEY, XK_Down, moveresize, {.v = (int []){ 0, 25, 0, 0 }}},
    { MODKEY, XK_Up, moveresize, {.v = (int []){ 0, -25, 0, 0 }}},
    { MODKEY, XK_Right, moveresize, {.v = (int []){ 25, 0, 0, 0 }}},
    { MODKEY, XK_Left, moveresize, {.v = (int []){ -25, 0, 0, 0 }}},
    { MODKEY|ShiftMask, XK_Down, moveresize, {.v = (int []){ 0, 0, 0, 25 }}},
    { MODKEY|ShiftMask, XK_Up, moveresize, {.v = (int []){ 0, 0, 0, -25 }}},
    { MODKEY|ShiftMask, XK_Right, moveresize, {.v = (int []){ 0, 0, 25, 0 }}},
    { MODKEY|ShiftMask, XK_Left, moveresize, {.v = (int []){ 0, 0, -25, 0 }}},
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY|ShiftMask, Button1, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    Last edited by Aakko (2010-05-30 18:21:30)

    ber_t wrote:A vanilla dwm compiles fine with your config.h. So I guess you're using other patches that rearrange the #include directive for config.h in dwm.c, e.g. pertag. If that's the case, you have to put the moveresize function in dwm.c and declare it before config.h get's included, just like any other function in dwm.c.
    Yes I had dwm.c patched with pertag. Vanilla compiles fine. Thanks!

  • Please help suggestions for solving built-only compiler error: 'The VI is not executable. The full development version of LabView is required tofix this error.'

    We have develoepd a software tool and build it on regular basis. It currently runs error free when compiled in the editor, but when we built it and run the executable stand alone we get the error.
    'The VI is not executable. The full development version of LabView is required tofix this error.' plus a broeken error.
    This menas an compiler error that is not present in the editor but in the stand alone version. We tried to identify errors as suggested in several posts in this forum, but so far unsuccesfull.
    As the editor and its compiler do not see the error  and are running fine and the stand alone version just syas 'find the error in the editor' in this case LabView is of no help.
    Can anyone suggest a sensible or 'good practice ' way of searching for the source of this error?
    Our project  comprises hundreds of Vis over several libraries.
    Thanks,
    Chris

    Thanks Craig for all your suggestions.
    We seem to have located the problem in a new vi just added to the package causing conflicts by using the same vi names as other vis already present in the package. Excluding this vi removed the error.
    It seems related to a conflict by having two vis with the same name, which was mentioned by LabView and interactively resolved when running the main vi from the editor. When successfully building the main vi the builder did not mention this conflict and reported a successful build, but when trying to run the executable it gave the cryptic error. The error caused us problems because there was no hint for the cause, just the suggestion to solve this in the editor, while at the same time in the editor the VI was running fine.
    We will post about this in detail after we have positively proven that this actually was the case.
    The .net version issue was already checked.
    Performance was the same on all machines we tested on including the dev machine.
    Debugging was tried nut did not help as the vi could not run (broken arrow). We assumed that debugging only helps in running faulty functioning vi''s. We did not check for broken arrows in sub-vis (after connecting), that could have helped, although our application has hundreds of our own vis.
    In relation to your remark: 
    'Are you using many classes? Have you verified that the proper access scopes are set for functions calling those vis?'
    Could you elaborate on setting access scopes. We were not aware of this option in LabView, although we realize this is a basic element of the underlying c code.
    Ragrds,
    Chris

  • Compile error installing rox [SOLVED]

    Hi,
    I'm having problem with compile error installing Rox-filer-2.11.
    I have searched and nothing explicitly the same has cropped up.
    The final few lines reads
    /usr/bin/ld: xtypes.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
    /usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
    /lib/libdl.so.2: could not read symbols: Invalid operation
    collect2: ld returned 1 exit status
    make: *** [ROX-Filer] Error 1
    Compile failed
    Press Return...
    I love Arch and have learned a lot but this has definately stumped me.
    Thanks for all your help in anticipation
    Last edited by Marko121 (2012-03-18 15:46:47)

    Thanks for swift replies
    WormZy spot on
    I encountered compile error when running (as instructed)   ./ROX-Filer/AppRun --compile
    when I appended     LIBS="-ldl -lm"
    this was the result
    mv "ROX-Filer" "/home/mark/builds/rox-filer-2.11/ROX-Filer/src/.."
    (cd "/home/mark/builds/rox-filer-2.11/ROX-Filer/src/.." && \
    objcopy --only-keep-debug ROX-Filer ROX-Filer.dbg && \
    strip ROX-Filer && \
    objcopy --add-gnu-debuglink=ROX-Filer.dbg ROX-Filer)
    Done
    Thanks to everyone problem solved

  • [SOLVED] Krusader compilation via abs error

    I tried to compile Krusader using PKGBUILD from abs. I have base-devel installed, but I got in the end error:
    Linking CXX static library ../../lib/libPanel.a
    [ 76%] Built target Panel
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Application is compiled via Cmake. Ive made litle research but couldn't find solution. Sorry for so few info but I don't really know what would you like more to be able to help, so please just let me know so I could deliver more information.
    Thanks for any help!
    Last edited by Eithrial (2012-06-25 17:05:10)

    Eithrial wrote:I tried to compile Krusader using PKGBUILD from abs. I have base-devel installed, but I got in the end error.....
    I tried your compilation from abs on my system and got your same build failure.  I always build with the "--log" option to makepkg and in a case like this open the build log file and search for the error.  There are lots of warnings about things like "unused parameter" "ignoring return value" and such.  Find the first error.  In your case I searched for the word "error" and came to a line with "error: ‘make_pair’ was not declared in this scope". 
    So enter that error into a google search (krusader error: ‘make_pair’ was not declared in this scope) and near the top of the list is a link to an Archlinux bug report page for the krusader package, https://bugs.archlinux.org/task/29429
    There you find a Comment by Karol (Kudlaty) - Tuesday, 17 April 2012, 16:00 GMT
    ok, compiling error fixed by changing:
    make_pair => std::make_pair
    There's your fix
    The file with the error, from the build log, was src/krusader-2.4.0-beta1/krusader/UserAction/tstring.h (of course open that file and see where make_pair is used).  The two invocations of make_pair need to become std::make_pair, so the fixed build function in our PKGBUILD becomes
    build() {
    cd "${srcdir}"
    sed -i 's/make_pair/std::make_pair/' krusader-2.4.0-beta1/krusader/UserAction/tstring.h
    mkdir build
    cd build
    cmake ../${pkgname}-${_pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
    make
    With the addition of that one sed line to the pkgbuild the krusader package now builds ok.  Always run namcap on your built package: in this case namcap tells us that we got all of the dependencies right and the package looks ok.

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • Flex compilation error

    Hi All,
    I am getting flex compilation error when i deploy the models which were developed in older version7.0, now it is 7.01.I am getting the following error in 7.01 version.
    Flex2Compiler.Build: Error in executing a process for Flex compilation: /usr/sap/BWD/DVEBMGS30/j2ee/cluster/server0/GUIMachine_Business_Packages/[KCRXK59]MyModels.SMIScoreCard/FLEX_COMPILATION_FOLDER/AAD583.mxml
    Does the older version models doesnot deploy in new versions?
    Thanks
    Srinivas K

    Hello Srinivas,
    Currently i am also facing the same issue , Can you let us know were you able to solve the problem u encountered , if yes how?
    Thanks and Regards,
    Ronniee

  • Smart View compile error on startup

    Hi
    Just installed the following components:
    - Windows 2008R2
    - Office 2010 x64 with SP2
    - Smart View 11.1.2.5.210 (x64)
    When I start and close Excel I get the following:
    Microsoft Visual Basic for Applications
    Compile error in hidden module: HsTBarPublic.  This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.
    The same software version works fine on 32bit versions of Office 2010 + Smart View.  Any ideas for troubleshooting 64bit Applications of Office and Smart View?
    Thanks
    Anthony

    Had the same problem with conflict between CS6 (Photoshop, Premier, After Effects, etc.] and Net Nanny.  Solution was as follows:
    1. Log onto Net Nanny Admin Tools
    2. Click on Application Exceptions
    3. Click Add
    4. Browse to folder containing "dynamiclinkmanager.exe".  On my computer (Windows 7 Pro) it was located in
         C:\Program Files (x86)\Common Files\Adobe\dynamiclink\CS6
         [I do have dynamiclinkmanager.exe elsewhere, but Net Nanny only allows you to identify a given file name once]
    5.  Select dynamiclinkmanger.exe, Open, OK
    6.  Repeat steps 3 to 5 but this time for "dynamiclinkmediaserver.exe" which I found in
         C:\Program Files (x86)\Common Files\Adobe\dynamiclinkmediaserver\1.0
    7. Click OK to accept application exceptions
    8.  Exit Net Nanny Admin Tools
    7.  On my computer Photoshop would now load without incident, but if necessary reboot.
    NOTE:  Once I solved the dynamiclinkmanager stopped problem I then encountered an Adobe Media Core stopped problem when I started After Effects and Premier.  To resolve this second problem with Net Nanny I repeated the above steps adding the following application exception:
         "Adobe QT32 Server.exe"
         which I found in
         C:\Program Files (x86)\Common Files\Adobe\dynamiclinkmediaserver\1.0
    [Again there are multiple copies of "Adobe QT32 Server.exe" but Net Nanny accepts only one, and I selected the one in "Program Files (x86)" and not the ones in "Program Files" because of this is where I also found dynamiclinkmanager.exe.  All works fine now.]
    Hope this works for you.

Maybe you are looking for

  • Oracle AS connect to MS SQL server - help please.

    hi there can anyone tell or show me how to connect Oracle app server to MS sql server? thanks

  • In iPhoto the option to edit in photoshop elements  has vanished

    The option in iPhoto>pref>advanced>Edit in>Iphoto or PSE (Photshop Elements) has vanished!! My only option now is to edit in iPhoto or iPhoto library!! I usually edit my RAW files in ACR which has always opened when I hit edit in IPhoto,,, Help!! Doe

  • Can't drag and drop music from itunes to Iphone

    my brother recently updated to a newer version of itunes and i can no longer drag and drop music from my itunes to my iphone! ive tried everything that i know and nothing is working! i tried checking the 'manually manage music' box, but everytime i d

  • CS1 and NEF files

    I'm having a similar issue as the person using CS4.    I know it's compatability.  I'm using iPhoto 9 (for storage & organization primarily) and Photoshop CS1 (yes, the first CS).  It's easy to figure out how to make iPhoto open the RAW files in an e

  • 90days or 3months data from the date today

    Hi, I have problem on this query, I need to extract the customers that is on 90days or 3months in their subscription of the product from the date today. I know that the startdate field must be used on the condition but don't know the right formula. I