<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 03:09 PM, Carns, Philip
H. wrote:<br>
</div>
<blockquote
cite="mid:2dd8a23a15714ebf903e44961fcb4faf@LUCKMAN.anl.gov"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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">
<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>
</blockquote>
<br>
I wasn't able to reproduce the CFLAGS problem, but that may be
something that has changed in trunk (I didn't look back at previous
releases). The --enable-shared option is pretty straightforward,
though, so I went ahead and added that. It will be available in
2.2.9-pre2 and later.<br>
<br>
thanks,<br>
-Phil<br>
<br>
</body>
</html>