undefined reference to `__ctype_b'

Hi every body .
to day i have installed the PGI CDK 5.1.3 on linux AMD64 opteron machine
I would test the mpihello.f program .
I have not modified the source .
when i use the compilation card described in the chapter 2.1
i have the following message :
[batch@csm mpi1]$ pgf77 -o mpihello mpihello.f -lfmpich -lmpich
/usr/pgi/linux86-64/5.1/lib/libmpich.a(p4_procgroup.o)(.text+0x1c9): In function read_procgroup': : undefined reference to __ctype_b’
/usr/pgi/linux86-64/5.1/lib/libmpich.a(p4_procgroup.o)(.text+0x1e6): In function read_procgroup': : undefined reference to __ctype_b’

have you an idea …
th linux OS is RedHat AS 3 64bits
thanks for your help .

Auguste –

CDK 5.1 on Red Hat EL does require a different set of libraries.
First I need to know what you have, and then I’ll be able to make
a recommendation on how to fix your problem.

I’d like you to run the following command:

md5sum /usr/pgi/linux86-64/5.1/lib/libmpich.a

and let me know the result.

John