CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problem compiling OpenFOAM on AIX 53 (http://www.cfd-online.com/Forums/openfoam-installation/57607-problem-compiling-openfoam-aix-53-a.html)

haunschmid October 17, 2006 02:35

Hello, I am using AIX-5.3 a
 
Hello,

I am using AIX-5.3 and gcc-4.1.1
Compiling the libraries in the lib subdirectory
does not show any error message.
When compiling executables in the application
subddir I get error messages:

...
+ cd basic
+ ./Allwmake
+ wmake laplacianFoam
make: Nothing to be done for `allFiles'.
make: `Make/Power5Gcc4DPOpt/dependencies' is up to date.
/home/haunschm/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/haunschm/OpenFOAM/OpenFOAM-1.3/applications/bin/Power5Gcc4DPOpt/laplacianF oam
g++ -fpermissive -maix64 -DPower5 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -mcpu=power5+ -DNoRepository -ftemplate-depth-30 -I/home/haunschm/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/haunschm/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -Wl,-brtl Make/Power5Gcc4DPOpt/laplacianFoam.o -L/home/haunschm/OpenFOAM/OpenFOAM-1.3/lib/Power5Gcc4DPOpt \
-lfiniteVolume -lOpenFOAM -liberty -o /home/haunschm/OpenFOAM/OpenFOAM-1.3/applications/bin/Power5Gcc4DPOpt/laplacianF oam
ld: 0711-317 ERROR: Undefined symbol: typeinfo for Foam::regIOobject
ld: 0711-317 ERROR: Undefined symbol: typeinfo for Foam::token::compound
ld: 0711-317 ERROR: Undefined symbol: typeinfo for Foam::lduCoupledInterface
ld: 0711-317 ERROR: Undefined symbol: vtable for Foam::lduCoupledInterface
ld: 0711-317 ERROR: Undefined symbol: vtable for Foam::IOdictionary
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
...

There is a local symbol in libOpenFOAM.so, but no global one:

$ /opt/freeware/bin/nm -C libOpenFOAM.so | grep "typeinfo for Foam::regIOobject"
00000000200ef848 d typeinfo for Foam::regIOobject
00000000200266a0 d typeinfo for Foam::regIOobject
U typeinfo for Foam::regIOobject

Any suggestions ?

Best Regards, Ernst

mattijs October 17, 2006 12:58

Is there a compiler/linker opt
 
Is there a compiler/linker option to export all symbols as default? I remember there being a similar issue under cygwin? There should be more info on this forum.


All times are GMT -4. The time now is 20:32.