NM-0.7.1rc1 fails to build with --as-needed



Hi!
I'm trying to build NM with --as-needed LDFLAG. NM-0.7 compiles and
works fine, NM-0.7.1rc1 fails to compile.

build.log is attached.
make[6]: Entering directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile/tests'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I../../../../libnm-util -I../../../../libnm-glib -I../../../../system-settings/plugins/keyfile/io -pthread -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/glib-2.0 -I/usr/lib64/glib-2.0/include   -DTEST_KEYFILES_DIR=\"/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile/tests/keyfiles\" -DTEST_SCRATCH_DIR=\"/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile/tests/keyfiles\"   -O2 -march=core2 -pipe -MT test_keyfile-test-keyfile.o -MD -MP -MF .deps/test_keyfile-test-keyfile.Tpo -c -o test_keyfile-test-keyfile.o `test -f 'test-keyfile.c' || echo './'`test-keyfile.c
mv -f .deps/test_keyfile-test-keyfile.Tpo .deps/test_keyfile-test-keyfile.Po
/bin/sh ../../../../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=core2 -pipe  -Wl,-O1 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o test-keyfile test_keyfile-test-keyfile.o -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0   ../../../../libnm-glib/libnm_glib.la ../../../../libnm-util/libnm-util.la ../../../../system-settings/plugins/keyfile/io/libkeyfile-io.la 
mkdir .libs
x86_64-pc-linux-gnu-gcc -O2 -march=core2 -pipe -Wl,-O1 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o .libs/test-keyfile test_keyfile-test-keyfile.o  ../../../../libnm-glib/.libs/libnm_glib.so /var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/libnm-util/.libs/libnm-util.so -L/usr/lib64/nss -L/usr/lib64/nspr ../../../../libnm-util/.libs/libnm-util.so /usr/lib64/libdbus-glib-1.so /usr/lib64/libdbus-1.so -luuid -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -ldl ../../../../system-settings/plugins/keyfile/io/.libs/libkeyfile-io.a /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so 
../../../../system-settings/plugins/keyfile/io/.libs/libkeyfile-io.a(libkeyfile_io_la-writer.o): In function `write_connection':
writer.c:(.text+0xc78): undefined reference to `nm_settings_error_quark'
writer.c:(.text+0xcf8): undefined reference to `nm_settings_error_quark'
collect2: ld returned 1 exit status
make[6]: *** [test-keyfile] Error 1
make[6]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile/tests'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile/tests'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins/keyfile'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97/system-settings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/networkmanager-0.7.1_rc1/work/NetworkManager-0.7.0.97'
make: *** [all] Error 2


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