If mtrace isn't compiled correctly, there is a possibility
that your perl version doesn't match the book. I had a
similar trouble.
In my case, the book (ver 5.1.1) assumed perl 5.8.4, but
freshmeat -- following the link from the package page of
the book -- was giving out 5.8.5, hence the error.
If that's the case, one option is to get an older version
of perl tarball from perl website (
www.perl.org).
Hope this helps.