CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Undefined symbol after compiling a new library

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Saleh Abuhanieh
  • 1 Post By Saleh Abuhanieh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2022, 09:35
Question Undefined symbol after compiling a new library
  #1
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 35
Rep Power: 3
Mahmoud Abbaszadeh is on a distinguished road
Dear CFD Users,

I am trying to define a new BC for "weirOverFlow" tutorial. I want to set the depth at the outlet. I have taken every step carefully and in the end, I have compiled the "Make" file. After compilation and when I ran the weirOverFlow case with the new BC, I got the following error message:

FOAM Warning :
From void* Foam::dlLibraryTable:penLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libdepthOutletVelocity.so"
/home/ma1c20/OpenFOAM/ma1c20-v2012/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so: undefined symbol: _ZN4Foam9UOPstream11writeQuotedERKSsb

Here is what I have done so far:

1- Copied the libdepthOutletVelocity.so to the $FOAM_LIBBIN, but did not solve the problem

2- Compiled the new library with "wmake libso", which did not work

3- Added the -L$(FOAM_USER_LIBBIN) \ to the "options" file in "Make" directory, it did not work

Does anyone have any idea how to solve this case?
Please note that I am running the case on the Cloud server. When I run the case on my laptop, I do not see the same error.

Thank you in advance for your help.

Best
Mahmoud
Mahmoud Abbaszadeh is offline   Reply With Quote

Old   May 27, 2022, 01:21
Default
  #2
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 81
Rep Power: 6
Saleh Abuhanieh is on a distinguished road
Hi,


Did you compile the new BC on the server too? or you just transferred the compiled library from your laptop?


Regards,
Saleh
Mahmoud Abbaszadeh likes this.
Saleh Abuhanieh is offline   Reply With Quote

Old   May 27, 2022, 02:51
Default
  #3
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 35
Rep Power: 3
Mahmoud Abbaszadeh is on a distinguished road
Quote:
Originally Posted by Saleh Abuhanieh View Post
Hi,


Did you compile the new BC on the server too? or you just transferred the compiled library from your laptop?


Regards,
Saleh
Hi Saleh,

I did compile the new BC on the server too.
Mahmoud Abbaszadeh is offline   Reply With Quote

Old   May 27, 2022, 03:55
Default
  #4
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 81
Rep Power: 6
Saleh Abuhanieh is on a distinguished road
Hi Mahmoud,


I received this error in the past, normally I was missing a library in my option file during the compilation. The code compile but the error appears during run time. But in your case it works on your laptop but not on the server. The problem can be in your OpenFOAM installation at the server. Your error is related to the UOPstream library.


I hope that was useful.


Regards,
Saleh
Mahmoud Abbaszadeh likes this.
Saleh Abuhanieh is offline   Reply With Quote

Old   May 31, 2022, 05:57
Default
  #5
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 35
Rep Power: 3
Mahmoud Abbaszadeh is on a distinguished road
Quote:
Originally Posted by Saleh Abuhanieh View Post
Hi Mahmoud,


I received this error in the past, normally I was missing a library in my option file during the compilation. The code compile but the error appears during run time. But in your case it works on your laptop but not on the server. The problem can be in your OpenFOAM installation at the server. Your error is related to the UOPstream library.


I hope that was useful.


Regards,
Saleh

Thanks Saleh for that. I reinstalled it and now it works.
Mahmoud Abbaszadeh is offline   Reply With Quote

Reply

Tags
library dependencies, openfoam 1806, parallel decomposepar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Caffa 3D code Waliur Rahman Main CFD Forum 0 May 29, 2018 00:53
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 17:05.