I am currently evaluating the use of the 7.1-3 release over the 5.2-4 release we currently use for the Linux version of the Fortran 77 compiler. I have encountered a few ‘undefined reference’ errors at link time, most of which I have been able to fix, save for this one:
This is the error:
/opt/pgi-7.1.3/linux86-64/7.1-3/lib/libpghpf_smp.a(init_smp.o): In function __hpf_begpar': /usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/../src-smp/init.c:252: undefined reference to pghpf_0l_’
/usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/…/src-smp/init.c:252: undefined reference to pghpf_0l_' /usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/../src-smp/init.c:252: undefined reference to pghpf_0l_’
/usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/…/src-smp/init.c:252: undefined reference to `pghpf_0l_’
c
This is for a Linux box running CentOS 5. Is this possibly an installation error (I did not perform the installation) or is it a matter of not linking with the proper library?
Our engineer says that pghpf_01 should be defined in the user’s pghpf-compiled objects.
There are a few questions that we need answer:
What are you trying to link? pghpf-compiled objects or pgf77-compiled objects?
What command is being used to perform the link?
TPR status should be listed in a release notes of each release. If you want to know the status of this tpr, you can post it here or email trs@pgroup.com
I can provide more details on the specific commands used for the link stage. However, I’d rather not provide all those specific details here as it is a public forum. Is there an email address I can reach you at?
I’ve been trying to recreate this error but haven’t been able to. The symbol “pghpf_0l” gets add to objects compiled with pghpf. However, it’s only referenced in the HPF initialization routine so it’s unclear where the reference is coming from.
Please run the command 'nm | grep pghpf_0l" on all your objects and libraries where the reference is coming from. Then let me know how this object is compiled.