Re: [dev] slock size is not changed at resolution change
Hi again,
I just cloned the git repo and compiled the program using the
`libXrandr-devel` package on Fedora. The compilation seemed to be fine:
slock build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include
-I/usr/X11R6/include -DVERSION="1.2" -DHAVE_SHADOW_H
LDFLAGS = -s -L/usr/lib -lc -lcrypt -L/usr/X11R6/lib -lX11 -lXext
-lXrandr
CC = cc
CC slock.c
CC -o slock
And it was fast … C++ and templates definitly kill the compile time :-/.
Anyway, it does not start. It says
cannot disable the out-of-memory killer for this process
and bails with exit code 1. From the Fedora package specification I
think that the following lines change *something*:
%global _hardened_build 1
export CFLAGS="%{optflags}"
export LDFLAGS="%{?__global_ldflags}"
make %{?_smp_mflags}
I have no clear idea of what those options really are in detail. Perhaps
something with SELinux which prevents writing to `/proc`?
Version 1.2 does not compile directly, when I tried that I get the
following:
slock build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include
-I/usr/X11R6/include -DVERSION="1.2" -DHAVE_SHADOW_H
LDFLAGS = -s -L/usr/lib -lc -lcrypt -L/usr/X11R6/lib -lX11 -lXext
CC = cc
CC slock.c
In file included from slock.c:26:0:
config.h:1:30: error: 'NUMCOLS' undeclared here (not in a function)
static const char *colorname[NUMCOLS] = {
^
slock.c: In function 'lockscreen':
slock.c:215:60: error: 'COLOR2' undeclared (first use in this function)
XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), COLOR2,
&color, &dummy);
^
slock.c:215:60: note: each undeclared identifier is reported only
once for each function it appears in
slock.c:217:60: error: 'COLOR1' undeclared (first use in this function)
XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), COLOR1,
&color, &dummy);
^
In file included from slock.c:26:0:
slock.c: At top level:
config.h:1:20: warning: 'colorname' defined but not used
[-Wunused-variable]
static const char *colorname[NUMCOLS] = {
^
Makefile:18: recipe for target 'slock.o' failed
make: *** [slock.o] Error 1
All in all I cannot get the repo version to work, sorry. :-(
Martin
Received on Wed Dec 02 2015 - 15:25:07 CET
This archive was generated by hypermail 2.3.0
: Wed Dec 02 2015 - 15:36:09 CET