I read somewhere tdom.tcl should be copied to modules/tcl
I just removed the tdom.tcl from modules/tcl and OpenACS HEAD started working.