When running Makefile, I am getting the error shown below:
/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libifport.a(idate.o): In function `date_':
idate.c:(.text+0x1b0): multiple definition of `date_'
Is there a compile option that will fix this? It looks to me that I have a function in local_lib that is the same as one in the compiler lib.
Here is the Makefile I am using:
FC=/opt/intel/bin/ifort SHLIB=/rxe/source/shlib/v21_cp03/v2.1.cp03 OBJS=contempt28_tu.o inp_routines.o ftb_routines.o con_try.o drxe1.o hx1.o spray1.o local_lib.o FFLAGS=-debug -align dcommons -real-size 64 -warn nouncalled -warn nousage all: contempt28_tu.o inp_routines.o ftb_routines.o \ con_try.o drxe1.o hx1.o spray1.o local_lib.o \ ${SHLIB}/hpgl_routines.so contempt28 contempt28: $(OBJS) ${SHLIB}/hpgl_routines.so $(FC) $(FFLAGS) -o contempt28 $(OBJS) ${SHLIB}/hpgl_routines.so contempt28_tu.o : contempt28_tu.f $(FC) $(FFLAGS) -c contempt28_tu.f inp_routines.o : inp_routines.f $(FC) $(FFLAGS) -c inp_routines.f ftb_routines.o : ftb_routines.f $(FC) $(FFLAGS) -c ftb_routines.f con_try.o: con_try.f $(FC) $(FFLAGS) -c con_try.f drxe1.o : drxe1.f $(FC) $(FFLAGS) -c drxe1.f hx1.o : hx1.f $(FC) $(FFLAGS) -c hx1.f spray1.o : spray1.f $(FC) $(FFLAGS) -c spray1.f local_lib.o : local_lib.f $(FC) $(FFLAGS) -c local_lib.f
Warnings/Error:
/opt/intel/bin/ifort -debug -align dcommons -real-size 64 -warn nouncalled -warn nousage -c drxe1.f
/opt/intel/bin/ifort -debug -align dcommons -real-size 64 -warn nouncalled -warn nousage -c hx1.f
/opt/intel/bin/ifort -debug -align dcommons -real-size 64 -warn nouncalled -warn nousage -c spray1.f
/opt/intel/bin/ifort -debug -align dcommons -real-size 64 -warn nouncalled -warn nousage -c local_lib.f
/opt/intel/bin/ifort -debug -align dcommons -real-size 64 -warn nouncalled -warn nousage -o contempt28 contempt28_tu.o inp_routines.o ftb_routines.o con_try.o drxe1.o hx1.o spray1.o local_lib.o /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so
ld: Warning: size of symbol `contrl_' changed from 120 in contempt28_tu.o to 1292 in hx1.o
/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libifport.a(idate.o): In function `date_':
idate.c:(.text+0x1b0): multiple definition of `date_'
local_lib.o:/rxe/source/contempt28/v21_cp03/v2.1.cp03/local_lib.f:38: first defined here
ld: warning: libifport.so.5, needed by /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so, not found (try using -rpath or -rpath-link)
ld: warning: libifcoremt.so.5, needed by /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so, not found (try using -rpath or -rpath-link)
ld: warning: libimf.so, needed by /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so, not found (try using -rpath or -rpath-link)
ld: warning: libsvml.so, needed by /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by /rxe/source/shlib/v21_cp03/v2.1.cp03/hpgl_routines.so, not found (try using -rpath or -rpath-link)
make: *** [contempt28] Error 1