[Asterisk-Users] Problems compiling cdr_odbc.so
Manuel Wenger
manuel.wenger at ticinocom.com
Tue Jun 22 07:22:45 MST 2004
I'm not really being too lucky in the last days. After trying to compile cdr_mysql with no success, I am switching to cdr_odbc. I have installed unixODBC, iODBC and MyODBC correctly, I am even able to make queries with isql. But when trying to "make" in the cdr directory of the latest CVS, that's what I get:
# cd /usr/src/asterisk/cdr
# make
cc -o cdr_odbc.so cdr_odbc.o -lodbc
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
cdr_odbc.o(.text+0x197): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x1ae): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x251): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x268): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x5d9): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x5ed): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x601): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x61b): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x62d): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x647): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x65c): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x670): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x68d): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x6a1): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x6ac): In function `odbc_log':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x6c0): In function `odbc_log':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x735): In function `odbc_unload_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x74f): In function `odbc_unload_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x7be): In function `odbc_unload_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x7d2): In function `odbc_unload_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x812): In function `odbc_unload_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x826): In function `odbc_unload_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x866): In function `odbc_unload_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x87a): In function `odbc_unload_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x8ba): In function `odbc_unload_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x8ce): In function `odbc_unload_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x904): In function `odbc_unload_module':
: undefined reference to `ast_cdr_unregister'
cdr_odbc.o(.text+0x95d): In function `odbc_load_module':
: undefined reference to `ast_load'
cdr_odbc.o(.text+0x993): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0x9ad): In function `odbc_load_module':
: undefined reference to `ast_variable_browse'
cdr_odbc.o(.text+0x9d7): In function `odbc_load_module':
: undefined reference to `ast_variable_retrieve'
cdr_odbc.o(.text+0xa4e): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xa81): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xaa9): In function `odbc_load_module':
: undefined reference to `ast_variable_retrieve'
cdr_odbc.o(.text+0xb20): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xb53): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xb7b): In function `odbc_load_module':
: undefined reference to `ast_variable_retrieve'
cdr_odbc.o(.text+0xbf2): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xc25): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xc4d): In function `odbc_load_module':
: undefined reference to `ast_variable_retrieve'
cdr_odbc.o(.text+0xcc6): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xcef): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xd2c): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xd44): In function `odbc_load_module':
: undefined reference to `ast_destroy'
cdr_odbc.o(.text+0xd4d): In function `odbc_load_module':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0xd67): In function `odbc_load_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xd7f): In function `odbc_load_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xd91): In function `odbc_load_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xdcc): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xde4): In function `odbc_load_module':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xe02): In function `odbc_load_module':
: undefined reference to `ast_cdr_register'
cdr_odbc.o(.text+0xe32): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0xe92): In function `odbc_do_query':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0xea9): In function `odbc_do_query':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xf05): In function `odbc_do_query':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0xf19): In function `odbc_do_query':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xf93): In function `odbc_init':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0xfa7): In function `odbc_init':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0xff0): In function `odbc_init':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x1004): In function `odbc_init':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x1063): In function `odbc_init':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x107a): In function `odbc_init':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x10fc): In function `odbc_init':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x1113): In function `odbc_init':
: undefined reference to `ast_verbose'
cdr_odbc.o(.text+0x116f): In function `odbc_init':
: undefined reference to `option_verbose'
cdr_odbc.o(.text+0x1189): In function `odbc_init':
: undefined reference to `ast_verbose'
collect2: ld returned 1 exit status
make: *** [cdr_odbc.so] Error 1
Anyone?
Thanks
-Manuel
___________________________________________________
Ticinocom SA - Via Stazione 5 - 6600 Muralto
Tel 0844 007070 - Fax 0844 007071
http://www.ticinocom.com
More information about the asterisk-users
mailing list