Re:

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 06 Nov 2007 12:46:53 +0100


Mohammad,

Sorry, but I just realize now that we never had the Gcalor code in the VMC (only a README file explaining how to get it). I do not want to copy the GCalor code in the VMC distribution right now. This requires approval from the authors. But I can include your diff file for people who would like to use Gcalor. What do you think?

Rene

Rene Brun wrote:
> Mohammad,
>
> Could you send a new patch in the right order?
>
> Rene
>
> naumov_at_nusun.jinr.ru wrote:
>> Hello Mohammad,
>>
>> thank you for the patch, it works! (it is by the way in reversed order
>> seems done as "diff gcalor_vmc gcalor_orig > diff" - this I write for
>> others just to avoid possible confusion).
>>
>> Thanks again a lot!
>> Dmitry
>>
>>
>>
>>> Hallo Dmitry,
>>>
>>> the gcalor code was written for CERNLIB/Geant3 and not for the
>>> VMC/Geant3,
>>> one has to change some subroutine names to get it running with VMC,
>>> attached to this mail is a diff-file that you can apply (patch -p1
>>> gcalor_unix.F gcalor.diff)
>>> to the original gcalor code. You also have to define a variable G3SYS
>>> pointing to your geant3 source directory.
>>>
>>> regards
>>>
>>> Mohammad
>>>
>>>
>>> -----Original Message-----
>>> From: owner-vmc_at_root.cern.ch on behalf of naumov_at_nusun.jinr.ru
>>> Sent: Tue 11/6/2007 9:54 AM
>>> To: vmc_at_root.cern.ch
>>> Subject: [VMC]
>>>
>>> Dear VMC team,
>>>
>>> I tried to install geant321_vmc.1.8 and it is compiling. However if
>>> I try
>>> to link the library to my own application I have a problem:
>>>
>>> gcalor stuff is missing.
>>>
>>> Then I came back to geant321_vmc.1.8 and found a README_gcalor which
>>> says
>>> that a user should pick up the gcalor package from
>>> http://www.staff.uni-mainz.de/zeitnitz/Gcalor/gcalor.html page, put the
>>> source file into gcalor directory (create the directory I assume),
>>> add the
>>> directory name to the Makefile and recompile. Trying to do this what
>>> I get
>>> is that the now gcalor_unix.F (by the way a user must change
>>> gcalor_unix.f
>>> into gcalor_unix.F to make it compiling) is compiled but the final
>>> library
>>> is NOT:
>>>
>>> Generating /data/cern/geant321_vmc.1.8/lib/tgt_linux/libgeant321.so
>>> gcalor_unix.o: In function `azirn_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:1058: multiple
>>> definition of
>>> `azirn_'
>>> azirn.o:/cern/geant321_vmc.1.8/miguti/azirn.F:21: first defined here
>>> gcalor_unix.o: In function `sflraf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:3174: multiple
>>> definition of
>>> `sflraf_'
>>> sflraf.o:/cern/geant321_vmc.1.8/miguti/sflraf.F:21: first defined here
>>> gcalor_unix.o: In function `randc_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:7861: multiple
>>> definition of
>>> `randc_'
>>> randc.o:/cern/geant321_vmc.1.8/miguti/randc.F:22: first defined here
>>> gcalor_unix.o: In function `exprnf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:1227: multiple
>>> definition of
>>> `exprnf_'
>>> exprnf.o:/cern/geant321_vmc.1.8/miguti/exprnf.F:21: first defined here
>>> gcalor_unix.o: In function `gtiso_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:11467: multiple
>>> definition of
>>> `gtiso_'
>>> gtiso.o:/cern/geant321_vmc.1.8/miguti/gtiso.F:21: first defined here
>>> gcalor_unix.o: In function `sigmor_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12025: multiple
>>> definition of
>>> `sigmor_'
>>> sigmor.o:/cern/geant321_vmc.1.8/miguti/sigmor.F:21: first defined here
>>> gcalor_unix.o: In function `nsigta_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16526: multiple
>>> definition of
>>> `nsigta_'
>>> nsigta.o:/cern/geant321_vmc.1.8/neutron/nsigta.F:21: first defined here
>>> gcalor_unix.o: In function `angcdf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12074: multiple
>>> definition of
>>> `angcdf_'
>>> angcdf.o:/cern/geant321_vmc.1.8/neutron/angcdf.F:21: first defined here
>>> gcalor_unix.o: In function `bankr_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12110: multiple
>>> definition of
>>> `bankr_'
>>> bankr.o:/cern/geant321_vmc.1.8/neutron/bankr.F:21: first defined here
>>> gcalor_unix.o: In function `barier_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12175: multiple
>>> definition of
>>> `barier_'
>>> barier.o:/cern/geant321_vmc.1.8/neutron/barier.F:21: first defined here
>>> gcalor_unix.o: In function `cadig_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12202: multiple
>>> definition of
>>> `cadig_'
>>> cadig.o:/cern/geant321_vmc.1.8/neutron/cadig.F:21: first defined here
>>> gcalor_unix.o: In function `cangle_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12212: multiple
>>> definition of
>>> `cangle_'
>>> cangle.o:/cern/geant321_vmc.1.8/neutron/cangle.F:21: first defined here
>>> gcalor_unix.o: In function `fltrnf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13930: multiple
>>> definition of
>>> `fltrnf_'
>>> fltrnf.o:/cern/geant321_vmc.1.8/neutron/fltrnf.F:22: first defined here
>>> gcalor_unix.o: In function `cevap_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12272: multiple
>>> definition of
>>> `cevap_'
>>> cevap.o:/cern/geant321_vmc.1.8/neutron/cevap.F:21: first defined here
>>> gcalor_unix.o: In function `cevap1_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12319: multiple
>>> definition of
>>> `cevap1_'
>>> cevap1.o:/cern/geant321_vmc.1.8/neutron/cevap1.F:21: first defined here
>>> gcalor_unix.o: In function `chkzeb_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12361: multiple
>>> definition of
>>> `chkzeb_'
>>> chkzeb.o:/cern/geant321_vmc.1.8/neutron/chkzeb.F:21: first defined here
>>> gcalor_unix.o: In function `clear_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12386: multiple
>>> definition of
>>> `clear_'
>>> clear.o:/cern/geant321_vmc.1.8/neutron/clear.F:21: first defined here
>>> gcalor_unix.o: In function `cmlabe_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12397: multiple
>>> definition of
>>> `cmlabe_'
>>> cmlabe.o:/cern/geant321_vmc.1.8/neutron/cmlabe.F:21: first defined here
>>> gcalor_unix.o: In function `stopar_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17571: multiple
>>> definition of
>>> `stopar_'
>>> stopar.o:/cern/geant321_vmc.1.8/neutron/stopar.F:21: first defined here
>>> gcalor_unix.o: In function `cmlabi_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12528: multiple
>>> definition of
>>> `cmlabi_'
>>> cmlabi.o:/cern/geant321_vmc.1.8/neutron/cmlabi.F:21: first defined here
>>> gcalor_unix.o: In function `colisn_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:12674: multiple
>>> definition of
>>> `colisn_'
>>> colisn.o:/cern/geant321_vmc.1.8/neutron/colisn.F:24: first defined here
>>> gcalor_unix.o: In function `gtmed_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14256: multiple
>>> definition of
>>> `gtmed_'
>>> gtmed.o:/cern/geant321_vmc.1.8/neutron/gtmed.F:21: first defined here
>>> gcalor_unix.o: In function `tbsplt_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17616: multiple
>>> definition of
>>> `tbsplt_'
>>> tbsplt.o:/cern/geant321_vmc.1.8/neutron/tbsplt.F:21: first defined here
>>> gcalor_unix.o: In function `thrmsc_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17645: multiple
>>> definition of
>>> `thrmsc_'
>>> thrmsc.o:/cern/geant321_vmc.1.8/neutron/thrmsc.F:21: first defined here
>>> gcalor_unix.o: In function `xsecnu_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18936: multiple
>>> definition of
>>> `xsecnu_'
>>> xsecnu.o:/cern/geant321_vmc.1.8/neutron/xsecnu.F:21: first defined here
>>> gcalor_unix.o: In function `photon_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16650: multiple
>>> definition of
>>> `photon_'
>>> photon.o:/cern/geant321_vmc.1.8/neutron/photon.F:24: first defined here
>>> gcalor_unix.o: In function `secegy_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17086: multiple
>>> definition of
>>> `secegy_'
>>> secegy.o:/cern/geant321_vmc.1.8/neutron/secegy.F:21: first defined here
>>> gcalor_unix.o: In function `getene_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13940: multiple
>>> definition of
>>> `getene_'
>>> getene.o:/cern/geant321_vmc.1.8/neutron/getene.F:21: first defined here
>>> gcalor_unix.o: In function `n2nn3n_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16132: multiple
>>> definition of
>>> `n2nn3n_'
>>> n2nn3n.o:/cern/geant321_vmc.1.8/neutron/n2nn3n.F:21: first defined here
>>> gcalor_unix.o: In function `nn2bod_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16374: multiple
>>> definition of
>>> `nn2bod_'
>>> nn2bod.o:/cern/geant321_vmc.1.8/neutron/nn2bod.F:21: first defined here
>>> gcalor_unix.o: In function `lr2bod_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14553: multiple
>>> definition of
>>> `lr2bod_'
>>> lr2bod.o:/cern/geant321_vmc.1.8/neutron/lr2bod.F:21: first defined here
>>> gcalor_unix.o: In function `getnu_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13965: multiple
>>> definition of
>>> `getnu_'
>>> getnu.o:/cern/geant321_vmc.1.8/neutron/getnu.F:21: first defined here
>>> gcalor_unix.o: In function `labnf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14418: multiple
>>> definition of
>>> `labnf_'
>>> labnf.o:/cern/geant321_vmc.1.8/neutron/labnf.F:21: first defined here
>>> gcalor_unix.o: In function `nghevy_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16277: multiple
>>> definition of
>>> `nghevy_'
>>> nghevy.o:/cern/geant321_vmc.1.8/neutron/nghevy.F:21: first defined here
>>> gcalor_unix.o: In function `twobod_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18030: multiple
>>> definition of
>>> `twobod_'
>>> twobod.o:/cern/geant321_vmc.1.8/neutron/twobod.F:21: first defined here
>>> gcalor_unix.o: In function `grndst_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14064: multiple
>>> definition of
>>> `grndst_'
>>> grndst.o:/cern/geant321_vmc.1.8/neutron/grndst.F:21: first defined here
>>> gcalor_unix.o: In function `trebod_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17862: multiple
>>> definition of
>>> `trebod_'
>>> trebod.o:/cern/geant321_vmc.1.8/neutron/trebod.F:21: first defined here
>>> gcalor_unix.o: In function `cterp_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13853: multiple
>>> definition of
>>> `cterp_'
>>> cterp.o:/cern/geant321_vmc.1.8/neutron/cterp.F:21: first defined here
>>> gcalor_unix.o: In function `evaplr_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13860: multiple
>>> definition of
>>> `evaplr_'
>>> evaplr.o:/cern/geant321_vmc.1.8/neutron/evaplr.F:21: first defined here
>>> gcalor_unix.o: In function `fisrnf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:13909: multiple
>>> definition of
>>> `fisrnf_'
>>> fisrnf.o:/cern/geant321_vmc.1.8/neutron/fisrnf.F:22: first defined here
>>> gcalor_unix.o: In function `getpar_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14014: multiple
>>> definition of
>>> `getpar_'
>>> getpar.o:/cern/geant321_vmc.1.8/neutron/getpar.F:21: first defined here
>>> gcalor_unix.o: In function `interp_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14303: multiple
>>> definition of
>>> `interp_'
>>> interp.o:/cern/geant321_vmc.1.8/neutron/interp.F:21: first defined here
>>> gcalor_unix.o: In function `intsch_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14339: multiple
>>> definition of
>>> `intsch_'
>>> intsch.o:/cern/geant321_vmc.1.8/neutron/intsch.F:21: first defined here
>>> gcalor_unix.o: In function `isotpe_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14353: multiple
>>> definition of
>>> `isotpe_'
>>> isotpe.o:/cern/geant321_vmc.1.8/neutron/isotpe.F:21: first defined here
>>> gcalor_unix.o: In function `lrnorm_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14755: multiple
>>> definition of
>>> `lrnorm_'
>>> lrnorm.o:/cern/geant321_vmc.1.8/neutron/lrnorm.F:21: first defined here
>>> gcalor_unix.o: In function `matiso_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:14809: multiple
>>> definition of
>>> `matiso_'
>>> matiso.o:/cern/geant321_vmc.1.8/neutron/matiso.F:21: first defined here
>>> gcalor_unix.o: In function `moxsec_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:15745: multiple
>>> definition of
>>> `moxsec_'
>>> moxsec.o:/cern/geant321_vmc.1.8/neutron/moxsec.F:24: first defined here
>>> gcalor_unix.o: In function `xsecn1_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18203: multiple
>>> definition of
>>> `xsecn1_'
>>> xsecn1.o:/cern/geant321_vmc.1.8/neutron/xsecn1.F:21: first defined here
>>> gcalor_unix.o: In function `xsecn2_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18300: multiple
>>> definition of
>>> `xsecn2_'
>>> xsecn2.o:/cern/geant321_vmc.1.8/neutron/xsecn2.F:21: first defined here
>>> gcalor_unix.o: In function `xsecn3_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18643: multiple
>>> definition of
>>> `xsecn3_'
>>> xsecn3.o:/cern/geant321_vmc.1.8/neutron/xsecn3.F:21: first defined here
>>> gcalor_unix.o: In function `xsecn5_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18845: multiple
>>> definition of
>>> `xsecn5_'
>>> xsecn5.o:/cern/geant321_vmc.1.8/neutron/xsecn5.F:21: first defined here
>>> gcalor_unix.o: In function `partxs_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:16548: multiple
>>> definition of
>>> `partxs_'
>>> partxs.o:/cern/geant321_vmc.1.8/neutron/partxs.F:21: first defined here
>>> gcalor_unix.o: In function `rnmaxf_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17063: multiple
>>> definition of
>>> `rnmaxf_'
>>> rnmaxf.o:/cern/geant321_vmc.1.8/neutron/rnmaxf.F:22: first defined here
>>> gcalor_unix.o: In function `seclf1_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17287: multiple
>>> definition of
>>> `seclf1_'
>>> seclf1.o:/cern/geant321_vmc.1.8/neutron/seclf1.F:21: first defined here
>>> gcalor_unix.o: In function `seclf5_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17395: multiple
>>> definition of
>>> `seclf5_'
>>> seclf5.o:/cern/geant321_vmc.1.8/neutron/seclf5.F:21: first defined here
>>> gcalor_unix.o: In function `seclf7_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17469: multiple
>>> definition of
>>> `seclf7_'
>>> seclf7.o:/cern/geant321_vmc.1.8/neutron/seclf7.F:21: first defined here
>>> gcalor_unix.o: In function `seclf9_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17522: multiple
>>> definition of
>>> `seclf9_'
>>> seclf9.o:/cern/geant321_vmc.1.8/neutron/seclf9.F:21: first defined here
>>> gcalor_unix.o: In function `secl11_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17216: multiple
>>> definition of
>>> `secl11_'
>>> secl11.o:/cern/geant321_vmc.1.8/neutron/secl11.F:21: first defined here
>>> gcalor_unix.o: In function `thrsel_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:17736: multiple
>>> definition of
>>> `thrsel_'
>>> thrsel.o:/cern/geant321_vmc.1.8/neutron/thrsel.F:21: first defined here
>>> gcalor_unix.o: In function `micset_':
>>> /cern/geant321_vmc.1.8/gcalor/gcalor_unix.F:18959: multiple
>>> definition of
>>> `micset_'
>>> micset.o:/cern/geant321_vmc.1.8/neutron/micset.F:21: first defined here
>>> /usr/bin/ld: Warning: alignment 4 of symbol `micfil_' in
>>> gcalor_unix.o is
>>> smaller than 16 in gmicap.o
>>> /usr/bin/ld: Warning: size of symbol `micfil_' changed from 4 in
>>> gmicap.o
>>> to 495 in gcalor_unix.o
>>> /usr/bin/ld: Warning: type of symbol `micfil_' changed from 1 to 2 in
>>> gcalor_unix.o
>>> collect2: ld returned 1 exit status
>>> make: *** [/data/cern/geant321_vmc.1.8/lib/tgt_linux/libgeant321.so]
>>> ?????? 1
>>>
>>>
>>>
>>> Obviously this happens because of multiple declaration of the same
>>> routines. What could I do with that?
>>>
>>> Best regards, Dmitry
>>>
>>>
>>>
>>>
>>>
>>
>>
>
Received on Tue Nov 06 2007 - 12:46:45 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 06 2007 - 17:25:01 CET