Menu

#2 configure error message on Solaris 2.9

open-wont-fix
configure (5)
5
2014-08-16
2003-11-07
Tom Epperly
No

There is an error message at the end of the configure.

epperly@sundown[~/current/chasm_1.0.1]>./configure
--with-F90-vendor=SUNWspro
--prefix=/usr/casc/babel/apps/sun/chasm_101_SUNWspro
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
Xalan path not set
Using cc as default C compiler.
Using CC as default C++ compiler.
checking for gcc... cc
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... no
checking for cc option to accept ANSI C... none needed
checking target system type... sparc-sun-solaris2.9
checking for f95... f95
checking for Fortran 90 compiler default output... a.out
checking whether the Fortran 90 compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 90
compiler... no
checking if cc linker needs a special library for f95
main... no
checking how to get verbose linking output from f95... -v
checking for Fortran 90 libraries...
-R/opt/SUNWspro/lib -L/opt/SUNWspro/lib
-L/opt/SUNWspro/WS6U2/lib -L/usr/ccs/lib -L/usr/lib
-lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai
-lfmaxlai -lfminvai -lfmaxvai -lfsu -lsunmath -lm
checking for dummy main to link with Fortran 90
libraries... unknown
configure: error: linking to Fortran libraries from C fails
epperly@sundown[~/current/chasm_1.0.1]>

I fixed it by
setenv CC gcc
setenv CXX g++

Discussion

  • Craig E Rasmussen

    • assigned_to: nobody --> rasmussn
     
  • Craig E Rasmussen

    Logged In: YES
    user_id=531842

    This is not really a bug as configure requires a cc compiler. However, a
    default value can probably be chosen for Solaris so that CC and CXX
    don't have to be set with environment variables or with --with-CC=.

     
  • Craig E Rasmussen

    • labels: --> configure
     
  • Craig E Rasmussen

    • status: open --> open-wont-fix
     
  • Craig E Rasmussen

    Logged In: YES
    user_id=531842
    Originator: NO

    It's hard to find a Solaris box to test on so I'm not going to modify the Solaris configure script. So this bug won't get fixed until I come up with a Solaris box.