CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CD-adapco (
-   -   Compilation (

alessio September 9, 2008 06:20

Dear all,

I am trying to use starcd with user defined subroutines. But we get an error:

PNP: compiling /share/apps/absoft/bin/f90 -w -fPIC -YCOM_NAMES=LCS -YEXT_NAMES=LCS -YEXT_SFX=_ -B19 -cpu:opteron -m64 -c Uposdat.f -o linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: ***ERROR*** Failed to generate user coding dynamic shared object "ufile/linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/". PNP: ==> Please check the dynamic shared object generation error messages.

Do you know where I can find the error messages for the dynamic shared object generation?

Regards Alessio

Philip Jones September 18, 2008 03:32

Re: Compilation
I bet that the problem is in the file being called Uposdat.f and has a subroutine called posdat inside it.

STAR-CD has an archive of dummy routines for user coding, when it compiles it removes the dummys by matching the name, so if you supply posdat.f it removes posdat.o from the archive and then builds using the remainder of the archive and your new object.

If you have subroutine posdat in file Uposdat.f then it will leave posdat.o in the archive and so you now have multiple definitions of posdat and it fails.

On my machine I get this message:

PNP: Building New dynamic shared object "ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/" PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a PNP: ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a(posdat.o): In function `posdat_': PNP: posdat.o(.text+0x0): multiple definition of `posdat_'

All times are GMT -4. The time now is 11:00.