Undefined reference errors

I have two Red Hat Enterpise Linux 6 machines. One is a server, the other a workstation, but I don’t think that makes a different. When trying to compile some code, it compiles fine on one machine, but not on the 2nd. I know I am missing something from the below error message, but I can’t tell what package I need to install on the 2nd machine. Any ideas? Thanks



software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fss_sin' /software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fss_cosh’
/software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fsd_sinh' /software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fsd_mod’
/software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fss_cos' /software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fsd_sin’
/software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fss_log10' /software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fsd_cosh’
/software/depot/pgi/linux86-64/13.4/libso/libpgf90rtl.so: undefined reference to __fsd_exp' /software/depot/pgi/linux86-64/13.4/libso/libpgf90.so: undefined reference to __pgi_aligned_malloc’

Hi,

It appears that you are missing libpgc.so on the second machine.

$ nm libpgc.so | grep fss_sin
000000000003e420 T __fss_sin
000000000004d2e0 T __fss_sin_fma4
00000000000453b0 T __fss_sin_vex
00000000000410c0 T __fss_sincos
000000000004d670 T __fss_sincos_fma4
0000000000045770 T __fss_sincos_vex
000000000003fee0 T __fss_sinh
0000000000051240 T __fss_sinh_fma4
0000000000049560 T __fss_sinh_vex

Be sure that this library is present on the second system, and your code should link.

Best regards,

+chris

I could compile on several system, but not on the one I was having issues with. It turned out it was picking up the wrong library in /usr/lib64. Somehow a PGI library was in /usr/lib64, actually two of them. I removed both an it compiled.