[ghemical-devel] ghemical 2.12 on opensuse 11.0

Tommi Hassinen Tommi.Hassinen at uku.fi
Thu Jul 31 04:23:34 EDT 2008


From: Daniel Leidert [daniel.leidert.spam at gmx.net]
Sent: Wednesday, July 30, 2008 6:23 PM
To: ghemical-devel at bioinformatics.org
Cc: Tommi Hassinen; Jean Bréfort
Subject: Re: [ghemical-devel] ghemical 2.12 on opensuse 11.0

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


Hello,
this sounds like a good plan. The s_copy implementation is rather small in libf2c and perhaps we can copy it into fortran/s_copy.c ; then all we need is a fortran/f2c.h which contains enough stuff to make everything work. I will try this but it can take a few days...

Regards,
Tommi



More information about the ghemical-devel mailing list