base16-st
base16-st copied to clipboard
Can't compile against st-0.8.1
Hi all. I'm trying to compile the last version of St but get the error. What I did:
cd st-0.8.1
cat config.h | head -1
#include "themes/base16-default-dark-theme.h"
(all other options are default, except vars/constants related to colors are commented out)
make clean
make &> err.log
And here is content of err.log
st build options:
CFLAGS = -I/usr/X11R6/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -DVERSION="0.8.1" -D_XOPEN_SOURCE=600 -O
LDFLAGS = -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXft -lfontconfig -lfreetype -lfreetype
CC = c99
c99 -I/usr/X11R6/include `pkg-config --cflags fontconfig` `pkg-config --cflags freetype2` -DVERSION=\"0.8.1\" -D_XOPEN_SOURCE=600 -O -c st.c
c99 -I/usr/X11R6/include `pkg-config --cflags fontconfig` `pkg-config --cflags freetype2` -DVERSION=\"0.8.1\" -D_XOPEN_SOURCE=600 -O -c x.c
In file included from config.h:85:0,
from x.c:61:
themes/base16-default-dark-theme.h:37:21: error: static declaration of 'defaultfg' follows non-static declaration
static unsigned int defaultfg = 12;
^~~~~~~~~
In file included from x.c:20:0:
st.h:122:21: note: previous declaration of 'defaultfg' was here
extern unsigned int defaultfg;
^~~~~~~~~
In file included from config.h:85:0,
from x.c:61:
themes/base16-default-dark-theme.h:38:21: error: static declaration of 'defaultbg' follows non-static declaration
static unsigned int defaultbg = 8;
^~~~~~~~~
In file included from x.c:20:0:
st.h:123:21: note: previous declaration of 'defaultbg' was here
extern unsigned int defaultbg;
^~~~~~~~~
make: *** [Makefile:22: x.o] Error 1
Any ideas?
don't put the "static" keyword before the unsigned int defaultbg and defaultfg
Did it solve the issue?