[asterisk-dev] problems during compling

Jim Capp jcapp at anteil.com
Fri Jan 18 08:39:35 CST 2008


It looks like you are trying to compile asterisk statically.  The 
compiler cannot find the res_odbc module.  Try compiling asterisk 
dynamically or add res_odbc to your list of compiler objects.


Theo Belder wrote:
> 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.o 
> ast_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
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list