the last gcc command:
gcc -o solve-field -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.72"' -DAN_GIT_DATE='"Mon_Jul_10_14:37:28_2017_-0400"' -DAN_GIT_URL='"
https://github.com/dstndstn/astrometry.net"' -I../catalogs -DWCSLIB_EXISTS -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I../util -I. -I/home/sap/Ureka/python/include -I/home/sap/Ureka/python/include/libpng15 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline solve-field.o augment-xylist.o image2xy-files.o libastrometry.a ../catalogs/libcatalogs.a ../util/libanfiles.a ../libkd/libkd.a ../util/libanutils.a ../qfits-an/libqfits.a ../util/libanbase.a ../gsl-an/libgsl-an.a -L/home/sap/Ureka/python/lib -lcfitsio -lwcs -lm -lm -lwcs -lm -lm
../util/libanutils.a(anwcs.o): In function `wcslib_write_to':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:389: undefined reference to `wcshdo'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:391: undefined reference to `wcshdr_errmsg'
../util/libanutils.a(anwcs.o): In function `wcslib_print':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:349: undefined reference to `wcsprt'
../util/libanutils.a(anwcs.o): In function `wcslib_pixelxy2radec':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:245: undefined reference to `wcsp2s'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:254: undefined reference to `wcs_errmsg'
../util/libanutils.a(anwcs.o): In function `anwcs_wcslib_to_string':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:944: undefined reference to `wcshdo'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:946: undefined reference to `wcshdr_errmsg'
../util/libanutils.a(anwcs.o): In function `anwcs_wcslib_from_string':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1003: undefined reference to `wcspih'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1013: undefined reference to `wcssub'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1014: undefined reference to `wcsvfree'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1020: undefined reference to `wcs_errmsg'
../util/libanutils.a(anwcs.o): In function `wcslib_radec2pixelxy':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:273: undefined reference to `wcss2p'
collect2: error: ld returned 1 exit status
Makefile:368: recipe for target 'solve-field' failed
make[1]: *** [solve-field] Error 1
make[1]: Leaving directory '/home/sap/astrometry/astrometry.net-0.72/blind'
Makefile:61: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2