Daniel P. Berrange wrote:
On Tue, Aug 07, 2007 at 12:56:39PM +0100, Richard W.M. Jones wrote:Attached is a patch to get libvirt working on Debian/stable again.(1) Add ./configure option --disable-stack-protector. The stack protector feature is still enabled by default, but it causes no end of problems when compiling on Debian systems, apparently because of bugs in their gcc. So Debian users would be well advised to try disabling it if they have problems building.I'm a little puzzled why this change was needed. The configure script takes each compiler flag in turn & attempts to compile a test program. If this test fails it doesn't use the flag for main libvirt build. Any ideas why the configure test succeeeded, but libvirt build didn't ?
I tried two different gcc's from Debian. The errors were: hidden symbol `__stack_chk_fail_local' in [...] is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output and even wierder:/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': multiple definition of `__i686.get_pc_thunk.bx'
Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
Description: S/MIME Cryptographic Signature