Re: networkmanager-applet



On Tue, 2018-07-31 at 10:33 +0300, Cristian Crinteanu wrote:
can't build networkmanager-applet  1.8.14 with headers of
networkmanager 1.12.2

+ make -O -j4
  GEN      src/libnm-gtk/nm-resources.c
  GEN      src/libnm-gtk/nm-resources.h
  GEN      src/wireless-security/ws-resources.h
  GEN      src/wireless-security/ws-resources.c
  CC       src/libnma/src_libnma_libnma_la-nma-vpn-password-dialog.lo
In file included from /usr/include/libnm/NetworkManager.h:46:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-vpn-password-dialog.c:26:
/usr/include/libnm/nm-device-ovs-port.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-port.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_port_get_slaves (NMDeviceOvsPort
*device);
 ^~~~~
In file included from /usr/include/libnm/NetworkManager.h:47:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-vpn-password-dialog.c:26:
/usr/include/libnm/nm-device-ovs-bridge.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-bridge.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_bridge_get_slaves (NMDeviceOvsBridge
*device);
 ^~~~~
make: *** [Makefile:2676: src/libnma/src_libnma_libnma_la-nma-vpn-
password-dialog.lo] Error 1
make: *** Waiting for unfinished jobs....
  CC       src/libnma/src_libnma_libnma_la-nma-mobile-providers.lo
In file included from /usr/include/libnm/NetworkManager.h:46:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-mobile-providers.c:25:
/usr/include/libnm/nm-device-ovs-port.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-port.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_port_get_slaves (NMDeviceOvsPort
*device);
 ^~~~~
In file included from /usr/include/libnm/NetworkManager.h:47:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-mobile-providers.c:25:
/usr/include/libnm/nm-device-ovs-bridge.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-bridge.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_bridge_get_slaves (NMDeviceOvsBridge
*device);
 ^~~~~
make: *** [Makefile:2669: src/libnma/src_libnma_libnma_la-nma-mobile-
providers.lo] Error 1
  CC       src/libnma/src_libnma_libnma_la-nma-mobile-wizard.lo
In file included from /usr/include/libnm/NetworkManager.h:46:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-mobile-wizard.c:23:
/usr/include/libnm/nm-device-ovs-port.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-port.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_port_get_slaves (NMDeviceOvsPort
*device);
 ^~~~~
In file included from /usr/include/libnm/NetworkManager.h:47:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-mobile-wizard.c:23:
/usr/include/libnm/nm-device-ovs-bridge.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-bridge.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_bridge_get_slaves (NMDeviceOvsBridge
*device);
 ^~~~~
make: *** [Makefile:2662: src/libnma/src_libnma_libnma_la-nma-mobile-
wizard.lo] Error 1
  CC       src/libnma/src_libnma_libnma_la-nma-wifi-dialog.lo
In file included from /usr/include/libnm/NetworkManager.h:46:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-wifi-dialog.c:23:
/usr/include/libnm/nm-device-ovs-port.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-port.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_port_get_slaves (NMDeviceOvsPort
*device);
 ^~~~~
In file included from /usr/include/libnm/NetworkManager.h:47:0,
                 from ./shared/nm-default.h:75,
                 from src/libnma/nma-wifi-dialog.c:23:
/usr/include/libnm/nm-device-ovs-bridge.h:45:1: error: macro
"G_UNAVAILABLE" passed 3 arguments, but takes just 2
 NM_AVAILABLE_IN_1_12_2
 ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libnm/nm-device-ovs-bridge.h:46:1: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
 const GPtrArray *nm_device_ovs_bridge_get_slaves (NMDeviceOvsBridge
*device);
 ^~~~~
make: *** [Makefile:2655: src/libnma/src_libnma_libnma_la-nma-wifi-
dialog.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.MgdMvP (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.MgdMvP (%build)
[yoda@linux SPECS]$

any ideea of what am i missing here ?
thx!



hi,

It's a bug in NetworkManager headers.

Fixed by 
https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=0a3755c1799d3a4dc1875d4c59c7c568a64c8456


best,
Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]