[ghemical-devel] ghemical 2.12 on opensuse 11.0

Daniel Leidert daniel.leidert.spam at gmx.net
Wed Jul 30 11:23:00 EDT 2008


Am Dienstag, den 29.07.2008, 12:31 +0200 schrieb Jean Bréfort:
> Le mardi 29 juillet 2008 à 09:50 +0300, Tommi Hassinen a écrit :
> > /usr/lib/libglut.so -lf2c
> > /usr/lib/gcc/i586-suse-linux/4.3/../../../libf2c.so: undefined reference to `MAIN__'
> > 
> > 
> > Ooops!! Sorry, it seems that you must have -lg2c instead of -lf2c ; so you have to link with libg2c and not with libf2c.
> > 
> 
> Hmm, I thought I fixed that some times ago. The issue is that libg2c is
> deprecated AFAIK (removed from gcc >= 4.0.0), and so we must use libf2c.

AFAIK there is just one function call to libg2c/f2c [1], which is in:

.libs/fdate.o: In function `fdate_':
/usr/local/src/Packages/mopac7/mopac7-1.13/fortran/fdate.c:27: undefined
reference to `s_copy'
collect2: ld returned 1 exit status

[1] http://www.bioinformatics.org/pipermail/ghemical-devel/2008-February/000718.html

If we/you could replace s_copy() there, libg2c/f2c would become
obsolete. No other functions are used and in Debian we already compiled
the whole toolchain without libg2c/f2c except for mopac7 (IIRC I sent
you all of the patches - if not, please tell me).

Regards, Daniel




More information about the ghemical-devel mailing list