The problem is that f2c wants to link to the MAIN__ function which is the "fortran main". Apparently it is just a dummy function call. And the fix is quite simple:
Add "int MAIN__( ) { return 0; }" somewhere is the sources. Or pass the option -u MAIN__ to the linker. The attached patch correct the problem. -- Henry PrĂȘcheur
diff -ru tochnog-20010124/debian/rules tochnog-20010124.new/debian/rules --- tochnog-20010124/debian/rules 2006-01-15 17:58:11.000000000 +0100 +++ tochnog-20010124.new/debian/rules 2006-01-15 17:51:42.000000000 +0100 @@ -31,7 +31,7 @@ COMPILER_C=$(CC) COMPILER_CPP=$(CXX) \ COMPILER_FLAGS='-c -O2 -g -ansi -Wall -D_REENTRANT $$(PROFILE) $$(ALL_INCLUDE)' \ LINK_FLAGS_BEFORE= \ - LINK_FLAGS_AFTER='$$(PROFILE) $$(ALL_LIB) -lm -lpthread -o tochnog' + LINK_FLAGS_AFTER='$$(PROFILE) $$(ALL_LIB) -u MAIN__ -lm -lpthread -o tochnog' touch build-stamp