* fio Makefile bug
@ 2011-02-17 20:16 Mike Miller
2011-02-17 20:28 ` Bruce Cran
0 siblings, 1 reply; 2+ messages in thread
From: Mike Miller @ 2011-02-17 20:16 UTC (permalink / raw)
To: fio
I ran across this when trying to run make on fio v1.50.
spike:/tmp/fio-1.50 # make
Makefile:25: Extraneous text after `else' directive
Makefile:30: Extraneous text after `else' directive
Makefile:30: *** only one `else' per conditional. Stop.
OS info:
spike:/tmp/fio-1.50 # cat /etc/issue
Welcome to SUSE Linux Enterprise Server 10 SP4 RC2 (x86_64) - Kernel \r
(\l).
spike:/tmp/fio-1.50 # uname -a
Linux spike 2.6.16.60-0.81.1-smp #1 SMP Tue Feb 8 06:02:54 UTC 2011 x86_64
x86_64 x86_64 GNU/Linux
The offendinding lines:
else ifeq ($(UNAME), SunOS)
SOURCE += fifo.c lib/strsep.c helpers.c solaris.c engines/posixaio.c \
engines/solarisaio.c
LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket
CPPFLAGS += -D__EXTENSIONS__
else ifeq ($(UNAME), FreeBSD)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -lrt
CFLAGS += -rdynamic
else ifeq ($(UNAME), NetBSD)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -lrt
CFLAGS += -rdynamic
else ifeq ($(UNAME), AIX)
SOURCE += fifo.c helpers.c lib/getopt_long.c engines/posixaio.c
LIBS += -lpthread -ldl -lrt
CFLAGS += -rdynamic
CPPFLAGS += -D_LARGE_FILES -D__ppc__
else ifeq ($(UNAME), Darwin)
SOURCE += helpers.c engines/posixaio.c
LIBS += -lpthread -ldl
else ifneq (,$(findstring CYGWIN,$(UNAME)))
SOURCE += engines/windowsaio.c
LIBS += -lpthread -lrt
To workaround it I simply deleted those lines.
-- mikem
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fio Makefile bug
2011-02-17 20:16 fio Makefile bug Mike Miller
@ 2011-02-17 20:28 ` Bruce Cran
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Cran @ 2011-02-17 20:28 UTC (permalink / raw)
To: Mike Miller; +Cc: fio
On Thu, 17 Feb 2011 14:16:36 -0600
Mike Miller <mike.miller@hp.com> wrote:
> I ran across this when trying to run make on fio v1.50.
>
> spike:/tmp/fio-1.50 # make
> Makefile:25: Extraneous text after `else' directive
> Makefile:30: Extraneous text after `else' directive
> Makefile:30: *** only one `else' per conditional. Stop.
Could you try with 1.50.2 or later please? The Makefile was fixed after
1.50 was released.
--
Bruce Cran
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-17 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 20:16 fio Makefile bug Mike Miller
2011-02-17 20:28 ` Bruce Cran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox