<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Hi,</div><div><br></div><div>I tried compiling DiskSim on a Ubuntu 64-bit machine with 3.2.0-29-generic kernel. I ran into some problems and fixed them later with the help of some googling and some experimenting. I thought I would send an email collecting the changes I had to do.</div><div><br></div><div># Problem 1: Disksim-4.0 does not compile on 64-bit machine.</div><div><br></div><div>Symptom: An error about "duplicate case"</div><div><br></div><div>Solution: Apply the 64-bit patch found here: <a href="http://code.google.com/p/sst-simulator/downloads/detail?name=disksim_4.0_64bit.patch">http://code.google.com/p/sst-simulator/downloads/detail?name=disksim_4.0_64bit.patch</a></div><div><br></div><div># Problem 2: Problems due to math linking errors</div><div><br></div><div>Symptom: undefined reference to 'log', 'sqrt' and so on.</div><div><br></div><div>Solution: Change the Makefiles so that in LDFLAGS definition, the "-lm" part is at the end of the line.</div><div><br></div><div>For example:  Change LDFLAGS = -L. -lm -ldisksim $(DISKMODEL_LDFLAGS) </div><div>to</div><div>LDFLAGS = -L. -ldisksim $(DISKMODEL_LDFLAGS) -lm</div><div><br></div><div>Hope this helps anyone else running into the same problem.</div><div><br></div><div apple-content-edited="true">Thanks,<br>Vijay<br></div></span>
</div>
<br></body></html>