On Mon, Dec 5, 2016 at 4:19 PM, Jared L Wallace
<jared-wallace(a)us.ibm.com> wrote:
The configure script errors out when checking:
AC_TRY_LINK([#include <gsl/gsl_complex.h>],
[gsl_complex a; GSL_SET_COMPLEX(&a, 1.0, 1.0);
gsl_complex_logabs(a);],
HAS_GSL_LIB=yes, HAS_GSL_LIB=no)
This works fine on F25.
I checked gsl, and the package not only hasn't changed recently, it hasn't
even been built in rawhide (still f25 version). gcc has also not changed.
The package was building fine Friday, and in fact, still builds successfully
on my rawhide box (and another developers box).
The failing build is here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=16762827
successful f25 build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=16763334
You have to look in config.log to diagnose cases like this. It says:
configure:3132: checking for GNU Scientific Library
configure:3149: gcc -o conftest -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-m64 -mtune=generic -Werror=implicit-function-declaration
-Werror=implicit-int -I/usr/include -Wl,-z,relro
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld conftest.c -lgsl
-lgslcblas -lm >&5
conftest.c: In function 'main':
conftest.c:14:47: error: implicit declaration of function
'gsl_complex_logabs' [-Werror=implicit-function-declaration]
gsl_complex a; GSL_SET_COMPLEX(&a, 1.0, 1.0); gsl_complex_logabs(a);
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
configure:3149: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_CURSES_H 1
| /* end confdefs.h. */
| #include <gsl/gsl_complex.h>
| int
| main ()
| {
| gsl_complex a; GSL_SET_COMPLEX(&a, 1.0, 1.0); gsl_complex_logabs(a);
| ;
| return 0;
| }
configure:3157: error: Cannot find the GNU Scientific Library.
Perhaps you failed to install a libgsl development package?
This means that you've run afoul of
https://fedoraproject.org/wiki/Changes/Fedora26CFlags. I suspect that
a lot of configure scripts are going to break due to that change. To
fix it, patch that configure test to include whichever header file
declares gsl_complex_logabs(). Regards,
--
Jerry James
http://www.jamezone.org/