Module res_config_mysql.so failed

A have installed asterisk 1.2.7.1 with sample data, then i have installed asterisk addons. When i start asterisk with
asterisk -vvvvgc,
it doesn’t start and write it this error

[res_config_mysql.so]May 2 14:26:28 WARNING[6184]: loader.c:325 __load_resource: /usr/lib/asterisk/modules/res_config_mysql.so: undefined symbol: __builtin_delete
May 2 14:26:28 WARNING[6184]: loader.c:554 load_modules: Loading module res_config_mysql.so failed!

I need this addon for astbill. What can I do?

Debian Sarge 3.1
Mysql 5.0.21

Read the documentation better ?

Esp. the part where it says “you need mysql-dev” package ?

Can you help my please?
I have installed mysql from www.mysql.org
mysql-standard-5.0.21-linux-i686.tar.gz

How can I install the package?
Thank you very much.

i know this is probably resurrecting a dead post, but im having this same problem now, does anyone know how to fix this problem? Where do i find/ install mysql-dev?

If you use Fedora, try using

“yum search mysql-dev”

then

“yum install (the result of the research)”

unfortunately I’m using Ubuntu, and i tried apt-get and came up empty, does anyone know of a repository for it?