Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-27-2014, 11:48 AM
|
#1
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Rep: 
|
Can't Patch DWM / Need Additional Characters/Language Support
I am trying to patch pango or xft to my dwm, but I keep error-ing out at make. I have a github copy of someone's dwm and that make clean install correctly, but I would like to learn how to patch correctly and use my own config.h, which doesn't work with the github's dwm.
I have downloaded dwm-6.0 and pango or xft patch, extract dwm-6.0, cd into it, and patch -p1 pango.diff, and then make clean install. I have tried the default font as well, but it won't work. What am I missing?
Slackware 14.1 64bit
dwm-6.0
dmenu 4.5
patched xft & pango [not together, only one at a time]
**Update:
Install the pango patch and support for additional languages are included. No need to install xft and pango togethet as pango is a replacement for xft.
make clean install
Code:
bash-4.2# make clean install
cleaning
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -pthread -I/usr/include/freetype2 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -lpangoxft-1.0 -lpangoft2-1.0 -lXft -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
CC = cc
CC dwm.c
In file included from dwm.c:299:0:
config.h:5:19: error: redefinition of font
static const char font[] = "Sans 8";
^
config.h:4:19: note: previous definition of font was here
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
^
dwm.c: In function drawtext:
dwm.c:824:22: error: statusmarkup undeclared (first use in this function)
if(text == stext && statusmarkup)
^
dwm.c:824:22: note: each undeclared identifier is reported only once for each function it appears in
dwm.c: In function keypress:
dwm.c:1095:2: warning: XKeycodeToKeysym is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
^
dwm.c: In function textnw:
dwm.c:1703:22: error: statusmarkup undeclared (first use in this function)
if(text == stext && statusmarkup)
^
make: *** [dwm.o] Error 1
config.h
Code:
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char font[] = "Sans 8";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
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 */
/* tagging */
static const char *tags[] = { "壹", "弐", "参", "肆", "伍", "陸", "漆", "捌", "玖" };
Xinitrc:
Code:
#example .xinitrc file for dwm
# clock
while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m # Update time every minute
done &
# wallpaper
fbsetbg ~/Documents/slackascii.png &
# conky
conky &
# xcompmgr for transparency
xcompmgr -c &
# tray
trayer --align right --widthtype request --width 10 --height 20 --tint 0x262626 --transparent true $
# dwm
exec dwm
Last edited by 桃甘蕉; 07-02-2014 at 09:43 AM.
|
|
|
06-27-2014, 03:28 PM
|
#2
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Original Poster
Rep: 
|
Update 2:
For some odd reason, nano is unable to display the foreign characters ONLY within my config.h from dwm. However kWrite, my terminal, and dolphin are able to read and write in characters from other countries. This even includes nano with other/new documents. All of this works using pango patch. I have no need to install xft now.
Update:
I am not sure how I did it, but I was able to patch my dwm with pango, finally. However I am stuck on trying to patch my dwm with two patches. Patching one patch works with either xft or pango, but applying both, it errors out. I have tried xft first and then pango, or pango first, and then xft. Any tips?
Code:
bash-4.2$ patch < 02-dwm-6.0-xft.diff
patching file dwm.c
Hunk #1 succeeded at 42 (offset 3 lines).
Hunk #2 FAILED at 100.
Hunk #3 FAILED at 179.
Hunk #4 succeeded at 498 with fuzz 1 (offset 12 lines).
Hunk #5 succeeded at 735 (offset 19 lines).
Hunk #6 succeeded at 790 (offset 19 lines).
Hunk #7 FAILED at 783.
Hunk #8 FAILED at 802.
Hunk #9 succeeded at 876 (offset 24 lines).
Hunk #10 FAILED at 923.
Hunk #11 FAILED at 1031.
Hunk #12 succeeded at 1153 (offset 12 lines).
Hunk #13 succeeded at 1631 with fuzz 1 (offset 13 lines).
Hunk #14 FAILED at 1687.
Hunk #15 succeeded at 1786 (offset 15 lines).
7 out of 15 hunks FAILED -- saving rejects to file dwm.c.rej
Code:
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "Sans 8";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
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 */
static const Bool statusmarkup = True; /* True means use pango markup in status message */
/* tagging */
static const char *tags[] = { "壹", "弐", "参", "肆", "伍", "陸", "漆", "捌", };
Everything else is default.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Edit: hand-patched the dwm.c with everything copied out of pango and received this huge error: [First xft, Second: pango]
Code:
# make
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
CC = cc
CC dwm.c
dwm.c: In function keypress:
dwm.c:1062:2: warning: XKeycodeToKeysym is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
^
dwm.c: At top level:
dwm.c:2116:6: error: expected =, ,, ;, asm or __attribute__ before -- token
diff --git a/config.def.h b/config.def.h
^
dwm.c:2117:7: error: invalid suffix "ff358..3bee2e7" on integer constant
index 77ff358..3bee2e7 100644
^
dwm.c:2120:1: error: stray @ in program
@@ -1,7 +1,7 @@
^
dwm.c:2120:2: error: stray @ in program
@@ -1,7 +1,7 @@
^
dwm.c:2120:14: error: stray @ in program
@@ -1,7 +1,7 @@
^
dwm.c:2120:15: error: stray @ in program
@@ -1,7 +1,7 @@
^
dwm.c:2125:1: error: expected identifier or ( before + token
+static const char font[] = "Sans 8";
^
dwm.c:2126:20: error: redefinition of normbordercolor
static const char normbordercolor[] = "#444444";
^
In file included from dwm.c:288:0:
config.h:5:19: note: previous definition of normbordercolor was here
static const char normbordercolor[] = "#444444";
^
dwm.c:2127:20: error: redefinition of normbgcolor
static const char normbgcolor[] = "#222222";
^
In file included from dwm.c:288:0:
config.h:6:19: note: previous definition of normbgcolor was here
static const char normbgcolor[] = "#222222";
^
dwm.c:2128:20: error: redefinition of normfgcolor
static const char normfgcolor[] = "#bbbbbb";
^
In file included from dwm.c:288:0:
config.h:7:19: note: previous definition of normfgcolor was here
static const char normfgcolor[] = "#bbbbbb";
^
dwm.c:2129:1: error: stray @ in program
@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
^
dwm.c:2129:2: error: stray @ in program
@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
^
dwm.c:2129:4: error: expected identifier or ( before - token
@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
^
dwm.c:2129:16: error: stray @ in program
@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
^
dwm.c:2129:17: error: stray @ in program
@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
^
dwm.c:2130:28: error: redefinition of snap
static const unsigned int snap = 32; /* snap pixel */
^
In file included from dwm.c:288:0:
config.h:12:27: note: previous definition of snap was here
static const unsigned int snap = 32; /* snap pixel */
^
dwm.c:2131:20: error: redefinition of showbar
static const Bool showbar = True; /* False means no bar */
^
In file included from dwm.c:288:0:
config.h:13:19: note: previous definition of showbar was here
static const Bool showbar = True; /* False means no bar */
^
dwm.c:2132:20: error: redefinition of topbar
static const Bool topbar = True; /* False means bottom bar */
^
In file included from dwm.c:288:0:
config.h:14:19: note: previous definition of topbar was here
static const Bool topbar = True; /* False means bottom bar */
^
dwm.c:2133:1: error: expected identifier or ( before + token
+static const Bool statusmarkup = True; /* True means use pango markup in status message */
^
dwm.c:2136:21: error: redefinition of tags
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
^
In file included from dwm.c:288:0:
config.h:18:20: note: previous definition of tags was here
static const char *tags[] = { "壹", "弐", "参", "肆", "伍", "陸", "漆", "捌", };
^
dwm.c:2137:6: error: expected =, ,, ;, asm or __attribute__ before -- token
diff --git a/config.mk b/config.mk
^
dwm.c:2138:7: error: invalid suffix "a..cdfb642" on integer constant
index 484554a..cdfb642 100644
^
dwm.c:2141:1: error: stray @ in program
@@ -15,8 +15,8 @@ XINERAMALIBS = -L${X11LIB} -lXinerama
^
dwm.c:2141:2: error: stray @ in program
@@ -15,8 +15,8 @@ XINERAMALIBS = -L${X11LIB} -lXinerama
^
dwm.c:2141:16: error: stray @ in program
@@ -15,8 +15,8 @@ XINERAMALIBS = -L${X11LIB} -lXinerama
^
dwm.c:2141:17: error: stray @ in program
@@ -15,8 +15,8 @@ XINERAMALIBS = -L${X11LIB} -lXinerama
^
dwm.c:2141:46: error: expected identifier or ( before - token
@@ -15,8 +15,8 @@ XINERAMALIBS = -L${X11LIB} -lXinerama
^
dwm.c:2144:4: error: invalid preprocessing directive #includes
# includes and libs
^
dwm.c:2146:1: error: expected identifier or ( before - token
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
^
dwm.c:2146:36: error: expected identifier or ( before - token
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
^
dwm.c:2147:1: error: expected identifier or ( before + token
+INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags xft pango pangoxft`
^
dwm.c:2147:1: error: stray ` in program
dwm.c:2147:44: error: expected =, ,, ;, asm or __attribute__ before - token
+INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags xft pango pangoxft`
^
dwm.c:2147:44: error: stray ` in program
dwm.c:2148:36: error: expected identifier or ( before - token
+LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} `pkg-config --libs xft pango pangoxft`
^
dwm.c:2148:36: error: stray ` in program
dwm.c:2148:62: error: expected =, ,, ;, asm or __attribute__ before - token
+LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} `pkg-config --libs xft pango pangoxft`
^
dwm.c:2148:62: error: stray ` in program
dwm.c:2150:4: error: invalid preprocessing directive #flags
# flags
^
dwm.c:2151:2: error: stray \ in program
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
^
dwm.c:2151:24: warning: missing terminating " character [enabled by default]
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
^
dwm.c:2151:2: error: missing terminating " character
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
^
dwm.c:2153:7: error: invalid suffix "d78655..8fae3ba" on integer constant
index 1d78655..8fae3ba 100644
^
dwm.c:2156:1: error: stray @ in program
@@ -36,6 +36,9 @@
^
dwm.c:2156:2: error: stray @ in program
@@ -36,6 +36,9 @@
^
dwm.c:2156:16: error: stray @ in program
@@ -36,6 +36,9 @@
^
dwm.c:2156:17: error: stray @ in program
@@ -36,6 +36,9 @@
^
dwm.c:2160:2: error: stray # in program
+#include <X11/Xft/Xft.h>
^
dwm.c:2161:2: error: stray # in program
+#include <pango/pango.h>
^
dwm.c:2162:2: error: stray # in program
+#include <pango/pangoxft.h>
^
dwm.c:2166:1: error: stray @ in program
@@ -47,8 +50,12 @@
^
dwm.c:2166:2: error: stray @ in program
@@ -47,8 +50,12 @@
^
dwm.c:2166:17: error: stray @ in program
@@ -47,8 +50,12 @@
^
dwm.c:2166:18: error: stray @ in program
@@ -47,8 +50,12 @@
^
dwm.c:2170:2: error: stray # in program
+#ifndef MAX
^
dwm.c:2172:2: error: stray # in program
+#endif
^
dwm.c:2173:2: error: stray # in program
+#ifndef MIN
^
dwm.c:2175:2: error: stray # in program
+#endif
^
dwm.c:2179:1: error: stray @ in program
@@ -104,11 +111,15 @@ typedef struct {
^
dwm.c:2179:2: error: stray @ in program
@@ -104,11 +111,15 @@ typedef struct {
^
dwm.c:2179:20: error: stray @ in program
@@ -104,11 +111,15 @@ typedef struct {
^
dwm.c:2179:21: error: stray @ in program
@@ -104,11 +111,15 @@ typedef struct {
^
dwm.c:2195:2: warning: useless type name in empty declaration [enabled by default]
} DC; /* draw context */
^
dwm.c:2197:1: error: stray @ in program
@@ -186,7 +197,7 @@ static void focus(Client *c);
^
dwm.c:2197:2: error: stray @ in program
@@ -186,7 +197,7 @@ static void focus(Client *c);
^
dwm.c:2197:4: error: expected identifier or ( before - token
@@ -186,7 +197,7 @@ static void focus(Client *c);
^
dwm.c:2197:18: error: stray @ in program
@@ -186,7 +197,7 @@ static void focus(Client *c);
^
dwm.c:2197:19: error: stray @ in program
@@ -186,7 +197,7 @@ static void focus(Client *c);
^
dwm.c:2201:1: error: expected identifier or ( before - token
-static unsigned long getcolor(const char *colstr);
^
dwm.c:2202:1: error: expected identifier or ( before + token
+static unsigned long getcolor(const char *colstr, XftColor *color);
^
dwm.c:2206:1: error: stray @ in program
@@ -254,7 +265,7 @@ static void zoom(const Arg *arg);
^
dwm.c:2206:2: error: stray @ in program
@@ -254,7 +265,7 @@ static void zoom(const Arg *arg);
^
dwm.c:2206:4: error: expected identifier or ( before - token
@@ -254,7 +265,7 @@ static void zoom(const Arg *arg);
^
dwm.c:2206:18: error: stray @ in program
@@ -254,7 +265,7 @@ static void zoom(const Arg *arg);
^
dwm.c:2206:19: error: stray @ in program
@@ -254,7 +265,7 @@ static void zoom(const Arg *arg);
^
dwm.c:2209:20: error: redefinition of broken
static const char broken[] = "broken";
^
dwm.c:256:19: note: previous definition of broken was here
static const char broken[] = "broken";
^
dwm.c:2210:1: error: expected identifier or ( before - token
-static char stext[256];
^
dwm.c:2211:1: error: expected identifier or ( before + token
+static char stext[512];
^
dwm.c:2214:17: error: redefinition of blw
static int bh, blw = 0; /* bar geometry */
^
dwm.c:260:16: note: previous definition of blw was here
static int bh, blw = 0; /* bar geometry */
^
dwm.c:2215:1: error: stray @ in program
@@ -479,18 +490,21 @@ cleanup(void) {
^
dwm.c:2215:2: error: stray @ in program
@@ -479,18 +490,21 @@ cleanup(void) {
^
dwm.c:2215:4: error: expected identifier or ( before - token
@@ -479,18 +490,21 @@ cleanup(void) {
^
dwm.c:2215:20: error: stray @ in program
@@ -479,18 +490,21 @@ cleanup(void) {
^
dwm.c:2215:21: error: stray @ in program
@@ -479,18 +490,21 @@ cleanup(void) {
^
dwm.c:2241:1: error: stray @ in program
@@ -581,6 +595,7 @@ configurenotify(XEvent *e) {
^
dwm.c:2241:2: error: stray @ in program
@@ -581,6 +595,7 @@ configurenotify(XEvent *e) {
^
dwm.c:2241:18: error: stray @ in program
@@ -581,6 +595,7 @@ configurenotify(XEvent *e) {
^
dwm.c:2241:19: error: stray @ in program
@@ -581,6 +595,7 @@ configurenotify(XEvent *e) {
^
dwm.c:2249:1: error: stray @ in program
@@ -787,7 +802,7 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
^
dwm.c:2249:2: error: stray @ in program
@@ -787,7 +802,7 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
^
dwm.c:2249:18: error: stray @ in program
@@ -787,7 +802,7 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
^
dwm.c:2249:19: error: stray @ in program
@@ -787,7 +802,7 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
^
dwm.c:2258:1: error: stray @ in program
@@ -796,20 +811,25 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
^
dwm.c:2258:2: error: stray @ in program
@@ -796,20 +811,25 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
^
dwm.c:2258:20: error: stray @ in program
@@ -796,20 +811,25 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
^
dwm.c:2258:21: error: stray @ in program
@@ -796,20 +811,25 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
^
dwm.c:2290:1: error: stray @ in program
@@ -927,13 +947,13 @@ getatomprop(Client *c, Atom prop) {
^
dwm.c:2290:2: error: stray @ in program
@@ -927,13 +947,13 @@ getatomprop(Client *c, Atom prop) {
^
dwm.c:2290:20: error: stray @ in program
@@ -927,13 +947,13 @@ getatomprop(Client *c, Atom prop) {
^
dwm.c:2290:21: error: stray @ in program
@@ -927,13 +947,13 @@ getatomprop(Client *c, Atom prop) {
^
dwm.c:2308:1: error: stray @ in program
@@ -1034,36 +1054,24 @@ incnmaster(const Arg *arg) {
^
dwm.c:2308:2: error: stray @ in program
@@ -1034,36 +1054,24 @@ incnmaster(const Arg *arg) {
^
dwm.c:2308:22: error: stray @ in program
@@ -1034,36 +1054,24 @@ incnmaster(const Arg *arg) {
^
dwm.c:2308:23: error: stray @ in program
@@ -1034,36 +1054,24 @@ incnmaster(const Arg *arg) {
^
dwm.c:2362:1: error: stray @ in program
@@ -1612,17 +1620,16 @@ setup(void) {
^
dwm.c:2362:2: error: stray @ in program
@@ -1612,17 +1620,16 @@ setup(void) {
^
dwm.c:2362:22: error: stray @ in program
@@ -1612,17 +1620,16 @@ setup(void) {
^
dwm.c:2362:23: error: stray @ in program
@@ -1612,17 +1620,16 @@ setup(void) {
^
dwm.c:2387:1: error: stray @ in program
@@ -1692,13 +1699,15 @@ tagmon(const Arg *arg) {
^
dwm.c:2387:2: error: stray @ in program
@@ -1692,13 +1699,15 @@ tagmon(const Arg *arg) {
^
dwm.c:2387:22: error: stray @ in program
@@ -1692,13 +1699,15 @@ tagmon(const Arg *arg) {
^
dwm.c:2387:23: error: stray @ in program
@@ -1692,13 +1699,15 @@ tagmon(const Arg *arg) {
^
dwm.c:2361:0: error: unterminated #ifdef
#ifdef XINERAMA
^
dwm.c:2136:21: warning: tags defined but not used [-Wunused-variable]
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
^
dwm.c:2214:17: warning: blw defined but not used [-Wunused-variable]
static int bh, blw = 0; /* bar geometry */
^
make: *** [dwm.o] Error 1
bash-4.2$
First pango, then xft and this is the error message I get.
Code:
make
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -pthread -I/usr/include/freetype2 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -lpangoxft-1.0 -lpangoft2-1.0 -lXft -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
CC = cc
CC dwm.c
dwm.c: In function keypress:
dwm.c:1095:2: warning: XKeycodeToKeysym is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
^
dwm.c: At top level:
dwm.c:2158:1: error: stray @ in program
@@ -99,16 +100,15 @@
^
dwm.c:2158:2: error: stray @ in program
@@ -99,16 +100,15 @@
^
dwm.c:2158:4: error: expected identifier or ( before - token
@@ -99,16 +100,15 @@
^
dwm.c:2158:19: error: stray @ in program
@@ -99,16 +100,15 @@
^
dwm.c:2158:20: error: stray @ in program
@@ -99,16 +100,15 @@
^
dwm.c:2176:2: warning: useless type name in empty declaration [enabled by default]
} DC; /* draw context */
^
dwm.c:2178:1: error: stray @ in program
@@ -178,15 +178,15 @@
^
dwm.c:2178:2: error: stray @ in program
@@ -178,15 +178,15 @@
^
dwm.c:2178:4: error: expected identifier or ( before - token
@@ -178,15 +178,15 @@
^
dwm.c:2178:20: error: stray @ in program
@@ -178,15 +178,15 @@
^
dwm.c:2178:21: error: stray @ in program
@@ -178,15 +178,15 @@
^
dwm.c:2182:1: error: expected identifier or ( before - token
-static void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]);
^
dwm.c:2183:1: error: expected identifier or ( before - token
-static void drawtext(const char *text, unsigned long col[ColLast], Bool invert);
^
dwm.c:2184:1: error: expected identifier or ( before + token
+static void drawsquare(Bool filled, Bool empty, Bool invert, XftColor col[ColLast]);
^
dwm.c:2185:1: error: expected identifier or ( before + token
+static void drawtext(const char *text, XftColor col[ColLast], Bool invert);
^
dwm.c:2192:1: error: expected identifier or ( before - token
-static unsigned long getcolor(const char *colstr);
^
dwm.c:2193:1: error: expected identifier or ( before + token
+static XftColor getcolor(const char *colstr);
^
dwm.c:2197:1: error: stray @ in program
@@ -485,10 +485,6 @@
^
dwm.c:2197:2: error: stray @ in program
@@ -485,10 +485,6 @@
^
dwm.c:2197:4: error: expected identifier or ( before - token
@@ -485,10 +485,6 @@
^
dwm.c:2197:19: error: stray @ in program
@@ -485,10 +485,6 @@
^
dwm.c:2197:20: error: stray @ in program
@@ -485,10 +485,6 @@
^
dwm.c:2198:17: warning: data definition has no type or storage class [enabled by default]
for(m = mons; m; m = m->next)
^
dwm.c:2198:17: warning: type defaults to int in declaration of m [enabled by default]
dwm.c:2198:20: warning: data definition has no type or storage class [enabled by default]
for(m = mons; m; m = m->next)
^
dwm.c:2198:20: warning: type defaults to int in declaration of m [enabled by default]
dwm.c:2198:25: error: invalid type argument of -> (have int)
for(m = mons; m; m = m->next)
^
dwm.c:2198:31: error: expected , or ; before ) token
for(m = mons; m; m = m->next)
^
dwm.c:2201:1: error: expected identifier or ( before - token
- if(dc.font.set)
^
dwm.c:2203:1: error: expected identifier or ( before - token
- else
^
In file included from /usr/include/X11/Xlib.h:44:0,
from dwm.c:36:
dwm.c:2205:19: error: expected ) before numeric constant
XUngrabKey(dpy, AnyKey, AnyModifier, root);
^
dwm.c:2206:22: error: expected ) before . token
XFreePixmap(dpy, dc.drawable);
^
dwm.c:2207:18: error: expected ) before . token
XFreeGC(dpy, dc.gc);
^
dwm.c:2208:1: error: stray @ in program
@@ -719,7 +715,7 @@
^
dwm.c:2208:2: error: stray @ in program
@@ -719,7 +715,7 @@
^
dwm.c:2208:4: error: expected identifier or ( before - token
@@ -719,7 +715,7 @@
^
dwm.c:2208:18: error: stray @ in program
@@ -719,7 +715,7 @@
^
dwm.c:2208:19: error: stray @ in program
@@ -719,7 +715,7 @@
^
dwm.c:2217:1: error: stray @ in program
@@ -774,10 +770,10 @@
^
dwm.c:2217:2: error: stray @ in program
@@ -774,10 +770,10 @@
^
dwm.c:2217:20: error: stray @ in program
@@ -774,10 +770,10 @@
^
dwm.c:2217:21: error: stray @ in program
@@ -774,10 +770,10 @@
^
dwm.c:2230:1: error: stray @ in program
@@ -786,11 +782,12 @@
^
dwm.c:2230:2: error: stray @ in program
@@ -786,11 +782,12 @@
^
dwm.c:2230:20: error: stray @ in program
@@ -786,11 +782,12 @@
^
dwm.c:2230:21: error: stray @ in program
@@ -786,11 +782,12 @@
^
dwm.c:2245:1: error: stray @ in program
@@ -805,11 +802,11 @@
^
dwm.c:2245:2: error: stray @ in program
@@ -805,11 +802,11 @@
^
dwm.c:2245:20: error: stray @ in program
@@ -805,11 +802,11 @@
^
dwm.c:2245:21: error: stray @ in program
@@ -805,11 +802,11 @@
^
dwm.c:2262:1: error: stray @ in program
@@ -855,7 +852,7 @@
^
dwm.c:2262:2: error: stray @ in program
@@ -855,7 +852,7 @@
^
dwm.c:2262:18: error: stray @ in program
@@ -855,7 +852,7 @@
^
dwm.c:2262:19: error: stray @ in program
@@ -855,7 +852,7 @@
^
dwm.c:2271:1: error: stray @ in program
@@ -926,14 +923,14 @@
^
dwm.c:2271:2: error: stray @ in program
@@ -926,14 +923,14 @@
^
dwm.c:2271:20: error: stray @ in program
@@ -926,14 +923,14 @@
^
dwm.c:2271:21: error: stray @ in program
@@ -926,14 +923,14 @@
^
dwm.c:2291:1: error: stray @ in program
@@ -1034,35 +1031,13 @@
^
dwm.c:2291:2: error: stray @ in program
@@ -1034,35 +1031,13 @@
^
dwm.c:2291:22: error: stray @ in program
@@ -1034,35 +1031,13 @@
^
dwm.c:2291:23: error: stray @ in program
@@ -1034,35 +1031,13 @@
^
dwm.c:2333:1: error: stray @ in program
@@ -1144,7 +1119,7 @@
^
dwm.c:2333:2: error: stray @ in program
@@ -1144,7 +1119,7 @@
^
dwm.c:2333:20: error: stray @ in program
@@ -1144,7 +1119,7 @@
^
dwm.c:2333:21: error: stray @ in program
@@ -1144,7 +1119,7 @@
^
dwm.c:2342:1: error: stray @ in program
@@ -1621,8 +1596,6 @@
^
dwm.c:2342:2: error: stray @ in program
@@ -1621,8 +1596,6 @@
^
dwm.c:2342:20: error: stray @ in program
@@ -1621,8 +1596,6 @@
^
dwm.c:2342:21: error: stray @ in program
@@ -1621,8 +1596,6 @@
^
dwm.c:2351:1: error: stray @ in program
@@ -1692,13 +1665,9 @@
^
dwm.c:2351:2: error: stray @ in program
@@ -1692,13 +1665,9 @@
^
dwm.c:2351:21: error: stray @ in program
@@ -1692,13 +1665,9 @@
^
dwm.c:2351:22: error: stray @ in program
@@ -1692,13 +1665,9 @@
^
dwm.c:2368:1: error: stray @ in program
@@ -1776,7 +1745,7 @@
^
dwm.c:2368:2: error: stray @ in program
@@ -1776,7 +1745,7 @@
^
dwm.c:2368:20: error: stray @ in program
@@ -1776,7 +1745,7 @@
^
dwm.c:2368:21: error: stray @ in program
@@ -1776,7 +1745,7 @@
^
make: *** [dwm.o] Error 1
Last edited by 桃甘蕉; 07-02-2014 at 09:39 AM.
|
|
|
09-02-2015, 10:40 PM
|
#3
|
LQ Newbie
Registered: Sep 2012
Posts: 4
Rep: 
|
Final resolution
If anyone else finds this and is still looking for a solution to the pango problem (like me), you need to add a line to your config.h:
Code:
static const Bool statusmarkup = False;
|
|
|
All times are GMT -5. The time now is 06:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|