As a fast fix, I've replaced xdr_getpos/xdr_setpos with ftello/fseeko in some of the mcfio files and set the type of the position variables to off_t.
Now I can generate a 5GB STDHEP file and it does not get corrupted.
Here is a list of modified files in pythia-pgs/libraries/PGS4/src/stdhep-dir/mcfio/src:
mcfio_Block.c mcfio_Direct.c mcfio_Util1.c mcf_NTuIOFiles.c mcf_xdr.h
You can install the modified files with the following commands:
cd pythia-pgs/libraries/PGS4/src/stdhep-dir/mcfio/src wget http://cp3.irmp.ucl.ac.be/downloads/pythia-pgs-mcfio-files.tgz tar -vzxf pythia-pgs-mcfio-files.tgz
Could you, please commit these modifications to the pythia-pgs repository?
As a fast fix, I've replaced xdr_getpos/ xdr_setpos with ftello/fseeko in some of the mcfio files and set the type of the position variables to off_t.
Now I can generate a 5GB STDHEP file and it does not get corrupted.
Here is a list of modified files in pythia- pgs/libraries/ PGS4/src/ stdhep- dir/mcfio/ src:
mcfio_Block.c
mcfio_Direct.c
mcfio_Util1.c
mcf_NTuIOFiles.c
mcf_xdr.h
You can install the modified files with the following commands:
cd pythia- pgs/libraries/ PGS4/src/ stdhep- dir/mcfio/ src cp3.irmp. ucl.ac. be/downloads/ pythia- pgs-mcfio- files.tgz pgs-mcfio- files.tgz
wget http://
tar -vzxf pythia-
Could you, please commit these modifications to the pythia-pgs repository?