Falha ao compilar o Network Manager 0.9.4

0

Após a atualização para 12.04, eu precisei compilar novamente o Network Manager para a versão 0.9.4.0. No entanto, com a versão 9.4.0 enfrentei o erro durante a compilação com o libdns-manager:

$ make
...
Making all in dns-manager
make[4]: Вхожу у каталог "/home/stasevych/install/network-manager/nm0.9.4.0/network-manager-0.9.4.0/src/dns-manager"
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/logging -I../../libnm-util -I../../libnm-util -I../../src -I../../include -I../../include -I/usr/include/libnl3   -I/usr/include/libnl3   -I/usr/include/libnl3   -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DLOCALSTATEDIR=\"/usr/local/var\"   -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Wundef -Werror -MT libdns_manager_la-nm-dns-manager.lo -MD -MP -MF .deps/libdns_manager_la-nm-dns-manager.Tpo -c -o libdns_manager_la-nm-dns-manager.lo 'test -f 'nm-dns-manager.c' || echo './''nm-dns-manager.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/logging -I../../libnm-util -I../../libnm-util -I../../src -I../../include -I../../include -I/usr/include/libnl3 -I/usr/include/libnl3 -I/usr/include/libnl3 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DLOCALSTATEDIR=\"/usr/local/var\" -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Wundef -Werror -MT libdns_manager_la-nm-dns-manager.lo -MD -MP -MF .deps/libdns_manager_la-nm-dns-manager.Tpo -c nm-dns-manager.c  -fPIC -DPIC -o .libs/libdns_manager_la-nm-dns-manager.o
mv -f .deps/libdns_manager_la-nm-dns-manager.Tpo .deps/libdns_manager_la-nm-dns-manager.Plo
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/logging -I../../libnm-util -I../../libnm-util -I../../src -I../../include -I../../include -I/usr/include/libnl3   -I/usr/include/libnl3   -I/usr/include/libnl3   -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DLOCALSTATEDIR=\"/usr/local/var\"   -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Wundef -Werror -MT libdns_manager_la-nm-dns-dnsmasq.lo -MD -MP -MF .deps/libdns_manager_la-nm-dns-dnsmasq.Tpo -c -o libdns_manager_la-nm-dns-dnsmasq.lo 'test -f 'nm-dns-dnsmasq.c' || echo './''nm-dns-dnsmasq.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/logging -I../../libnm-util -I../../libnm-util -I../../src -I../../include -I../../include -I/usr/include/libnl3 -I/usr/include/libnl3 -I/usr/include/libnl3 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DLOCALSTATEDIR=\"/usr/local/var\" -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Wno-unused-but-set-variable -Wundef -Werror -MT libdns_manager_la-nm-dns-dnsmasq.lo -MD -MP -MF .deps/libdns_manager_la-nm-dns-dnsmasq.Tpo -c nm-dns-dnsmasq.c  -fPIC -DPIC -o .libs/libdns_manager_la-nm-dns-dnsmasq.o
nm-dns-dnsmasq.c: In function 'update':
nm-dns-dnsmasq.c:274:2: error: passing argument 1 of 'g_slist_copy' discards 'const' qualifier from pointer target type [-Werror]
/usr/include/glib-2.0/glib/gslist.h:82:10: note: expected 'struct GSList *' but argument is of type 'const struct GSList *'
cc1: all warnings being treated as errors
make[4]: *** [libdns_manager_la-nm-dns-dnsmasq.lo] Помилка 1
make[4]: Залишаю каталог "/home/stasevych/install/network-manager/nm0.9.4.0/network-manager-0.9.4.0/src/dns-manager"
make[3]: *** [all-recursive] Помилка 1
make[3]: Залишаю каталог "/home/stasevych/install/network-manager/nm0.9.4.0/network-manager-0.9.4.0/src"
make[2]: *** [all] Помилка 2
make[2]: Залишаю каталог "/home/stasevych/install/network-manager/nm0.9.4.0/network-manager-0.9.4.0/src"
make[1]: *** [all-recursive] Помилка 1
make[1]: Залишаю каталог "/home/stasevych/install/network-manager/nm0.9.4.0/network-manager-0.9.4.0"
make: *** [all] Помилка 2

Alguém já enfrentou erros semelhantes? Agradecemos antecipadamente por sua ajuda.

    
por Oleksa 05.04.2012 / 12:45

1 resposta

0

Não sou especialista, mas parece que gslist.h no caminho usr/include/glib-2.0/glib/gslist.h foi alterado.

Espera-se que as alterações da API sejam interrompidas na versão de desenvolvimento. Por que não usar o pacote do Ubuntu? > gestor de rede .

URLdopacote: link

    
por Web-E 05.04.2012 / 13:17