[augeas-devel] ./configure problem
Daniel P. Berrange
berrange at redhat.com
Tue Apr 22 00:06:29 UTC 2008
On Tue, Apr 22, 2008 at 12:03:49AM +0000, David Lutterkort wrote:
>
> On Mon, 2008-04-21 at 23:49 +0100, Daniel P. Berrange wrote:
> > On Mon, Apr 21, 2008 at 10:40:48PM +0000, David Lutterkort wrote:
> > >
> > > Cribbing off a similar problem that libvirt had when people first tried
> > > to build it on Debian[1], can you try building from scratch with
> > >
> > > ./configure CFLAGS="-fno-stack-protector"
> > > make
> > > make check
> > >
> > > and see if that gets you any further ? If it does, I'll need to fix some
> > > of the autoconf macros.
> >
> > The key to fixing this issue for libvirt was that we needed to use
> > AC_TRY_LINK instead of AC_TRY_COMPILE when probing compiler args
> > because -fstack-protector compiler arg had link time implications
>
> I just had a look at the libvirt head to see how it was fixed there - it
> seems that in the meantime any attempt of passing -fstack-protector is
> gone from configure.in and acinclude.m4 (and the generated Makefile's)
>
> Is passing -D_FORTIFY_SOURCE=2 enough to turn that on ?
Yes, this turns stack protector on for you :-)
Dan
--
|: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the augeas-devel
mailing list