CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Error with posdat.f - undefined symbol: for_open

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2007, 16:02
Default Error with posdat.f - undefined symbol: for_open
  #1
Emmanuel Resch
Guest
 
Posts: n/a
I encounter the following error when executing star. Just when posdat.f is called, the following message appears in the STAR window:

... "undefined symbol: for_open"

I get this error because in my code I'm trying to use inherent Fortran functions, such as OPEN, CLOSE, WRITE. Apparently, some inherent Fortran functions, including i/o functions, require linking additional Intel libraries to the STAR-CD user-supplied dynamic library libstarusr.so. I have found out what these libraries are and where they are located on my system, but I have no idea how to link them to libstarusr.so.

The following webpage describes my problem almost perfectly, but the solution they offer goes right over my head... http://www.adina.com/faq/qg008.shtml

Any help on how to fix libstarusr.so so that I can use these Fortran functions?

Thanks so much.
  Reply With Quote

Old   August 16, 2007, 16:42
Default Re: Error with posdat.f - undefined symbol: for_op
  #2
Richard
Guest
 
Posts: n/a
You could try the -ulib option of star to link in the library manually. The Fortran libraries which star links in by default are under $RUNTIME. It may be that CD-adapco can supply you with more recent $RUNTIME, compatible with your Fortran compiler, which will prevent you having to do anything manually.
  Reply With Quote

Old   August 20, 2007, 16:46
Default Re: Error with posdat.f - undefined symbol: for_op
  #3
Emmanuel Resch
Guest
 
Posts: n/a
Thank you Richard. Your suggestion for using the command: star -ulib worked. what i needed to do was find the intel fortran librairies on my computer that had the symbol "for_open". I did that by pathing to the /opt/intel/fc/"version"/lib directory and searching within the librairies for the symbol: "for_open"

This gave the following:

[user@redhat4 lib]$grep "for_open" *

Binary file libifcore.a matches

Binary file libifcoremt.a matches

Binary file libifcoremt_pic.a matches

Binary file libifcoremt.so.5 matches

Binary file libifcore_pic.a matches

Binary file libifcore.so.5 matches

I then copied "libifcoremt.so.5" and "libifcore.so.5" to the dynamic shared object folder in the star problem directory: .../ufile/linux_2.4-ifc_7.0-glibc_2.2.2-dso

Finally, I ran the following command, (where $LIB=ufile/linux_2.4-ifc_7.0-glibc_2.2.2-dso):

star -ulib="$LIB/libstarusr.so $LIB/libifcoremt.so.5 $LIB/libifcore.so.5"

This fixed the problem. Hope this helps anyone who has been running into this problem of "undefined symbol". It most likely has to do with using a newer version of the Fortran compiler and STAR is using librairies with different names that correspond to Intel FC 7.0...

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
libudf error: undefined symbol: Prashanth FLUENT 6 August 22, 2019 01:24
OpenFOAM 15 libreadlineso5 undefined symbol PC frafridr OpenFOAM Installation 0 February 3, 2009 20:37
Symbol lookup error in 14 that was not present in 13 adona058 OpenFOAM Bugs 1 July 25, 2007 17:04
undefined symbol Dario Nexus FLUENT 0 October 12, 2006 08:54
[OpenFOAM] Paraview symbol lookup error dewald ParaView 3 December 14, 2005 03:36


All times are GMT -4. The time now is 02:34.