fio Makefile bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
--
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


[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux