On 06/12/2013 08:31 PM, Niels Terp wrote:
> On 06/12/2013 08:13 PM, Niels Terp wrote:
>> Hi there,
>>
>> I have a problem compiling Network Manager 0.9.8.0 following BLFS
>> 2013-06-05:
>>
>> I do not have IP Tables installed, so I have passed the
>> --without-iptables parameter to config. Config works fine but make
>> ends after a second or so
>> in:
>>
>> nm-connection.c:105:1: note: in expansion of macro 'G_DEFINE_TYPE'
>>    G_DEFINE_TYPE (NMConnection, nm_connection, G_TYPE_OBJECT)
>>    ^
>> cc1: all warnings being treated as errors
>> make[4]: *** [libnm_util_la-nm-connection.lo] Fejl 1
>> make[4]: Forlader katalog
> '/home/niels/xc/NetworkManager-0.9.8.0/libnm-util'
>> make[3]: *** [all-recursive] Fejl 1
>> make[3]: Forlader katalog
> '/home/niels/xc/NetworkManager-0.9.8.0/libnm-util'
>> make[2]: *** [all] Fejl 2
>> make[2]: Forlader katalog
> '/home/niels/xc/NetworkManager-0.9.8.0/libnm-util'
>> make[1]: *** [all-recursive] Fejl 1
>> make[1]: Forlader katalog '/home/niels/xc/NetworkManager-0.9.8.0'
>> make: *** [all] Fejl 2
>>
>> Any suggestions ?
>>
>> Niels
>>
>
> When posting the output, please use locale en_US or C and post the full
> output. That one is incomplete.
>
> LC_ALL=C make
> --
> OK, here is first the output from configure:
>
> System paths:
>    prefix: /usr
>    exec_prefix: ${prefix}
>    systemdunitdir: no
>    nmbinary: ${exec_prefix}/sbin/NetworkManager
>    nmconfdir: /etc/NetworkManager
>    nmdatadir: ${datarootdir}/NetworkManager
>    nmstatedir: /var/lib/NetworkManager
>    nmrundir: /var/run/NetworkManager
>
> Platform:
>    session tracking: consolekit
>    suspend/resume: upower
>    policykit: yes (restrictive modify.system)
>
> Features:
>    wext: yes
>    wimax: no
>    ppp: no
>    modemmanager-1: auto
>    concheck: yes
>
> Configuration plugins
>    ifcfg-rh: no
>    ifcfg-suse: no
>    ifupdown: no
>    ifnet: no
>
> Handlers for /etc/resolv.conf:
>    resolvconf: no
>    netconfig: no
>
> DHCP clients:
>    dhclient: no
>    dhcpcd: /sbin/dhcpcd
>
> Miscellaneous:
>    documentation: no
>    tests: yes
>    code coverage: no
>
> Then LC_ALL=C make gives
>
> LC_ALL=C make
> make  all-recursive
> make[1]: Entering directory `/home/niels/Documents/NetworkManager-0.9.8.0'
> Making all in include
> make[2]: Entering directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/include'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/include'
> Making all in libnm-util
> make[2]: Entering directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
>    GEN    nm-utils-enum-types.h
>    GEN    nm-utils-enum-types.c
> make  all-recursive
> make[3]: Entering directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
> Making all in .
> make[4]: Entering directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
>    CC     libnm_util_la-crypto.lo
>    CC     libnm_util_la-nm-connection.lo
> In file included from /usr/lib/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/gobject/gbinding.h:30,
>                   from /usr/include/glib-2.0/glib-object.h:25,
>                   from nm-connection.c:26:
> nm-connection.c: In function 'nm_connection_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-connection.c:105:1: note: in expansion of macro 'G_DEFINE_TYPE'
>   G_DEFINE_TYPE (NMConnection, nm_connection, G_TYPE_OBJECT)
>   ^
> /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-connection.c:105:1: note: in expansion of macro 'G_DEFINE_TYPE'
>   G_DEFINE_TYPE (NMConnection, nm_connection, G_TYPE_OBJECT)
>   ^
> /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-connection.c:105:1: note: in expansion of macro 'G_DEFINE_TYPE'
>   G_DEFINE_TYPE (NMConnection, nm_connection, G_TYPE_OBJECT)
>   ^
> cc1: all warnings being treated as errors
> make[4]: *** [libnm_util_la-nm-connection.lo] Error 1
> make[4]: Leaving directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/niels/Documents/NetworkManager-0.9.8.0/libnm-util'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/niels/Documents/NetworkManager-0.9.8.0'
> make: *** [all] Error 2
>
> Hope this makes more sense.
>
> Niels
>

Which version of GLib do you have installed? If it's the current from 
the book, try using the latest stable, 2.36.3 one. If that fails, try 
using NM 0.9.8.2 which contains some bugfixes - same instructions should 
apply.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to