CPL Quality Control - failure in spherp on host aweb16

OS:Linux
OS Version:Scientific Linux release 6.9 (Carbon)
CPU:Intel(R) Xeon(R) E5-2683 v4 @ 2.10GHz
Hardware:x86_64 (x86_64)
C Compiler:gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
CFITSIODIR:/home/llundin/Linux/cfitsio
FFTWDIR:/home/llundin/Linux/fftw
GSLDIR:/home/llundin/Linux/gsl
JAVA_HOME:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el6_9.x86_64
WCSDIR:/home/llundin/Linux/wcs

Failed with exit-value 1

stderr produced by: ./configure --enable-maintainer-mode --prefix=/home/llundin/llundin.1823 CC=/usr/bin/gcc CFLAGS='-O2 -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wnested-externs -Wundef -Wsign-compare -Wmissing-declarations -Wmissing-format-attribute -Wunreachable-code -Wold-style-definition -Wdeclaration-after-statement -Wdisabled-optimization -Wformat-y2k -Winit-self -Wmissing-include-dirs -Wmissing-noreturn -Wredundant-decls -Wvariadic-macros -Wvolatile-register-var -Wparentheses'

Dropped these compiler flags: -fno-common
configure: error: Linking with cfitsio failed! Please check architecture!