PDA

View Full Version : __ctype_b and __ctype_tolower error


achillis
12-16-2003, 07:30 PM
I'm using lahey fortran compiler on redhat 9.0. If I compile my fortran
code by using --staticlink. I got the following error:

$ make flow2
lf95 --staticlink flow2.o -o flow2
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfb6): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfc2): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1036): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1042): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xa1): In function `jwe_icdb':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xaa): In function `jwe_icdb':
: undefined reference to `__ctype_tolower'
make: *** [flow2] Error 1

I have no idea of what's going wrong? Anybody has an idea? I didn't have
this problem on redhat linux 8.0,so I think it's a redhat problem,not lahey
fortran compiler problem.

btw: It compiles fine if I don't use --staticlink. The lahey fortran version is 6.0 express and I've already installed the patch.

Thanks

Ding

tzeis
12-18-2003, 05:57 PM
It sounds like a version problem. When I look at the release notes for v6.0, I see that it only claims support up to Redhat 7.1. It seems like your two choices are to stay with shared libraries, or upgrade to the latest version.

achillis
12-18-2003, 06:56 PM
It is a version problem. More exactlly, it is a libc problem. I have installed lahey fortran 6.0 on rh 8.0. So it should support to at least 8.0,not just 7.1. I hope lahey company can give a new patch for lahey fortran 6.0 users so that we can upgrade to latest linux distribution,otherwise we have to stick to rh 7.x? Redhat 7.x is using gtk1.0 and it won't support many other stuff.

Thanks

Ding

Lahey Support
01-26-2004, 07:06 PM
To be compatible with Redhat 9 you'll need to upgrade to LF95 v6.2.