joelburget / slimlock

SLiM + slock = slimlock
GNU General Public License v2.0
40 stars 17 forks source link

Syntax error when compiling Pop OS #26

Closed bruh12543 closed 2 years ago

bruh12543 commented 2 years ago
kamra@pop-os:~/Downloads/slimlock$ sudo make
g++  -Wall -I. -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -DPACKAGE=\"slimlock\" -DVERSION=\"0.11\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\"  -c cfg.cpp -o cfg.o
g++  -Wall -I. -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -DPACKAGE=\"slimlock\" -DVERSION=\"0.11\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\"  -c image.cpp -o image.o
g++  -Wall -I. -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -DPACKAGE=\"slimlock\" -DVERSION=\"0.11\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\"  -c panel.cpp -o panel.o
panel.cpp: In constructor ‘Panel::Panel(Display*, int, Window, Cfg*, const string&)’:
panel.cpp:47:15: error: ordered comparison of pointer with integer zero (‘GC’ {aka ‘_XGC*’} and ‘int’)
   47 |     if (WinGC < 0) {
      |         ~~~~~~^~~
make: *** [Makefile:29: panel.o] Error 1
kamra@pop-os:~/Downloads/slimlock$ sudo make install
g++  -Wall -I. -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -DPACKAGE=\"slimlock\" -DVERSION=\"0.11\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\"  -c panel.cpp -o panel.o
panel.cpp: In constructor ‘Panel::Panel(Display*, int, Window, Cfg*, const string&)’:
panel.cpp:47:15: error: ordered comparison of pointer with integer zero (‘GC’ {aka ‘_XGC*’} and ‘int’)
   47 |     if (WinGC < 0) {
      |         ~~~~~~^~~
make: *** [Makefile:29: panel.o] Error 1
kamra@pop-os:~/Downloads/slimlock$
joelburget commented 2 years ago

Thanks for the report -- I'm not maintaining slimlock anymore but you can fork it. Replacing those 0s with nullptr might do the trick.