problem linking with gfortran

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

 



Hi,
  I'm not sure where else to go for help.

I compiled and installed gcc-4.0.1 (see below for configuration) on a
Sun V440 running Solaris 10.  Our gcc and g++ compilers have no
problems.  When trying to compile/link fortran code, we get the
following error:

gfortran fortrantest.f90
/opt/courses/gcc-4.0.1/lib/gcc/sparc-sun-solaris2.10/4.0.1/../../../libgfortran.so: undefined reference to `nextafter@xxxxxxxxxxx'
/opt/courses/gcc-4.0.1/lib/gcc/sparc-sun-solaris2.10/4.0.1/../../../libgfortran.so: undefined reference to `frexp@xxxxxxxxxxx'
collect2: ld returned 1 exit status

Here is the content of fortrantest.f90:
write(6,*) "hello"
stop
end

LD_LIBRARY_PATH=/opt/courses/gcc-4.0.1/lib:/opt/courses/lib:/usr/sfw/lib:/usr/lib

I configured gcc-4.0.1 with the following options:
--prefix=/opt/courses/gcc-4.0.1
--program-suffix=4.0.1
--with-local-prefix=/opt/courses/include
--with-gmp=/opt/courses/gmp-4.1.4
--with-mpfr=/opt/courses/mpfr-2.1.1
--enable-languages='c,c++,objc,f95,treelang'
--with-gnu-as
--with-as=/opt/courses/binutilities-2.14/bin/as
--with-gnu-ld
--with-ld=/opt/courses/bin/utilities-2.14/bin/ld
(then used gmake; gmake install)

Thanks.
Barb Hawes
Southwest MN State University


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux