Dear all,after discussing the case in above with the system administrator of the IBM AIX cluster, we realised that the xlf compiler is builded on the cluster by default with -qextname. Therefore we got the erro .flush__ istead of the .flush_ and .chdir_ instead of .chdir. The problem can be solved by using the -brename:.flush__,.flush_ -brename:.chdir_,.chdir. But I have at this point a problem. When I add the -brename to the LDFLAGS, the compiler try to compile every model with -brename:.flush__,.flush_ -brename:.chdir_,.chdir. If one of the model does not include the flush or chdir function then the compiling of the model crashes. I was be able to solve the flush problem by changing the code from call flush_() to call flush(). Since the chdir does not include the "_", I can not solve the compiling problem as with the flush problem. But the good thing is that the chdir function is called just during the compiling of the csm_share. If I"d add the -brename:.chdir_,.chdir in the flags just for the compiling of the csm_share, then the problem will be solved since I was be able to compile a simple fortran program which included the calling of the chdir function. I tried to add in Macros file the followinng codes
ifeq ($(MODEL), csm_share) LDFLAGS += -brename:.chdir_,chdirendifthe question is, how can I tell the compiler to use the -brename flags just for the csm_share compiling? Thank you all for your help in advance. Best wishes