From: Bruce Cran <bruce@cran.org.uk>
To: Filip Sneppe <filip.sneppe@gmail.com>
Cc: fio@vger.kernel.org
Subject: Re: [BUG] [PATCH] Undefined symbols: "_posix_memalign" on Mac OS X
Date: Sat, 23 Apr 2011 11:06:36 +0100 [thread overview]
Message-ID: <20110423110636.00004ef3@unknown> (raw)
In-Reply-To: <BANLkTiktKRjW235qUUFAMES88BbQXNc5cw@mail.gmail.com>
On Sat, 23 Apr 2011 05:57:26 +0200
Filip Sneppe <filip.sneppe@gmail.com> wrote:
> (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.
I think Apple have added it in 10.6, but obviously fio needs to run on
older versions too.
--
Bruce Cran
next prev parent reply other threads:[~2011-04-23 10:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-23 3:57 [BUG] [PATCH] Undefined symbols: "_posix_memalign" on Mac OS X Filip Sneppe
2011-04-23 9:42 ` Filip Sneppe
2011-04-23 10:06 ` Bruce Cran [this message]
2011-04-25 11:42 ` Jens Axboe
2011-04-25 18:51 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110423110636.00004ef3@unknown \
--to=bruce@cran.org.uk \
--cc=filip.sneppe@gmail.com \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox