LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Networkmanager-vpnc-0.9.4 fails to compile under -current (http://www.linuxquestions.org/questions/slackware-14/networkmanager-vpnc-0-9-4-fails-to-compile-under-current-4175457003/)

fl0 04-05-2013 02:38 PM

Networkmanager-vpnc-0.9.4 fails to compile under -current
 
Hi,

i try to compile Networkmanager-vpnc on -current and get this error:


Code:

config.status: creating auth-dialog/Makefile
config.status: creating auth-dialog/nm-vpnc-auth-dialog.desktop.in
config.status: creating properties/Makefile
config.status: creating properties/tests/Makefile
config.status: creating properties/tests/pcf/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
make  all-recursive
make[1]: Entering directory `/tmp/SBo/NetworkManager-vpnc-0.9.4.0'
Making all in src
make[2]: Entering directory `/tmp/SBo/NetworkManager-vpnc-0.9.4.0/src'
depbase=`echo nm-vpnc-service.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I..  -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  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/NetworkManager -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libnm-glib  -DG_DISABLE_DEPRECATED -DBINDIR=\"/usr/bin\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION="\"0.9.4.0\"" -DLIBDIR=\""/usr/lib64"\" -DLIBEXECDIR=\""/usr/libexec"\" -DLOCALSTATEDIR=\""/var"\" -DDATADIR=\"/usr/share\"  -Wall -std=gnu89 -O2 -fPIC -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Werror -MT nm-vpnc-service.o -MD -MP -MF $depbase.Tpo -c -o nm-vpnc-service.o nm-vpnc-service.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                from /usr/include/glib-2.0/glib/gtypes.h:34,
                from /usr/include/glib-2.0/glib/galloca.h:34,
                from /usr/include/glib-2.0/glib.h:32,
                from /usr/include/glib-2.0/glib/gi18n.h:23,
                from nm-vpnc-service.c:33:
nm-vpnc-service.c: In function 'nm_vpnc_plugin_get_type':
/usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef '_GStaticAssertCompileTimeAssertion_0' locally defined but not used [-Werror=unused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                    ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                              ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro 'G_PASTE'
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gthread.h:234:5: note: in expansion of macro 'G_STATIC_ASSERT'
    G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));      \
    ^
/usr/include/glib-2.0/gobject/gtype.h:1463:7: note: in expansion of macro 'g_once_init_enter'
  if (g_once_init_enter (&g_define_type_id__volatile))  \
      ^
/usr/include/glib-2.0/gobject/gtype.h:1387:60: note: in expansion of macro '_G_DEFINE_TYPE_EXTENDED_BEGIN'
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)    _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                            ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro 'G_DEFINE_TYPE_EXTENDED'
 #define G_DEFINE_TYPE(TN, t_n, T_P)      G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                          ^
nm-vpnc-service.c:46:1: note: in expansion of macro 'G_DEFINE_TYPE'
 G_DEFINE_TYPE (NMVPNCPlugin, nm_vpnc_plugin, NM_TYPE_VPN_PLUGIN)
 ^
/usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef '_GStaticAssertCompileTimeAssertion_1' locally defined but not used [-Werror=unused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                    ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                              ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro 'G_PASTE'
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gatomic.h:136:5: note: in expansion of macro 'G_STATIC_ASSERT'
    G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer));                \
    ^
/usr/include/glib-2.0/glib/gthread.h:236:7: note: in expansion of macro 'g_atomic_pointer_get'
    (!g_atomic_pointer_get (location) &&                            \
      ^
/usr/include/glib-2.0/gobject/gtype.h:1463:7: note: in expansion of macro 'g_once_init_enter'
  if (g_once_init_enter (&g_define_type_id__volatile))  \
      ^
/usr/include/glib-2.0/gobject/gtype.h:1387:60: note: in expansion of macro '_G_DEFINE_TYPE_EXTENDED_BEGIN'
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)    _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                            ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro 'G_DEFINE_TYPE_EXTENDED'
 #define G_DEFINE_TYPE(TN, t_n, T_P)      G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                          ^
nm-vpnc-service.c:46:1: note: in expansion of macro 'G_DEFINE_TYPE'
 G_DEFINE_TYPE (NMVPNCPlugin, nm_vpnc_plugin, NM_TYPE_VPN_PLUGIN)
 ^
/usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef '_GStaticAssertCompileTimeAssertion_2' locally defined but not used [-Werror=unused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                    ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                              ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro 'G_PASTE'
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gthread.h:241:5: note: in expansion of macro 'G_STATIC_ASSERT'
    G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));      \
    ^
/usr/include/glib-2.0/gobject/gtype.h:1477:7: note: in expansion of macro 'g_once_init_leave'
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \
      ^
/usr/include/glib-2.0/gobject/gtype.h:1387:117: note: in expansion of macro '_G_DEFINE_TYPE_EXTENDED_END'
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)    _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                                                                                    ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro 'G_DEFINE_TYPE_EXTENDED'
 #define G_DEFINE_TYPE(TN, t_n, T_P)      G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                          ^
nm-vpnc-service.c:46:1: note: in expansion of macro 'G_DEFINE_TYPE'
 G_DEFINE_TYPE (NMVPNCPlugin, nm_vpnc_plugin, NM_TYPE_VPN_PLUGIN)
 ^
cc1: all warnings being treated as errors
make[2]: *** [nm-vpnc-service.o] Error 1
make[2]: Leaving directory `/tmp/SBo/NetworkManager-vpnc-0.9.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/NetworkManager-vpnc-0.9.4.0'
make: *** [all] Error 2

any ideas?


regards fl0

volkerdi 04-05-2013 02:44 PM

Does it have a --disable-werror option to ./configure?

fl0 04-05-2013 02:44 PM

i have found this
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701458

fl0 04-05-2013 02:46 PM

Quote:

Originally Posted by volkerdi (Post 4925853)
Does it have a --disable-werror option to ./configure?

no ..

Code:

configure: WARNING: unrecognized options: --disable-werror

volkerdi 04-05-2013 02:50 PM

Try --disable-more-warnings.

fl0 04-05-2013 02:53 PM

Quote:

Originally Posted by volkerdi (Post 4925863)
Try --disable-more-warnings.

this works, thx for the hint

Alien Bob 04-05-2013 02:55 PM

It's probably the glib2 bug as mentioned in that debian bug report. See also http://www.linuxquestions.org/questi...ml#post4920872

Eric

volkerdi 04-05-2013 03:38 PM

It's not a bug. Just that gcc emits more warnings, and a lot of GNOME stuff seems to fail to compile on any warning as a default.


All times are GMT -5. The time now is 10:20 AM.