template.c is not up to date with tpxio.c
In the latest CVS version (as of April 28, 2008) the file /share/template/template.c has a illegal call to the function read_tps_conf with 7 arguments instead of 8 on row 103.
The missing argument is the fourth and should be an int pointer according to tpxio.h:
bool read_tps_conf(char *infile,char *title,t_topology *top,int *ePBC,
rvec **x,rvec **v,matrix box,bool bMass)