I just installed g77 on 10.2 and there seems to be a problem with an expected dummy main() function when running configure (see output below).
checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking how to get verbose linking output from g77... -v checking for Fortran 77 libraries... -lcrt1.o -lcrtbegin.o -L/sw/lib/gcc-lib/powerpc-apple-darwin6.0/3.1 -L/sw/lib/gcc-lib/powerpc-apple-darwin6.0/3.1/../../.. -lm -lfrtbegin -lg2c -lSystem checking for dummy main to link with Fortran 77 libraries... unknown configure: error: Linking to Fortran libraries from C fails. Now, since main_ () seems to be defined in -lfrtbegin perhaps this is just some wierd bug in the the way configure works... I don't have a very good understanding of these matters. BTW, program in question is octave. /Per The actual tests performed are here (simplified): #define __NO_MATH_INLINES 1 #ifdef __cplusplus #include <stdlib.h> #endif #define F77_DUMMY_MAIN main_ /* NB. Performed with MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main */ #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { ; return 0; } ------------ Per Persson Blekinge Institute of Technology Dept. of Signal Processing and Telecommunications www: http://timebandit.dyndns.org/~per e-mail: [EMAIL PROTECTED] ------------------------------------------------------- In remembrance www.osdn.com/911/ _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users