[asterisk-dev] problems during compling

Theo Belder tbelder at gmail.com
Fri Jan 18 08:06:49 CST 2008


I'm trying to add some code to logger.c which uses functions from
res_odbc.c.
But during compiling i get the following errors:
[CC] logger.c -> logger.o
   [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o
app.oast_expr2.o ast_expr2f.o
asterisk.o astmm.o astobj2.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 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(.text+0x2ba): In function `ast_queue_log':
/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:431: undefined
reference to `ast_odbc_request_obj'
logger.o(.text+0x2d1):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:432:
undefined reference to `ast_odbc_prepare_and_execute'
logger.o(.text+0x2d9):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:433:
undefined reference to `ast_odbc_release_obj'
logger.o(.text+0x2543): In function `odbc_prepare':
/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:377: undefined
reference to `SQLAllocHandle'
logger.o(.text+0x2561):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:383:
undefined reference to `SQLPrepare'
logger.o(.text+0x25e7):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:386:
undefined reference to `SQLCloseCursor'
logger.o(.text+0x25fa):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:387:
undefined reference to `SQLFreeHandle'
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2


What do i wrong. Is it impossible to call 'ast_odbc_request_obj' directly
from logger.c?

Do you have any suggestions?
Theo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20080118/abc046ac/attachment-0001.htm 


More information about the asterisk-dev mailing list