oxbar
oxbar copied to clipboard
Can't compile/make oxbar
Hello,
Just installed openbsd today and trying to get a statusbar.. When running make after cloning the repo i get this error
openbsd$ git clone https://github.com/ryanflannery/oxbar.git
Cloning into 'oxbar'...
remote: Enumerating objects: 2453, done.
remote: Total 2453 (delta 0), reused 0 (delta 0), pack-reused 2453 (from 1)
Receiving objects: 100% (2453/2453), 10.93 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (1805/1805), done.
openbsd$ cd oxbar/
openbsd$ ls
CONTRIBUTING.md gui sample.oxbar.conf testruns.sh
LICENSE images screenshots.sh widgets
Makefile loc settings.c widgets.c
README.md man settings.h widgets.h
TODO oxbar.c stats
openbsd$ make
cc -O2 -pipe -c -std=c89 -Wall -Wextra -Werror -O2 pkg-config --cflags pangocairo settings.c
settings.c:659:49: error: 'sscanf' may overflow; destination buffer in argument 3 has size 100, but the corresponding specifier may require size 101 [-Werror,-Wfortify-source]
if (1 == sscanf(line, " [%100[-a-zA-Z0-9]] ", theme_name)) {
^
1 error generated.
*** Error 1 in /home/joe/oxbar (Makefile:38 'settings.o')
Any ideas ?
Joe
Did you have any luck? I've run into the same issue and I don't know how to go about fixing it.