On Tue, Jul 05, 2016 at 10:47:45AM -0500, Dutch Ingraham wrote:
On Tue, Jul 05, 2016 at 06:07:03PM +0300, Andrei Borzenkov wrote:
05.07.2016 17:46, Dutch Ingraham пишет:
On Tue, Jul 05, 2016 at 06:14:07AM +0300, Andrei Borzenkov wrote:
05.07.2016 00:56, Dutch Ingraham пишет: No, solution is to add
-I/usr/include/freetype2
to CFLAGS.
Thanks - that worked. However, I'm now getting two further errors:
dwm.c: In function ‘updatestatus’: dwm.c:1996:23: error: expected ‘)’ before ‘VERSION’ strcpy(stext, "dwm-"VERSION); ^ dwm.c: In function ‘main’: dwm.c:2127:13: error: expected ‘)’ before ‘VERSION’ die("dwm-"VERSION "\n"); ^ Makefile:18: recipe for target 'dwm.o' failed make: *** [dwm.o] Error 1
Most likely you overwrote your CFLAGS instead of adding to them.
That's a distinct possibility. I've tried two ways:
dutch@linux-uoyk:~/bin/dwm-6.1> make CFLAGS+=-I/usr/include/freetype2 and
dutch@linux-uoyk:~/bin/dwm-6.1> make CFLAGS=-I/usr/include/freetype2
The above errors are the same either way. I have not modified the Makefile.
Looking at the Make manual[1] in the section "Appending more text to variables" indicates the first way is correct.
However, others have had some issue with that not working as expected[2] but the solution is not clear to me.
Do you have a recommended command to append and not overwrite?
[1]http://www.gnu.org/software/make/manual/make.html#Appending [2]http://stackoverflow.com/questions/2129391/append-to-gnu-make-variables-via-...
I'm now not so certain it is a CFLAGS issue. I just tried to compile the dwm.c code with clang and received the same errors: dutch@linux-uoyk:~/bin/dwm-6.1> clang -I/usr/include/freetype2 dwm.c dwm.c:1008:11: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); ^ /usr/include/X11/Xlib.h:1687:15: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here extern KeySym XKeycodeToKeysym( ^ dwm.c:1996:23: error: expected ')' strcpy(stext, "dwm-"VERSION); ^ dwm.c:1996:9: note: to match this '(' strcpy(stext, "dwm-"VERSION); ^ dwm.c:2127:13: error: expected ')' die("dwm-"VERSION "\n"); ^ dwm.c:2127:6: note: to match this '(' die("dwm-"VERSION "\n"); ^ 1 warning and 2 errors generated. dutch@linux-uoyk:~/bin/dwm-6.1> Does this clarify or confuse the situation? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org