gnuastro-devel
[Top][All Lists]
Advanced

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

[bug #57894] Wrong order of flags when configuring Gnuastro 0.11 for x86


From: Mosè Giordano
Subject: [bug #57894] Wrong order of flags when configuring Gnuastro 0.11 for x86_64-w64-mingw32
Date: Tue, 25 Feb 2020 11:26:23 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

URL:
  <https://savannah.gnu.org/bugs/?57894>

                 Summary: Wrong order of flags when configuring Gnuastro 0.11
for x86_64-w64-mingw32
                 Project: GNU Astronomy Utilities
            Submitted by: giordano
            Submitted on: Tue 25 Feb 2020 05:26:22 PM CET
                Category: Installation
                Severity: 3 - Normal
              Item Group: Configuration file
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When cross-compiling Gnuastro 0.11 for x86_64-w64-mingw32, configure fails to
find CFITSIO for me:


configure:23857: cc -o conftest.exe -Wall -O3  -pthread
-I/workspace/destdir/include  conftest.c -lcurl -lz -lgsl -lgslcblas -lm  
-lcfitsio >&5
/opt/x86_64-w64-mingw32/bin/../x86_64-w64-mingw32/sys-root/usr/local/lib/libcfitsio.a(cfileio.o):
In function `ffihtps':
/workspace/srcdir/cfitsio-3.47/cfileio.c:7771: undefined reference to
`__imp_curl_global_init'
/opt/x86_64-w64-mingw32/bin/../x86_64-w64-mingw32/sys-root/usr/local/lib/libcfitsio.a(cfileio.o):
In function `ffchtps':
/workspace/srcdir/cfitsio-3.47/cfileio.c:7784: undefined reference to
`__imp_curl_global_cleanup'
collect2: error: ld returned 1 exit status
configure:23857: $? = 1


This happens because the order of the flags is wrong: CFITSIO depends on CURL,
so `-lcurl` should follow `-lcfitsio`.  I manually changed line 23838 of
`configure` from


      *" -l"*) LIBS="$LIBS $LIBCFITSIO" ;;


to


      *" -l"*) LIBS="$LIBCFITSIO $LIBS" ;;


but this should probably fixed in one of macros used by `configure.ac`.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57894>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]