Undefined symbol: fetch_odbc_obj

I get the message: undefined symbol: fetch_odbc_obj when using asterisk realtime hrough ODBC.

Asterisk version : 1.2.1
Mysql version : 5.0.18

any help would be appreciated