cryptkeeper icon indicating copy to clipboard operation
cryptkeeper copied to clipboard

Can't compile with GCC 7

Open sixtyfive opened this issue 7 years ago • 1 comments

configure works fine, but during make, warnings seem to get treated as errors despite -Wno-error and the build fails. The last command ran inside of src is:

g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I..     -g2 -O3 -pipe -fPIC -Wformat -Wformat-security -malign-data=abi -fno-omit-frame-pointer -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-loop-distribute-patterns -fno-semantic-interposition -ftree-vectorize -ftree-loop-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -MT lsof.o -MD -MP -MF .deps/lsof.Tpo -c -o lsof.o lsof.cpp

sixtyfive avatar May 27 '17 02:05 sixtyfive

Okay, figured it out. src/lsof.cpp needs

 #include <sys/types.h>
 #include <unistd.h>

added to it. I'll try to figure out how to make a PR.

sixtyfive avatar Jul 03 '17 00:07 sixtyfive