I install gcc-3.1 and the corresponding g77 (everything goes in
/usr/local). I also have the fink g77, which installs in /usr/bin.
Now there are problems, for instance in compiling algae. The
configure script tries to compile a little test program, just

       program conftest
       end

and then the algae configure says

checking whether the Fortran 77 compiler (g77  -L/sw/lib 
-L/usr/local/lib) works... no
configure: error: installation or configuration problem: Fortran 77 
compiler cannot create executables.
### ./configure failed, exit code 1
Failed: compiling algae-3.5.1-2 failed

If I make a conftest.f in my home directory and say

g77 -o conftest -L/sw/lib -L/usr/local/lib conftest.f -lm

it says the same thing as the config.log

/usr/bin/ld: Undefined symbols:
_main

If I say

/usr/local/bin/g77 -o conftest -L/sw/lib -L/usr/local/lib conftest.f -lm

which means that 3.1 works fine. And finally, if I say,

/usr/bin/g77 -o conftest -L/sw/lib conftest.f -lm

(i.e. I do not include -L/usr/local/lib) then I am fine too with the
g77 from fink.

If the g77 from fink would not use -L/usr/local/lib, which is not needed
when one stays within fink anyway, then things would be OK. I can also
swap /usr/bin and /usr/local/bin in my path, or rename /usr/local to
/usr/unlocal. Neither very elegant.

The gcc-3.1 problem with fink reported earlier on this list comes
about because fink packages do not all set -no-cpp-precomp, and
if that flag is not set the precompiler fails and the config script says
that the compiler cannot create executables.
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: [EMAIL PROTECTED]
homepage: http://www.stat.ucla.edu/~deleeuw
========================================================
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://www.stat.ucla.edu/~deleeuw/sounds/nomatter.au
========================================================


_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to