Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifort library problem?

bdevaraj
Beginner
1,248 Views
Hi,
I am a new user of Intel FORTRAN compiler v9.1. I am trying to run a FORTRAN program, which runs perfectly on f77 but not on ifort.

Following is the error message I get

/opt/intel_fc_80/lib/libifcoremt.a(tbk_linux.o)(.text+0xf2): In function `tbk_stack_trace':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libdl.a(dlopen.o)(.text+0x22): In function `dlopen':
/usr/src/packages/BUILD/glibc-2.3/dlfcn/dlopen.c:28: undefined reference to `__dlopen'
/usr/lib/libdl.a(dlclose.o)(.text+0x22): In function `dlclose':
/usr/src/packages/BUILD/glibc-2.3/dlfcn/dlclose.c:28: undefined reference to `__dlclose'
/usr/lib/libdl.a(dlsym.o)(.text+0x22): In function `dlsym':
/usr/src/packages/BUILD/glibc-2.3/dlfcn/dlsym.c:30: undefined reference to `__dlsym'
/usr/lib/libdl.a(dlerror.o)(.text+0x12): In function `dlerror':
/usr/src/packages/BUILD/glibc-2.3/dlfcn/dlerror.c:33: undefined reference to `__dlerror'


Looking at the messages I guess it is a library linking problem. I am unable to fix this. Can anybody help me fix this problem?

Warning: I am new user of Linux/Unix.

Cheers,
Bala
0 Kudos
2 Replies
Martyn_C_Intel
Employee
1,248 Views

Hi,

Please try adding -ldl to your command line to ensure that libdl is linked.

You say you are using version 9.1, but the message looks like you are linking to the runtime library from version 8 of the compiler? I believe there was a change in the GNU libraries that made -ldl necessary, and some version 8 Intel compilers do not have this.

If this doesn't help, you may need to submit an issue to Intel Premier Support, giving the full details of your Linux distribution, including kernel and glibc version, and compiler package id (obtained with ifort -V).

0 Kudos
bdevaraj
Beginner
1,248 Views
Hello Mjcorden,
Thank you very much for the reply. Actually, I only had ifort version 8.0, but my tech admin. had informed me that it was the latest version. Sorry about that!
It works perfectly fine now!
Thank you again!
Regards,
Bala
0 Kudos
Reply