<div dir="ltr">Jeff,<div><br></div><div>Unfortunately, even with the &quot;--enable-debug=yes&quot;, &quot;make install&quot; does not include the debugging symbols for neither libraries (xlators) nor binaries. I realized that the problem is with the &quot;install&quot; command that strips both binaries and libraries even when the flag &quot;-s&quot; is not set. At least this is the behavior in my Arch Linux setting.</div>
<div><br></div><div>I found a solution which is to define my own PKGBUILD file (to build arch linux installation packages), with &quot;options=(debug !stripe)&quot;. Somehow the &quot;!stripe&quot; must be setting some environment variable to force the &quot;install&quot; command to not stripe things. After installing the generated package with &quot;pacman -U&quot; I have binaries and libraries with their own debugging symbols ;). In your case you might be able to do the same with the rpmbuild [1].</div>
<div><br></div><div>[1] <a href="https://groups.google.com/forum/#!topic/linux.redhat.rpm/TKz6JZHK0ck">https://groups.google.com/forum/#!topic/linux.redhat.rpm/TKz6JZHK0ck</a><br></div><div><br></div><div>Thank you,</div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 2:44 PM, Jeff Darcy <span dir="ltr">&lt;<a href="mailto:jdarcy@redhat.com" target="_blank">jdarcy@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div class="im"><div><br></div><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid #1010ff">
<div dir="ltr"><div><div>I also tried with &quot;ex<span style="white-space:pre-wrap">port enable_debug=yes&quot; as suggested in [1] without success.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div>
<span style="white-space:pre-wrap">At the end of ./configure it indeed says &quot;</span><span color="#000000" style><span style="white-space:pre-wrap">Enable Debug: yes&quot;, and when doing &quot;make -n&quot; I can see that the correct flags &quot;-g -O0&quot; are passed to gcc. My guess is that at some point of &quot;make install&quot; the debug symbols are striped, but I don&#39;t see where.</span></span></div>
</div><div><span color="#000000" style><span style="white-space:pre-wrap"><br></span></span></div><div><span color="#000000" style><span style="white-space:pre-wrap">Can anyone guide me on how to embed the debug symbols in the gluster daemon?</span></span></div>
<div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">[1] </span><span color="#000000" style><span style="white-space:pre-wrap"><a href="http://www.gluster.org/pipermail/gluster-users/2013-December/038390.html" target="_blank">http://www.gluster.org/pipermail/gluster-users/2013-December/038390.html</a></span></span></div>
<div><br></div></div></div></blockquote><div><br></div></div><div><p>As the cited email mentions, executables seem to get stripped even with<br>enable_debug set, but libraries (including translators) should be fine. I&#39;ve<br>
been building that way (using rpmbuild) and successfully debugging translators<br>all day today. On the very rare occasions that I want to debug the<br>gluster{d,fs,fsd,shd} executable itself, I grab the unstripped version from<br>
here:</p><p>/rpmbuild/BUILD/glusterfs-3git/glusterfsd/src/.libs/glusterfsd</p><p>In the past I&#39;ve used some other tricks to disable the stripping phase of<br>rpmbuild, but it seems like those wouldn&#39;t apply if you&#39;re just doing &quot;make<br>
install&quot; instead. In fact, I&#39;m not even sure why things would get stripped<br>that way, but our build process is so screwy I only look at it when something<br>breaks.</p></div></div></div></blockquote></div><br><br clear="all">
<div><br></div>-- <br>Lluís Pàmies i Juárez<br><a href="http://lluis.pamies.cat" target="_blank">http://lluis.pamies.cat</a>
</div>