<html><body><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 href="http://people.irisa.fr/Matthieu.Dorier">http://people.irisa.fr/Matthieu.Dorier</a></span><span name="x"></span><br></div></div></body></html>