+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/3ddesktop-0.2.9nb15/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/3ddesktop-0.2.9nb15/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for 3ddesktop-0.2.9nb15 cd . && /usr/bin/bash /home/pbulk/build/wm/3ddesktop/work/3ddesktop-0.2.9/missing --run autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.ac'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. rm -f stamp-h1 touch ./config.h.in cd . && /usr/bin/bash ./config.status config.h config.status: creating config.h config.status: config.h is unchanged /opt/pkg/bin/bmake all-am if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT 3ddesk.o -MD -MP -MF ".deps/3ddesk.Tpo" -c -o 3ddesk.o 3ddesk.cpp; then mv -f ".deps/3ddesk.Tpo" ".deps/3ddesk.Po"; else rm -f ".deps/3ddesk.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT 3ddeskd.o -MD -MP -MF ".deps/3ddeskd.Tpo" -c -o 3ddeskd.o 3ddeskd.cpp; then mv -f ".deps/3ddeskd.Tpo" ".deps/3ddeskd.Po"; else rm -f ".deps/3ddeskd.Tpo"; exit 1; fi In file included from 3ddeskd.cpp:56: face.hpp: In constructor 'Face::Face(int)': face.hpp:61:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 61 | memset (&topleft, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:62:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 62 | memset (&topright, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:63:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 63 | memset (&bottomleft, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:64:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 64 | memset (&bottomright, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:65:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 65 | memset (&normal, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ In file included from arrange.hpp:27, from 3ddeskd.cpp:57: faceset.hpp: In constructor 'FaceSet::FaceSet(int, int)': faceset.hpp:52:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | msgout (ERROR, "Out of memory: faceset constructor\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::reconfigure(int, int)': faceset.hpp:74:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 74 | msgout (DEBUG, "uuuu deleted %d\n", i + number_of_faces); | ^~~~~~~~~~~~~~~~~~~ faceset.hpp:83:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | msgout (DEBUG, "uuuu new face %d\n", i + old_num); | ^~~~~~~~~~~~~~~~~~~~ faceset.hpp:86:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 86 | msgout (ERROR, "Out of memory: faceset constructor\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'uint FaceSet::get_texture_id(int)': faceset.hpp:155:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | msgout (ERROR, "BUG: FaceSet::get_texture_id i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::load_texture_data(int, int, unsigned char*)': faceset.hpp:163:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | msgout (ERROR, "BUG: FaceSet::load_texture_data i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_list(int, uint)': faceset.hpp:171:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | msgout (ERROR, "BUG: FaceSet::set_list i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_active(int)': faceset.hpp:179:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | msgout (ERROR, "BUG: FaceSet::set_active i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_face(int, Point, Point, Point, Point)': faceset.hpp:187:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 187 | msgout (ERROR, "BUG: FaceSet::set_face i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from 3ddeskd.cpp:60: event.hpp: In member function 'void EventManager::add_event(event_t, void (*)(Event*), void*, int)': event.hpp:133:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 133 | msgout (ERROR, "out of memory: Event\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: At global scope: 3ddeskd.cpp:105:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 105 | char *TexModesStr[] = {"GL_DECAL","GL_MODULATE","GL_BLEND","GL_REPLACE"}; | ^~~~~~~~~~ 3ddeskd.cpp:105:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 105 | char *TexModesStr[] = {"GL_DECAL","GL_MODULATE","GL_BLEND","GL_REPLACE"}; | ^~~~~~~~~~~~~ 3ddeskd.cpp:105:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 105 | char *TexModesStr[] = {"GL_DECAL","GL_MODULATE","GL_BLEND","GL_REPLACE"}; | ^~~~~~~~~~ 3ddeskd.cpp:105:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 105 | char *TexModesStr[] = {"GL_DECAL","GL_MODULATE","GL_BLEND","GL_REPLACE"}; | ^~~~~~~~~~~~ 3ddeskd.cpp: In function 'void switch_desktop_on_exit(Event*)': 3ddeskd.cpp:266:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 266 | msgout (DEBUG, "Doing exit VD switch c=%d r=%d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void entry_move_start_hook(Event*)': 3ddeskd.cpp:277:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 277 | msgout (DEBUG, "################ ENTRY START!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void exit_move_start_hook(Event*)': 3ddeskd.cpp:290:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | msgout (DEBUG, "################ EXIT START!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void setup_goto_face(desktop_coords_t, desktop_coords_t, desktop_coords_t)': 3ddeskd.cpp:306:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | msgout (DEBUG, "**** setting up goto = %d x %d\n", goto_coords.column, goto_coords.row); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:354:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 354 | msgout (DEBUG, "**** complete - going with = %d x %d\n", goto_coords.column, goto_coords.row); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void calc_fps()': 3ddeskd.cpp:458:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 458 | msgout(DEBUG, "FPS: %lf\n", framerate); | ^~~~~~~~~~~~ 3ddeskd.cpp: In function 'void key_pressed(KeySym)': 3ddeskd.cpp:1243:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1243 | msgout (DEBUG, "glTexEnv mode=%s (%d)\n", TexModesStr[Curr_TexMode], | ^~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1380:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1380 | msgout (DEBUG, "KP: No action for %ld / 0x%lx.\n", key, key); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'Arrangement* demand_load_arrangement(FaceType_t)': 3ddeskd.cpp:1447:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1447 | msgout (DEBUG, "DDDDDDDDDDDDDD demand loading %d\n", type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1482:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1482 | msgout(ERROR, "out of memory\n"); | ^~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void set_arrangement(float)': 3ddeskd.cpp:1506:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1506 | msgout (ERROR, "BUG: Unknown face type (?)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1513:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1513 | msgout (ERROR, "BUG: could not demand load arrangement %d!\n", type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void begin_exit()': 3ddeskd.cpp:1538:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1538 | msgout (DEBUG, "cant exit in goto....\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1552:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1552 | msgout (DEBUG, "Doing VD switch c=%d r=%d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'desktop_coords_t wait_for_activation()': 3ddeskd.cpp:1628:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1628 | msgout (ERROR, "flush failed: %s\n", strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1634:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1634 | msgout (ERROR, "msgrcv failed: %s\n", strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1641:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1641 | msgout (DEBUG, "MSG: %ld\n", msgmgr.msg.mtype); | ^~~~~~~~~~~~ 3ddeskd.cpp:1649:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1649 | msgout(DEBUG, "####### current %d x %d\n", current_col, current_row); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1654:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1654 | msgout (DEBUG, "-- quiting\n"); | ^~~~~~~~~~~~~~ 3ddeskd.cpp:1665:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1665 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1689:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1689 | msgout (DEBUG, "acquire sleep is %d\n", msgmgr.msg.acquire_sleep); | ^~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1694:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1694 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1735:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1735 | msgout (DEBUG, "Ignoring out of bounds goto column of %d\n", goto_coords.column); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1744:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1744 | msgout (DEBUG, "Ignoring out of bounds goto row of %d\n", goto_coords.row); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1750:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1750 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1763:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1763 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1791:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1791 | cfg->set_config_set ("default"); | ^~~~~~~~~ 3ddeskd.cpp:1805:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1805 | msgout (DEBUG, "ZOOM is %d\n", cfg->options->entry_exit_movement); | ^~~~~~~~~~~~~~ 3ddeskd.cpp:1841:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1841 | msgout (DEBUG, "Ignoring out of bounds goto column of %d\n", goto_coords.column); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1853:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1853 | msgout (DEBUG, "Ignoring out of bounds goto row of %d\n", goto_coords.row); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1878:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1878 | msgout (DEBUG, "++++ column_count changed from %d to %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1894:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1894 | msgout (ERROR, "Unknown message! mytpe = %d\n", msgmgr.msg.mtype); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1901:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1901 | msgout (DEBUG, "Activated\n"); | ^~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void acquire_desktop(int)': 3ddeskd.cpp:1962:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1962 | msgout (DEBUG, ")))) GRABBING %d x %d\n", current_col, current_row); | ^~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:1965:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1965 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'int main_loop()': 3ddeskd.cpp:2015:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2015 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2087:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2087 | msgout(INFO, "Exiting sanely...\n"); | ^~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void load_digits()': 3ddeskd.cpp:2178:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2178 | msgout(ERROR, "Error allocating space for image"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2202:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2202 | msgout (DEBUG, "no digits.bmp found\n"); | ^~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void load_background_image()': 3ddeskd.cpp:2253:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2253 | msgout(ERROR, "Error allocating space for image"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2280:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2280 | msgout (DEBUG, "background image: %s not found\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void initialize_3ddesktop()': 3ddeskd.cpp:2328:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2328 | msgout (ERROR, "3ddesktop is already running. bye\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2333:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2333 | msgout (ERROR, "Failed to initialize display.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2363:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2363 | "\n" | ^~~~ 2364 | "================================================================\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2365 | "3ddesktop will be acquiring images in one moment. Please wait...\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2366 | "================================================================\n\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2374:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2374 | msgout(ERROR, "Failed to daemonize.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2404:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2404 | msgout(ERROR, "Could not create message queue! %s\n", strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2420:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2420 | GLWin.create_GL_window("Enhanced 3-dimensional workspace visualization magic machine", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2435:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2435 | msgout (ERROR, "Out of memory: face_set\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2463:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2463 | msgout(DEBUG, "sleeping %d...\n", cfg->options->acquire); | ^~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2470:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2470 | msgout (ERROR, "couldn't grab screen image\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2495:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2495 | msgout(ERROR, "Oops, someone beat us to start up!! Amazing!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'int main(int, char**)': 3ddeskd.cpp:2510:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2510 | msgout (ERROR, "new Config: out of memory\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2522:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2522 | msgout(DEBUG, "~~~~~ failed to set priority %d\n", cfg->priority); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'void load_background_image()': 3ddeskd.cpp:2264:25: warning: '%s' directive writing up to 1023 bytes into a region of size 100 [-Wformat-overflow=] 2264 | sprintf (filename, "%s", cfg->default_background); | ^~ 3ddeskd.cpp:2264:13: note: 'std::sprintf' output between 1 and 1024 bytes into a destination of size 100 2264 | sprintf (filename, "%s", cfg->default_background); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : warning: '%s' directive writing up to 1023 bytes into a region of size 75 [-Wformat-overflow=] : note: in definition of macro 'SHAREDIR' 3ddeskd.cpp:2268:17: note: 'std::sprintf' output between 26 and 1049 bytes into a destination of size 100 2268 | sprintf (filename, SHAREDIR "/%s", cfg->default_background); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2272:33: warning: '%s' directive writing up to 1023 bytes into a region of size 100 [-Wformat-overflow=] 2272 | sprintf (filename, "%s/%s", cfg->working_dir, | ^~ 3ddeskd.cpp:2272:21: note: 'std::sprintf' output between 2 and 2048 bytes into a destination of size 100 2272 | sprintf (filename, "%s/%s", cfg->working_dir, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2273 | cfg->default_background); | ~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2277:39: warning: '%s' directive writing up to 1023 bytes into a region of size 98 [-Wformat-overflow=] 2277 | sprintf (filename, "./%s", cfg->default_background); | ^~ 3ddeskd.cpp:2277:25: note: 'std::sprintf' output between 3 and 1026 bytes into a destination of size 100 2277 | sprintf (filename, "./%s", cfg->default_background); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2309:12: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2309 | delete data; | ^~~~ 3ddeskd.cpp:2251:60: note: returned from 'void* operator new [](std::size_t)' 2251 | data = new unsigned char [bg_img_size * bg_img_size * 4]; | ^ 3ddeskd.cpp: In function 'int main(int, char**)': 3ddeskd.cpp:2187:25: warning: '%s' directive writing up to 1023 bytes into a region of size 100 [-Wformat-overflow=] 2187 | sprintf (filename, "%s/digits.bmp", cfg->options->base_dir); | ^~ In function 'void load_digits()', inlined from 'void initialize_3ddesktop()' at 3ddeskd.cpp:2488:16, inlined from 'int main(int, char**)' at 3ddeskd.cpp:2518:25: 3ddeskd.cpp:2187:13: note: 'std::sprintf' output between 12 and 1035 bytes into a destination of size 100 2187 | sprintf (filename, "%s/digits.bmp", cfg->options->base_dir); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp: In function 'int main(int, char**)': 3ddeskd.cpp:2195:33: warning: '%s' directive writing up to 1023 bytes into a region of size 100 [-Wformat-overflow=] 2195 | sprintf (filename, "%s/digits.bmp", cfg->working_dir); | ^~ In function 'void load_digits()', inlined from 'void initialize_3ddesktop()' at 3ddeskd.cpp:2488:16, inlined from 'int main(int, char**)' at 3ddeskd.cpp:2518:25: 3ddeskd.cpp:2195:21: note: 'std::sprintf' output between 12 and 1035 bytes into a destination of size 100 2195 | sprintf (filename, "%s/digits.bmp", cfg->working_dir); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ddeskd.cpp:2223:12: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2223 | delete data; | ^~~~ 3ddeskd.cpp:2176:48: note: returned from 'void* operator new [](std::size_t)' 2176 | data = new unsigned char [sizex * sizey * 4]; | ^ if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT xutil.o -MD -MP -MF ".deps/xutil.Tpo" -c -o xutil.o xutil.cpp; then mv -f ".deps/xutil.Tpo" ".deps/xutil.Po"; else rm -f ".deps/xutil.Tpo"; exit 1; fi xutil.cpp: In member function 'int VDesktops::init(Config*)': xutil.cpp:56:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 56 | msgout (ERROR, "Can not open display!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In member function 'void VDesktops::get_vdesktop_info(int*, int*, int*, int*)': xutil.cpp:94:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | msgout(DEBUG, "vdesktops: sawfish only\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:100:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 100 | msgout (DEBUG, "vdesktops: EWMH\n"); | ^~~~~~~~~~~~~~~~~~~ xutil.cpp:108:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 108 | msgout(DEBUG, "vdesktops: areas\n"); | ^~~~~~~~~~~~~~~~~~~~ xutil.cpp:124:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 124 | msgout (ERROR, "Could not find more then one virtual desktop!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:130:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 130 | msgout(DEBUG, "vdesktops: workspaces only\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:139:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | msgout (DEBUG, "vdesktops: making best guess...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:162:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 162 | else msgout (ERROR, "Could not find more then one virtual desktop!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:171:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | msgout (DEBUG, "c=%d, r=%d, nc=%d, nr=%d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In member function 'void VDesktops::set_vdesktop(int, int)': xutil.cpp:221:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | msgout (DEBUG, "vdesktops: set: no type predetermined.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In member function 'void VDesktops::gnome_set_current_area(int, int)': xutil.cpp:334:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 334 | int rc; | ^~ xutil.cpp: In member function 'void VDesktops::gnome_get_area_info(gnome_area_info*)': xutil.cpp:369:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 369 | msgout(DEBUG, "get property WIN_AREA failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:383:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 383 | msgout(DEBUG, "get property WIN_AREA_COUNT failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In member function 'void VDesktops::gnome_set_current_workspace(int)': xutil.cpp:401:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 401 | int rc; | ^~ xutil.cpp: In member function 'void VDesktops::gnome_get_workspace_info(gnome_workspace_info*)': xutil.cpp:432:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 432 | msgout(DEBUG, "get property WIN_WORKSPACE failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:442:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 442 | msgout(DEBUG, "get property WIN_WORKSPACE_COUNT failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In member function 'void VDesktops::ewmh_set_current_desktop(int)': xutil.cpp:459:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 459 | int rc; | ^~ xutil.cpp: In member function 'void VDesktops::ewmh_get_desktop_info(gnome_workspace_info*)': xutil.cpp:491:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 491 | msgout(DEBUG, "get property _NET_CURRENT_DESKTOP failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp:501:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 501 | msgout(DEBUG, "get property _NET_NUMBER_OF_DESKTOPS failed - setting one\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xutil.cpp: In function 'int ignore_all_errors_ehandler(Display*, XErrorEvent*)': xutil.cpp:680:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 680 | msgout (ERROR, "X error\n"); | ^~~~~~~~~~~ if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT arrange.o -MD -MP -MF ".deps/arrange.Tpo" -c -o arrange.o arrange.cpp; then mv -f ".deps/arrange.Tpo" ".deps/arrange.Po"; else rm -f ".deps/arrange.Tpo"; exit 1; fi In file included from arrange.hpp:26, from arrange.cpp:30: face.hpp: In constructor 'Face::Face(int)': face.hpp:61:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 61 | memset (&topleft, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:62:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 62 | memset (&topright, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:63:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 63 | memset (&bottomleft, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:64:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 64 | memset (&bottomright, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ face.hpp:65:16: warning: 'void* std::memset(void*, int, size_t)' clearing an object of non-trivial type 'class Point'; use assignment or value-initialization instead [-Wclass-memaccess] 65 | memset (&normal, 0, sizeof(Point)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ face.hpp:33:7: note: 'class Point' declared here 33 | class Point { | ^~~~~ In file included from arrange.hpp:27: faceset.hpp: In constructor 'FaceSet::FaceSet(int, int)': faceset.hpp:52:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | msgout (ERROR, "Out of memory: faceset constructor\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::reconfigure(int, int)': faceset.hpp:74:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 74 | msgout (DEBUG, "uuuu deleted %d\n", i + number_of_faces); | ^~~~~~~~~~~~~~~~~~~ faceset.hpp:83:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | msgout (DEBUG, "uuuu new face %d\n", i + old_num); | ^~~~~~~~~~~~~~~~~~~~ faceset.hpp:86:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 86 | msgout (ERROR, "Out of memory: faceset constructor\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'uint FaceSet::get_texture_id(int)': faceset.hpp:155:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | msgout (ERROR, "BUG: FaceSet::get_texture_id i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::load_texture_data(int, int, unsigned char*)': faceset.hpp:163:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | msgout (ERROR, "BUG: FaceSet::load_texture_data i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_list(int, uint)': faceset.hpp:171:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | msgout (ERROR, "BUG: FaceSet::set_list i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_active(int)': faceset.hpp:179:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | msgout (ERROR, "BUG: FaceSet::set_active i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faceset.hpp: In member function 'void FaceSet::set_face(int, Point, Point, Point, Point)': faceset.hpp:187:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 187 | msgout (ERROR, "BUG: FaceSet::set_face i >= n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arrange.cpp: In constructor 'Arrangement::Arrangement(FaceSet*, Config*)': arrange.cpp:52:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | msgout(DEBUG, "Arrangement constructor\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ arrange.cpp: In member function 'virtual void LinearArrangement::set_current_face(int, int)': arrange.cpp:1396:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1396 | msgout (DEBUG, "set_current_face: Y_Trans = %f, " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1397 | "current_col=%d, current_row=%d, face_height=%f, " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1398 | "between=%f, hfh=%f\n", Y_Trans, current_col, current_row, | ~~~~~~~~~~~~~~~~~~~~~~ arrange.cpp: In constructor 'FlipArrangement::FlipArrangement(VDesktops&, float, float, FaceSet*, Config*, Camera*)': arrange.cpp:1698:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1698 | msgout(ERROR, "out of memory\n"); | ^~~~~~~~~~~~~~~~~ arrange.cpp:1704:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1704 | msgout(ERROR, "out of memory\n"); | ^~~~~~~~~~~~~~~~~ In member function 'void FaceSet::render_all(int)', inlined from 'virtual void Arrangement::render()' at arrange.cpp:313:25: faceset.hpp:144:16: warning: 'void operator delete(void*, size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 144 | delete order; | ^~~~~ faceset.hpp:133:45: note: returned from 'void* operator new [](size_t)' 133 | int *order = new int[number_of_faces]; | ^ if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.cpp; then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi util.cpp: In function 'int load_image(char*, unsigned char*, unsigned int*, unsigned int*, int)': util.cpp:153:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 153 | msgout(ERROR,"Error reading width from %s.\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:159:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | msgout(DEBUG,"Error: width of %s is %u not %u\n", filename, size_x, *sizex); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:166:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 166 | msgout(ERROR,"Error reading height from %s.\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:172:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 172 | msgout(DEBUG,"Error: height of %s is %u not %u\n", filename, size_y, *sizey); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:179:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | msgout(ERROR,"Error reading planes from %s.\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:185:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 185 | msgout(ERROR,"Planes from %s is not 1: %u\n", filename, planes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:191:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 191 | msgout(ERROR,"Error reading bpp from %s.\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:202:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 202 | msgout(ERROR,"Bpp from %s is not 24 or 32: %u\n", filename, bpp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:221:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | msgout(ERROR,"Out of memory\n"); | ^~~~~~~~~~~~~~~~~ util.cpp:227:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 227 | msgout(ERROR,"Error reading image data from %s.\n", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:251:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 251 | if (add_alpha) | ^ util.cpp: In function 'int check_if_i_am_running()': util.cpp:363:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 363 | msgout(ERROR,"ftok failed: %d: %s\n", errno, strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~ util.cpp:375:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 375 | msgout(ERROR,"semget (2) failed: %d: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:382:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 382 | msgout (ERROR, "semctl GETVAL zero failed: %d: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:392:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 392 | msgout(ERROR, "semget failed: %d: %s\n", errno, strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:406:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 406 | msgout (ERROR, "semctl SETVAL zero failed: %d: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp: In function 'int flag_that_i_am_running()': util.cpp:441:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 441 | msgout(ERROR,"ftok failed: %d: %s\n", errno, strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~ util.cpp:454:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 454 | msgout(ERROR,"semget (2) failed: %d: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:461:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 461 | msgout(ERROR, "semget failed: %d: %s\n", errno, strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:478:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 478 | msgout (ERROR, "semctl SETVAL zero failed: %d: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:513:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 513 | msgout (ERROR, "semop failed: %d: %s\n", errno, | ^~~~~~~~~~~~~~~~~~~~~~~~ util.cpp: In function 'int daemon_init()': util.cpp:693:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 693 | msgout (DEBUG, "daemon init\n"); | ^~~~~~~~~~~~~~~ util.cpp:696:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | msgout (ERROR, "daemon_init: fork failed: %s\n", strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp:699:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 699 | msgout (INFO, "Daemon started. Run 3ddesk to activate.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp: In function 'void end_program(int)': util.cpp:727:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 727 | msgout(ERROR, "Could not delete message queue: %s\n", strerror(errno)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.cpp: In function 'int load_image(char*, unsigned char*, unsigned int*, unsigned int*, int)': util.cpp:261:12: warning: 'void operator delete(void*, size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 261 | delete working_buff; | ^~~~~~~~~~~~ util.cpp:219:61: note: returned from 'void* operator new [](size_t)' 219 | working_buff = new unsigned char[(*sizex) * (*sizey) * 4]; | ^ if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT win.o -MD -MP -MF ".deps/win.Tpo" -c -o win.o win.cpp; then mv -f ".deps/win.Tpo" ".deps/win.Po"; else rm -f ".deps/win.Tpo"; exit 1; fi win.cpp: In function 'int X_errors_handler(Display*, XErrorEvent*)': win.cpp:81:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 81 | msgout (ERROR, "-------- X error\n"); | ^~~~~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::open_display()': win.cpp:101:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | msgout (ERROR, "Can't open display\n"); | ^~~~~~~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::create_GL_window(char*, int)': win.cpp:186:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 186 | msgout (DEBUG, "width %d x %d\n", width, height); | ^~~~~~~~~~~~~~~~~ win.cpp:196:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 196 | msgout(DEBUG, "XF86VidModeExtension-Version %d.%d\n", vidModeMajorVersion, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:205:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 205 | msgout(DEBUG, "Only Singlebuffered Visual!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:209:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | msgout(DEBUG, "Got Doublebuffered Visual!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:213:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | msgout(DEBUG, "glX-Version %d.%d\n", glxMajorVersion, glxMinorVersion); | ^~~~~~~~~~~~~~~~~~~~~ win.cpp:219:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | msgout (DEBUG, "create context\n"); | ^~~~~~~~~~~~~~~~~~ win.cpp:240:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | msgout(DEBUG, "Resolution %dx%d\n", dpyWidth, dpyHeight); | ^~~~~~~~~~~~~~~~~~~~ win.cpp:263:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | "\000", 1, 1, | ^~~~~~ win.cpp:283:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 283 | msgout(DEBUG, "xgrabkeyboard rc = %d\n", rc1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:284:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 284 | msgout(DEBUG, "xgrabpointer rc = %d\n", rc2); | ^~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:320:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | msgout(DEBUG, "Depth %d\n", depth); | ^~~~~~~~~~~~ win.cpp:323:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 323 | msgout(DEBUG, "Congrats, you have Direct Rendering!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:326:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 326 | "glXIsDirect failed, no Direct Rendering possible!\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 327 | "3ddesktop will run slow without hardware acceleration.\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::get_best_texture_size(int)': win.cpp:350:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 350 | msgout (DEBUG, "Found best texture size as %d\n", s); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::kill_GL_window()': win.cpp:360:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 360 | msgout (DEBUG, "kill window\n"); | ^~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::unhide_GL_window()': win.cpp:397:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 397 | msgout(WARN, "xgrabkeyboard rc = %d\n", rc1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:402:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 402 | msgout(WARN, "xgrabpointer rc = %d\n", rc2); | ^~~~~~~~~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::grab_screenshot_data_portion(int, int, int, int)': win.cpp:463:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | msgout (ERROR, "out of memory\n"); | ^~~~~~~~~~~~~~~~~ win.cpp: In member function 'int GLWindow::grab_screenshot_data()': win.cpp:531:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 531 | msgout(DEBUG, "Allocating screenshot buffer %d bytes\n", cfg->texture_size * cfg->texture_size * 4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win.cpp:534:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 534 | msgout (ERROR, "out of memory\n"); | ^~~~~~~~~~~~~~~~~ if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT camera.o -MD -MP -MF ".deps/camera.Tpo" -c -o camera.o camera.cpp; then mv -f ".deps/camera.Tpo" ".deps/camera.Po"; else rm -f ".deps/camera.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -MT config.o -MD -MP -MF ".deps/config.Tpo" -c -o config.o config.cpp; then mv -f ".deps/config.Tpo" ".deps/config.Po"; else rm -f ".deps/config.Tpo"; exit 1; fi config.cpp: In function 'void usage_and_bye()': config.cpp:29:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 29 | "usage: 3ddeskd [ OPTIONS ]\n\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | " where:\n" | ~~~~~~~~~~~~ 31 | " --version Display version information\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | " --acquire[=#] Grab images for all the desktops by cycling thru\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 | " (sleep for # millisecs at each screen for refresh)\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 | " --mirror Grab image from current desktop and use for all\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 | " --dir=/path the install dir if different than /usr/share/3ddesktop\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36 | " --texturesize=# size of textures (larger for more detail) in powers of 2\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | " --wm= Specify the Windowmanager type so all the virtual \n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 | " desktops are found correctly. Available options are:\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | " kde2, kde3, gnome1, gnome2, ewmh, fluxbox, windowmaker,\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | " enlightenment, sawfishonly, workspaces\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 41 | " --fastest hog the CPU for smoothest operation\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 42 | " -v verbose/debug information\n\n"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Options::set_color(int*, char*)': config.cpp:138:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | msgout (DEBUG, "conf file: invalid color '%s' (red,green,blue,yellow,white,purple,orange)\n", color); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In constructor 'Config::Config()': config.cpp:326:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 326 | default_options = new Options("cmdline"); | ^~~~~~~~~ config.cpp:328:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 328 | msgout(ERROR, "out of memory: Config\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Config::init_from_command_line(int, char**)': config.cpp:418:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 418 | msgout (INFO, "Verbose is ON\n"); | ^~~~~~~~~~~~~~~~~ config.cpp: In member function 'int Config::set_global_option(char*, char*, bool)': config.cpp:446:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 446 | msgout (ERROR, "Texture size must be a power of 2 (such as 256, 512, 1024 ...)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:462:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 462 | msgout (ERROR, "BG Texture size must be a power of 2 (such as 256, 512, 1024 ...)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Config::set_config_set(char*)': config.cpp:635:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 635 | msgout (DEBUG, "*** picking random view\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:648:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 648 | msgout (DEBUG, "*** FOUND cfg set %s\n", (*k)->name); | ^~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Config::load_conf()': config.cpp:696:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | msgout (DEBUG, "Could not open config file: 3ddesktop.conf: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:702:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 702 | msgout (DEBUG, "load_conf: opened %s\n", config_file); | ^~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:742:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 742 | msgout (DEBUG, "config load: see %d vars only (line %d)\n", n, line); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:757:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 757 | msgout (ERROR, "out of memory for Options\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:760:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 760 | msgout (DEBUG, "Found view: %s\n", var2); | ^~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Config::create_working_dir_if_necessary()': config.cpp:819:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 819 | msgout(ERROR, "Could not make directory %s: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp:824:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 824 | msgout(ERROR, "Could not open directory %s: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'int Config::make_pidfile()': config.cpp:842:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 842 | msgout (ERROR, "Could not open %s: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In constructor 'Options::Options(char*)': config.cpp:72:16: warning: 'char* std::strncpy(char*, const char*, size_t)' specified bound 50 equals destination size [-Wstringop-truncation] 72 | strncpy(name, n, sizeof(name)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'int Options::set_option(char*, char*, bool)': config.cpp:218:16: warning: 'char* std::strncpy(char*, const char*, size_t)' specified bound 1024 equals destination size [-Wstringop-truncation] 218 | strncpy(base_dir, value, sizeof(base_dir)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'int Config::make_pidfile()': config.cpp:838:26: warning: '/pid' directive writing 4 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 838 | sprintf (pidfile, "%s/pid", working_dir); | ^~~~ config.cpp:838:13: note: 'std::sprintf' output between 5 and 1028 bytes into a destination of size 1024 838 | sprintf (pidfile, "%s/pid", working_dir); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'int Config::set_global_option(char*, char*, bool)': config.cpp:556:16: warning: 'char* std::strncpy(char*, const char*, size_t)' specified bound 1024 equals destination size [-Wstringop-truncation] 556 | strncpy(default_background, value, sizeof(default_background)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.cpp: In member function 'void Config::load_conf()': config.cpp:685:29: warning: '/3ddesktop.conf' directive writing 15 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 685 | sprintf(config_file, "%s/3ddesktop.conf", working_dir); | ^~~~~~~~~~~~~~~ config.cpp:685:12: note: 'std::sprintf' output between 16 and 1039 bytes into a destination of size 1024 685 | sprintf(config_file, "%s/3ddesktop.conf", working_dir); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o 3ddesk 3ddesk.o -lm -lXxf86vm -lXext g++ -Wall -O3 -DQT_CLEAN_NAMESPACE -DSHAREDIR=\"/opt/pkg/share/3ddesktop\" -DSYSCONFDIR=\"/opt/pkg/etc\" -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -I/opt/pkg/include/freetype2 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o 3ddeskd -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lImlib2 -lGLU -lGL 3ddeskd.o xutil.o arrange.o util.o win.o camera.o config.o -lm -lXxf86vm -lXext Undefined first referenced symbol in file XUnmapWindow win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XGrabKeyboard win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XFree xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XSync xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XGetAtomName 3ddeskd.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XOpenDisplay xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XCreatePixmapCursor win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XCreatePixmapFromBitmapData win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XDestroyWindow win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XSendEvent xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XGrabPointer win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XGetWindowProperty xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XMapRaised win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XCreateWindow win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XPending 3ddeskd.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XSetErrorHandler xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XChangeProperty win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XSetStandardProperties win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XLookupKeysym 3ddeskd.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XSetWMProtocols win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XFreePixmap win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XInternAtom xutil.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XCreateColormap win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XNextEvent 3ddeskd.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) XGetGeometry win.o (symbol belongs to implicit dependency /home/pbulk/build/wm/3ddesktop/work/.buildlink/lib/libX11.so.6) ld: fatal: symbol referencing errors. No output written to 3ddeskd collect2: error: ld returned 1 exit status *** [3ddeskd] Error code 1 bmake[1]: stopped in /home/pbulk/build/wm/3ddesktop/work/3ddesktop-0.2.9 1 error bmake[1]: stopped in /home/pbulk/build/wm/3ddesktop/work/3ddesktop-0.2.9 *** [all] Error code 2 bmake: stopped in /home/pbulk/build/wm/3ddesktop/work/3ddesktop-0.2.9 1 error bmake: stopped in /home/pbulk/build/wm/3ddesktop/work/3ddesktop-0.2.9 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/wm/3ddesktop *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/wm/3ddesktop