View Full Version : [ubuntu] gfortran missing some libraries in Karmic

January 26th, 2010, 05:18 AM
I've recently upgraded from 8.04 to 9.10 and in the process, I've lost access to gfortran. I'm using the gfortran that came with Karmic, but when I execute the make file I get this:

ld GetNextPerigee.o -o GetNextPerigee
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094
GetNextPerigee.o: In function `MAIN__':
GetNextPerigee.f90:(.text+0x26): undefined reference to `_gfortran_set_options'
GetNextPerigee.f90:(.text+0x2b): undefined reference to `_gfortran_iargc'
GetNextPerigee.f90:(.text+0x60): undefined reference to `_gfortran_getarg_i4'
GetNextPerigee.f90:(.text+0x7c): undefined reference to `_gfortran_stop_string'
GetNextPerigee.f90:(.text+0xa2): undefined reference to `_gfortran_select_string

I seem to be missing some libraries but I'm not sure which ones and where I get them from. Can someone help, please?

January 27th, 2010, 02:58 AM
I've solved the problem.
It wasn't that I was missing libraries at all.
What I needed to do was to re-compile all the .f90 files using the new gfortran.
gfortran was getting screwed up trying to link .o files that had been compiled by the old version.

February 28th, 2012, 05:56 PM
How exactly did you do that, I am kind of new to this stuff.

February 29th, 2012, 03:34 AM
Closed. Please start a new thread for your question.