Queue Log dump directally into mysql db

Hi all,

i want to dump queue log directally dump into mysql table for asterisk-… As i have patched for asterisk-1.4.21 but still it is not working. Error are listed below
asterisk.o astmm.o astobj2.o audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.o tdd.o term.o threadstorage.o translate.o udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a -> asterisk

logger.o: In function `write_mysql_logger’:

logger.c:(.text+0x29d): undefined reference to `mysql_real_query’

logger.c:(.text+0x2b1): undefined reference to `mysql_error’

logger.o: In function `init_mysql_logger’:

logger.c:(.text+0x1cd2): undefined reference to `mysql_real_connect’

collect2: ld returned 1 exit status

make[1]: *** [asterisk] Error 1

make[1]: Leaving directory `/usr/src/Asterisk-’

i also included the correct path in logger.c but unable to resolve errors, is anybody here can help me out… do write in simple step by step thanks


Jehanzaib younis