> -----Oprindelig meddelelse-----
> Fra: [email protected]
> [mailto:[email protected]] På vegne af Armin K.
> Sendt: 12. juni 2013 21:31
> Til: BLFS Support List
> Emne: Re: [blfs-support] Can not compile Network Manager
>
> On 06/12/2013 09:27 PM, Niels Terp wrote:
>> My LFS was build from LFS Stable 7.3, and has Glibc v. 2.17 - but the 
>> same version is used in the latest svn. I have searched for a later 
>> version, but not found anything later than 2.17. If there exists a 
>> version 2.36.3, from where can it be downloaded ?
>>
>> In the meantime I tried with NM 0.9.8.2 and the same instructions. It 
>> complains about the patch (from instructions), but with or without 
>> the patch, the problem is exactly the same.
>>
>> Niels
>>
>
> Glib, not Glibc.
>
> http://www.linuxfromscratch.org/blfs/view/svn/general/glib2.html
> --
> Sorry, my mistake. I have now reinstalled Glib pr. the instructions 
> you linked to, and tried to install NM from same instructions, and 
> also tried latest version of NM with this setup. By the way, there is 
> a small spelling error in the book:  --wihout-iptables: Use this 
> switch if you do not have Iptables. It should obviously be: 
> --without-iptables: Use this switch if you do not have Iptables.
>
> But still the same error during make.
>
> Niels
>

Boah. No problems should persist with Glib 2.36.x because that's the version
I tested NM instructions against. I am not really sure what your problem is.
You can try removing -Werror by issuing something like find . -name
"Makefile" | xargs sed "s@ -Werror@@g" after you've ran NM configure. Also,
you don't need the patch for 0.9.8.2 since the patch contains stuff that is
present in 0.9.8.2 but not in 0.9.8.0.
--
I tried that, it produced a lot of screen output (much more than can be
posted here). Then I did the make again:

LC_ALL=C make
make  all-recursive
make[1]: Entering directory `/home/niels/xf/NetworkManager-0.9.8.2'
Making all in include
make[2]: Entering directory `/home/niels/xf/NetworkManager-0.9.8.2/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/niels/xf/NetworkManager-0.9.8.2/include'
Making all in libnm-util
make[2]: Entering directory
`/home/niels/xf/NetworkManager-0.9.8.2/libnm-util'
  GEN      nm-utils-enum-types.h
  GEN      nm-utils-enum-types.c
make  all-recursive
make[3]: Entering directory
`/home/niels/xf/NetworkManager-0.9.8.2/libnm-util'
Making all in .
make[4]: Entering directory
`/home/niels/xf/NetworkManager-0.9.8.2/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/xf/NetworkManager-0.9.8.2/libnm-util'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/niels/xf/NetworkManager-0.9.8.2/libnm-util'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/niels/xf/NetworkManager-0.9.8.2/libnm-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/niels/xf/NetworkManager-0.9.8.2'
make: *** [all] Error 2

Niels

-- 
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