GNOME Bugzilla – Bug 697041
NetworkManager 0.9.8.0 fails to build with GCC-4.8.0 and/or GLib-2.36.0
Last modified: 2013-04-08 13:13:33 UTC
make[4]: Entering directory `/home/armin/src/NetworkManager-0.9.8.0/src/dns-manager' CC libdns_manager_la-nm-dns-manager.lo nm-dns-manager.c: In function 'compute_hash': nm-dns-manager.c:564:28: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] memset (buffer, 0, sizeof (buffer)); ^ cc1: all warnings being treated as errors make[4]: *** [libdns_manager_la-nm-dns-manager.lo] Error 1
fixed in git
make[9]: Entering directory `/home/armin/src/NetworkManager-0.9.8.0/src/settings/plugins/keyfile/tests' CC test_keyfile-test-keyfile.o In file included from test-keyfile.c:44:0: test-keyfile.c: In function ‘test_read_string_ssid’: test-keyfile.c:1196:53: error: argument to ‘sizeof’ in ‘memcmp’ call is the same expression as the second source; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] ASSERT (memcmp (array->data, expected_ssid, sizeof (expected_ssid)) == 0, ^ ../../../../../include/nm-test-helpers.h:43:8: note: in definition of macro ‘ASSERT’ if (!(x)) { \ ^ cc1: all warnings being treated as errors make[9]: *** [test_keyfile-test-keyfile.o] Error 1 make[9]: Leaving directory `/home/armin/src/NetworkManager-0.9.8.0/src/settings/plugins/keyfile/tests' Now I get this. Also, can you please add the last fix to 0.9.8 branch?
dcbw fixed the second bug and pulled both fixes to nm-0-9-8