<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><div>I also tried with "ex<span style="color:rgb(0,0,0);white-space:pre-wrap">port enable_debug=yes" as suggested in [1] without success.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">At the end of ./configure it indeed says "</span><span color="#000000" data-mce-style="color: #000000;" style="color: #000000;"><span style="white-space:pre-wrap">Enable Debug: yes", and when doing "make -n" I can see that the correct flags "-g -O0" are passed to gcc. My guess is that at some point of "make install" the debug symbols are striped, but I don't see where.</span></span></div></div><div><span color="#000000" data-mce-style="color: #000000;" style="color: #000000;"><span style="white-space:pre-wrap"><br></span></span></div><div><span color="#000000" data-mce-style="color: #000000;" style="color: #000000;"><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="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">[1] </span><span color="#000000" data-mce-style="color: #000000;" style="color: #000000;"><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><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'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've used some other tricks to disable the stripping phase of<br>rpmbuild, but it seems like those wouldn't apply if you're just doing "make<br>install" instead. In fact, I'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></body></html>