On Sat, Apr 23, 2011 at 5:57 AM, Filip Sneppe <filip.sneppe@xxxxxxxxx> wrote: > Hi, > > (I am not subscribed to this list, nor am I a Unix developer). > > I wanted to give fio a try on my OS X 10.5.8 machine, but > this is the error I received when compiling: > > CC helpers.o > CC engines/posixaio.o > DEP depend > CC fio > Undefined symbols: > "_posix_memalign", referenced from: > _thread_main in fio.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make: *** [fio] Error 1 > > After some googling, I learned that OS X doesn't > provide _posix_memalign, and that apparently it's not > needed on this platform. I "fixed" my compile problem with the > attached patch. You may find it useful to write a better fix for this. > For completeness I should say that this patch was wrong (you can see I'm not a developer). The function required: *ptr = malloc(align * size); for my workaround to work. Best regards, Filip -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html