I'm having the same problem after updating to v1.4.x
Due to Mysql client libraries licensing, the Mysql billing application is no longer an integrated part of the Asterisk standard distribution. It is now located in the asterisk-addons CVS directory.
I have MySQL and the dev package but still having probmems installing the addons so i can fix the CDR.
This is what I found:
http://www.voip-info.org/wiki-Asterisk+cdr+mysql
I tried to fix it and still having problems
If anyone knows a fix let us know.
Thanks,
Jakub