<div dir="ltr">On Thu, Sep 26, 2013 at 6:06 AM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<div class="im"><br>
On Wed, Sep 25, 2013 at 09:31:52AM -0700, Jason Helfman wrote:<br>
> When compiling libvirt-glib with CLANG, I get the following error.<br>
><br>
> 16 warnings generated.<br>
>   CCLD     <a href="http://libvirt-glib-1.0.la" target="_blank">libvirt-glib-1.0.la</a><br>
>   GEN      LibvirtGLib-1.0.gir<br>
> /usr/local/lib/libvirt.so: undefined reference to `__stack_chk_fail_local'<br>
> clang: error: linker command failed with exit code 1 (use -v to see<br>
> invocation)<br>
<br>
</div>make V=1 would show more details about what it's attempting to do.<br>
I tried a compilation with clang-3.3-0.6.rc3.fc19.x86_64 here,<br>
using CC=clang ./autogen.sh --disable-introspection<br>
and hit some issues related to -fxxx -Wxxx flags clang did not like, but<br>
after disabling these (manually for now), compilation worked properly.<br>
I had errors with the .gir generation, hence the --disable-introspection,<br>
but the errors were not related to undefined __stack_chk_fail_local<br>
symbols.<br>
<br>
Can you give more details about your setup? Also, I assume the build tree<br>
was clean (ie there was no stray .o generated with gcc in it?)<br>
<span class=""><font color="#888888"><br>
Christophe<br>
</font></span></blockquote></div><br><a href="http://people.freebsd.org/~jgh/files/libvirt-glib-make.log">http://people.freebsd.org/~jgh/files/libvirt-glib-make.log</a><br><br></div><div class="gmail_extra">It was clean, yes.<br>
<br></div><div class="gmail_extra">-jgh<br clear="all"></div><div class="gmail_extra"><br>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>
</div>
</div></div>