<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 05/05/2014 09:00 AM, Matthieu Dorier
wrote:<br>
</div>
<blockquote
cite="mid:2c33a39f1f084f75a6b7cb41acc05523@LUCKMAN.anl.gov"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div style="font-family: times new roman, new york, times, serif;
font-size: 12pt; color: #000000">
<div>Hi,</div>
<div><br>
</div>
<div>While installing Darshan-Ruby on a new plateforme (Debian
with Linux kernel 3.2.0 amd64 and gcc 4.7), I encountered a
compilation error, basically asking me to recompile Darshan
with -fPIC.
</div>
<div>I tried to use CFLAGS=-fPIC but, I don't know why, it
didn't work. I ended up changing the Makefile.in of Darshan,
line 59 and 60, to the following:</div>
<div>
<p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
</p>
<p style="margin: 0px;" data-mce-style="margin: 0px;">darshan-logutils.o:
darshan-logutils.c<br>
$(CC) $(CFLAGS) -fPIC -c $< -o $@</p>
</div>
<div><br>
</div>
<div>Maybe it could be useful to add the options of compiling
Darshan with or without PIC (with PIC enabled by default), or
even some kind of --enable-shared option to produce a
libdarshan-util.so?</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div><span name="x"></span><span size="2"
data-mce-style="font-size: small;" style="font-size: small;"><span
size="3" data-mce-style="font-size: medium;"
style="font-size: medium;">Matthieu Dorier<br>
</span>PhD student at ENS Rennes<br>
<a moz-do-not-send="true"
href="http://people.irisa.fr/Matthieu.Dorier">http://people.irisa.fr/Matthieu.Dorier</a></span><span
name="x"></span><br>
</div>
</div>
</blockquote>
<br>
Thanks for the bug report Matthieu. Which version of Darshan was
this?<br>
<br>
Is the PIC option required for Darshan-Ruby to use the
libdarshan-util library correctly, or did you need to add it for
libdarshan-util to build cleanly at all on this platform?<br>
<br>
I'll definitely look into this further. At a minimum we should fix
the CFLAGS issue so that you can pass in custom flags.<br>
<br>
thanks,<br>
-Phil<br>
</body>
</html>