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



On Fri, Feb 27, 2009 at 3:14 AM, Dan Williams <dcbw redhat com> wrote:
> Odd; what gcc version?

Oops, forgot to mention.
gcc (Gentoo 4.3.3 p1.0, pie-10.1.5) 4.3.3
gcc (GCC) 4.2.4 (Gentoo 4.2.4-r1 p1.1)
Both fail with the same error.


> Does the following patch work better?

No. It gives the same error.

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_rc2/work/NetworkManager-0.7.0.98/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


-- 
Victor Ashirov


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