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

Could not read symbols File in wrong format

Brian_A_
Novice
1,672 Views
I am compiling on openSuse Linux, using IFC Composer X
the .so file is provided to me from a licensing software company. I am integrating it into my code.
Do I need a library file to get the symbols?
ifort -O2 -auto -ansi_alias- -pad_source -traceback -fltconsistency -fpconstant relap/relap5.o \\
relap/relapo.a scdap/scdapo.a \\
matpro/matproo.a scdap/scdapo.a envrl/envrlo.a \\
lib/libFileMgmt.so -o bin\\relap5.x
ipo: warning #11010: file format not recognized for lib/libFileMgmt.so
lib/libFileMgmt.so: could not read symbols: File in wrong format
make[1]: [relap5o.x] Error 1 (ignored)
make[1]: Leaving directory `/home/brian.allison/iss_relap/RELAP5Mod35/rs35da.aprl2012'
0 Kudos
5 Replies
Brian_A_
Novice
1,672 Views
I was told that I need to dynamicly link the .so file. How do I do that?
0 Kudos
mecej4
Honored Contributor III
1,672 Views
I don't think that there is anything wrong in the way you are trying to link the shared object. However, there are indications that the third party shared object may target a different OS. Run the ldd and file commands on the shared library and post the output here, please.

$ ldd <path to libFileMgmt.so>

$ file <path to libFileMgmt.so>

It would be helpful to have, in addition, the outputs of

$ uname -a

$ ifort -V

0 Kudos
Brian_A_
Novice
1,672 Views
Oh never mind I figured it out. I was compiling in 64bit mode and using a 32bit file.
0 Kudos
Brian_A_
Novice
1,672 Views
The people at Nalperion that provided the .so file are telling me that I need to Dynamiclly load the .so file and then call the functions. The .so file is in C and they are telling me that I need to use dlopen, dlsym, and dlcose. Where can I find documentation on that?
0 Kudos
Steven_L_Intel1
Employee
1,672 Views
Those are Linux C library routines. Try "man 3 dlopen".
0 Kudos
Reply