Hi Doug,

I was running preproc-sess in the newly released freesurfer-5.2.0. The command I used was:

preproc-sess -sf sessid -df sessdir -fsd bold -surface fsaverage lhr -mni305 -fwhm 6 -per-run

The program failed with the following errors:

3dvolreg.afni -verbose -dfile 004/fmcpr.mcdat -1Dmatrix_save 004/fmcpr.mat -base 004/tmp.mc-afni2.29239/tempvol.nii.gz -prefix 004/tmp.mc-afni2.29239/outvol.nii.gz 004/tmp.mc-afni2.29239/invol.nii.gz
3dvolreg.afni: symbol lookup error: 3dvolreg.afni: undefined symbol: afni_ncerr
ERROR: 3dvolreg.afni
Invalid null command.

I have the file 3dvolreg.afni in $FREESURFER_HOME/bin. There is another file of the same name under afni/bin. Preproc-sess is relying on the version in $FREESURFER_HOME/bin.

Do you know what the problem is? Should I replace freesurfer's copy of 3dvolreg.afni with AFNI's copy of 3dvolreg.afni?

Thanks.

-Yuhong