Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
Nemus
Posts: 9
Joined: 2011/03/21 18:26:09
Contact:

Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by Nemus » 2011/03/21 18:29:54

I keep receiving this linking error any ideas is it looking for a 32 library that's in a different place?

this is for the odbc driver

any help would be extremely useful thank yoU!!!

[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
[LD] ../res/res_adsi.o abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a ../cdr/modules.link -> asterisk
/usr/bin/ld: Dwarf Error: Abbrev offset (4352) greater than or equal to .debug_abbrev size (1124).
../cdr/cdr_adaptive_odbc.eo: In function `generic_prepare':
cdr_adaptive_odbc.c:(.text+0x15d): undefined reference to `SQLAllocHandle'
cdr_adaptive_odbc.c:(.text+0x178): undefined reference to `SQLPrepare'
cdr_adaptive_odbc.c:(.text+0x246): undefined reference to `SQLGetDiagField'
cdr_adaptive_odbc.c:(.text+0x298): undefined reference to `SQLGetDiagRec'
cdr_adaptive_odbc.c:(.text+0x30a): undefined reference to `SQLGetDiagRec'
cdr_adaptive_odbc.c:(.text+0x383): undefined reference to `SQLFreeHandle'
../cdr/cdr_adaptive_odbc.eo: In function `load_config':
cdr_adaptive_odbc.c:(.text+0x58c): undefined reference to `_ast_odbc_request_obj'
cdr_adaptive_odbc.c:(.text+0x6a8): undefined reference to `SQLAllocHandle'
cdr_adaptive_odbc.c:(.text+0x6e3): undefined reference to `ast_odbc_release_obj'
cdr_adaptive_odbc.c:(.text+0x758): undefined reference to `SQLColumns'
cdr_adaptive_odbc.c:(.text+0x797): undefined reference to `ast_odbc_release_obj'
cdr_adaptive_odbc.c:(.text+0xa58): undefined reference to `SQLFetch'
cdr_adaptive_odbc.c:(.text+0xa99): undefined reference to `SQLGetData'
cdr_adaptive_odbc.c:(.text+0xc8c): undefined reference to `SQLGetData'
cdr_adaptive_odbc.c:(.text+0xcad): undefined reference to `SQLGetData'
cdr_adaptive_odbc.c:(.text+0xcce): undefined reference to `SQLGetData'
cdr_adaptive_odbc.c:(.text+0xcef): undefined reference to `SQLGetData'
../cdr/cdr_adaptive_odbc.eo:cdr_adaptive_odbc.c:(.text+0xd10): more undefined references to `SQLGetData' follow
../cdr/cdr_adaptive_odbc.eo: In function `load_config':
cdr_adaptive_odbc.c:(.text+0x108b): undefined reference to `SQLFreeHandle'
cdr_adaptive_odbc.c:(.text+0x1097): undefined reference to `ast_odbc_release_obj'
cdr_adaptive_odbc.c:(.text+0x11fb): undefined reference to `ast_odbc_release_obj'
../cdr/cdr_adaptive_odbc.eo: In function `odbc_log':
cdr_adaptive_odbc.c:(.text+0x14d2): undefined reference to `_ast_odbc_request_obj'
cdr_adaptive_odbc.c:(.text+0x1838): undefined reference to `ast_odbc_prepare_and_execute'
cdr_adaptive_odbc.c:(.text+0x184c): undefined reference to `SQLRowCount'
cdr_adaptive_odbc.c:(.text+0x1859): undefined reference to `SQLFreeHandle'
cdr_adaptive_odbc.c:(.text+0x1870): undefined reference to `ast_odbc_release_obj'
cdr_adaptive_odbc.c:(.text+0x1c82): undefined reference to `ast_odbc_backslash_is_escape'
/usr/bin/ld: Dwarf Error: Abbrev offset (4452) greater than or equal to .debug_abbrev size (906).
../cdr/cdr_odbc.eo: In function `odbc_log':
cdr_odbc.c:(.text+0x843): undefined reference to `_ast_odbc_request_obj'
cdr_odbc.c:(.text+0x85f): undefined reference to `ast_odbc_direct_execute'
cdr_odbc.c:(.text+0x87c): undefined reference to `SQLRowCount'
cdr_odbc.c:(.text+0x889): undefined reference to `SQLFreeHandle'
cdr_odbc.c:(.text+0x89b): undefined reference to `ast_odbc_release_obj'
../cdr/cdr_odbc.eo: In function `execute_cb':
cdr_odbc.c:(.text+0xa0d): undefined reference to `SQLAllocHandle'
cdr_odbc.c:(.text+0xa5e): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0xaa7): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0xaf3): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0xb3f): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0xb8b): undefined reference to `SQLBindParameter'
../cdr/cdr_odbc.eo:cdr_odbc.c:(.text+0xbd7): more undefined references to `SQLBindParameter' follow
../cdr/cdr_odbc.eo: In function `execute_cb':
cdr_odbc.c:(.text+0xec9): undefined reference to `SQLExecDirect'
cdr_odbc.c:(.text+0xf40): undefined reference to `SQLFreeHandle'
cdr_odbc.c:(.text+0xf99): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0x100b): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0x1054): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0x10df): undefined reference to `SQLBindParameter'
cdr_odbc.c:(.text+0x112b): undefined reference to `SQLBindParameter'
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 c

Post by pschaff » 2011/03/21 19:25:17

Welcome to the CentOS fora. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users.

Let's back up a step here. Why are you attempting a [url=http://wiki.centos.org/PackageManagement/SourceInstalls]source install[/url] when there are CentOS packages from both known [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url] and directly from [url=http://packages.asterisk.org/centos/5/current/i386/RPMS/]Asterisk[/url]?

Nemus
Posts: 9
Joined: 2011/03/21 18:26:09
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by Nemus » 2011/03/21 19:48:36

I like source installs :)

I don't know really just the way I have always done it.

Does the yum version have all the drivers and everything from the menu select and the extra sounds so for and so on?

Nemus
Posts: 9
Joined: 2011/03/21 18:26:09
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by Nemus » 2011/03/21 20:00:20

yum search asterisk
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.spro.net
* base: mirror.stanford.edu
* extras: centos.mirror.facebook.net
* updates: mirror.chpc.utah.edu
============================================================================================= Matched: asterisk =============================================================================================
asterisk.x86_64 : The Open Source Linux PBX
asterisk-addons.x86_64 : Additional addons for Asterisk: the Open Source Linux PBX
asterisk-addons12.x86_64 : Additional addons for Asterisk: the Open Source Linux PBX
asterisk-addons14.x86_64 : Additional addons for Asterisk: the Open Source Linux PBX
asterisk-devel.x86_64 : Development package for asterisk
asterisk-fax.x86_64 : fax application for asterisk
asterisk-misdn.x86_64 : mISDN channel driver for asterisk
asterisk12.x86_64 : The Open Source Linux PBX
asterisk12-devel.x86_64 : Development package for asterisk12
asterisk14.x86_64 : The Open Source Linux PBX
asterisk14-devel.x86_64 : Development package for asterisk14
asterisk14-misdn.x86_64 : mISDN channel driver for asterisk
asterisk160.x86_64 : The Open Source Linux PBX
asterisk160-devel.x86_64 : Development package for asterisk160
asterisk160-fax.x86_64 : fax application for asterisk
asterisk160-misdn.x86_64 : mISDN channel driver for asterisk
asterisk161.x86_64 : The Open Source Linux PBX
asterisk161-devel.x86_64 : Development package for asterisk161
asterisk161-fax.x86_64 : fax application for asterisk
asterisk161-misdn.x86_64 : mISDN channel driver for asterisk
dahdi-tools.x86_64 : Digium FXS/FXO drivers tools
dahdi-tools-devel.x86_64 : Development files for building against the dahdi-tools package
libpri.x86_64 : A C implementation of the Primary Rate ISDN specification
libpri-devel.x86_64 : Development files for building against the libpri package
libpri1.x86_64 : Shared libraries for package libpri12
libpri12.x86_64 : A C implementation of the Primary Rate ISDN specification
libpri12-devel.x86_64 : Development files for building against the libpri12 package
libtonezone1.x86_64 : Shared libraries for package zaptel12
libtonezone2.x86_64 : Shared libraries for package dahdi-tools
zaptel12.x86_64 : Digium FXS/FXO drivers
zaptel12-devel.x86_64 : Development files for building against the zaptel12 package
zaptel12-kmdl-2.6.18-194.32.1.el5.x86_64 : Digium kernel drivers
zaptel12-kmdl-2.6.18-194.32.1.el5.centos.plus.x86_64 : Digium kernel drivers
zaptel12-kmdl-2.6.18-194.32.1.el5.centos.plusxen.x86_64 : Digium kernel drivers
zaptel12-kmdl-2.6.18-194.32.1.el5xen.x86_64 : Digium kernel drivers
zaptel12-kmdl-2.6.18-238.5.1.el5.x86_64 : Digium kernel drivers
zaptel12-kmdl-2.6.18-238.5.1.el5xen.x86_64 : Digium kernel drivers
agx-ast-addons.x86_64 : AGX's Asterisk Extra AddOns
asterisk-core-sounds.noarch : Asterisk Core Sounds
asterisk-core-sounds-en.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-alaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-g722.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-g729.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-gsm.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-siren14.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-siren7.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-sln16.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-ulaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-en-wav.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-alaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-g722.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-g729.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-gsm.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-siren14.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-siren7.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-sln16.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-ulaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-es-wav.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-alaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-g722.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-g729.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-gsm.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-siren14.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-siren7.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-sln16.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-ulaw.noarch : Sounds for The Open Source Linux PBX
asterisk-core-sounds-fr-wav.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds.noarch : Asterisk Extra Sounds
asterisk-extra-sounds-en.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-alaw.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-g722.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-g729.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-gsm.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-siren14.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-siren7.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-sln16.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-ulaw.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-en-wav.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-alaw.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-g722.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-g729.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-gsm.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-siren14.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-siren7.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-sln16.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-ulaw.noarch : Sounds for The Open Source Linux PBX
asterisk-extra-sounds-fr-wav.noarch : Sounds for The Open Source Linux PBX
asterisk-moh-opsound.noarch : Asterisk Music on Hold
asterisk-moh-opsound-alaw.noarch : Asterisk Music on Hold
asterisk-moh-opsound-g722.noarch : Asterisk Music on Hold
asterisk-moh-opsound-g729.noarch : Asterisk Music on Hold
asterisk-moh-opsound-gsm.noarch : Asterisk Music on Hold
asterisk-moh-opsound-siren14.noarch : Asterisk Music on Hold
asterisk-moh-opsound-siren7.noarch : Asterisk Music on Hold
asterisk-moh-opsound-sln16.noarch : Asterisk Music on Hold
asterisk-moh-opsound-ulaw.noarch : Asterisk Music on Hold
asterisk-moh-opsound-wav.noarch : Asterisk Music on Hold
asterisk-sounds12.noarch : Additional sounds for Asterisk: the Open Source Linux PBX.
asterisk14-app_ldap.x86_64 : LDAPget application module for the Asterisk PBX
bristuff.x86_64 : Asterisk drivers for BRI
libss7.x86_64 : SS7 protocol services to applications
libss7-devel.x86_64 : Development files for libss7

I want to use asterisk 1.8 if I could I am not seeing it here in the repo I am fairly new to CentOS coming from a ubuntu background

also here is my getinfo don't know if this helps.

http://pastebin.com/H5R03CG6

okay so I found this
http://www.asterisk.org/downloads/yum

which shows how to get the 1.8 asterisk makes sense

I would still like to compile asterisk if I could but that will work as a good alternative.

asterisk18.x86_64 : Asterisk, The Open Source PBX
asterisk18-addons.x86_64 : Asterisk-addons package.
asterisk18-addons-bluetooth.x86_64 : bluetooth modules for Asterisk
asterisk18-addons-core.x86_64 : Asterisk-addons core package.
asterisk18-addons-mysql.x86_64 : mysql modules for Asterisk
asterisk18-addons-ooh323.x86_64 : chan_ooh323 module for Asterisk
asterisk18-alsa.x86_64 : Alsa channel driver for Asterisk
asterisk18-codec_siren14.x86_64 : codec_siren14 module for Asterisk
asterisk18-codec_siren7.x86_64 : codec_siren7 module for Asterisk
asterisk18-configs.x86_64 : Basic configuration files for Asterisk
asterisk18-core.x86_64 : Asterisk core package without any "extras".
asterisk18-curl.x86_64 : cURL application module for Asterisk
asterisk18-dahdi.x86_64 : DAHDI channel driver for Asterisk
asterisk18-devel.x86_64 : Static libraries and header files for Asterisk development
asterisk18-doc.x86_64 : Documentation files for Asterisk
asterisk18-misdn.x86_64 : mISDN channel driver for Asterisk
asterisk18-odbc.x86_64 : Open Database Connectivity (ODBC) drivers for Asterisk
asterisk18-ogg.x86_64 : Ogg-Vorbis codec module for Asterisk
asterisk18-pgsql.x86_64 : Postgresql modules for Asterisk
asterisk18-resample.x86_64 : resampling codec module for Asterisk
asterisk18-skypeforasterisk.x86_64 : SkypeForAsterisk module for Asterisk
asterisk18-snmp.x86_64 : snmp resource module for Asterisk
asterisk18-sqlite3.x86_64 : sqlite3 drivers for Asterisk
asterisk18-tds.x86_64 : tds modules for Asterisk
asterisk18-voicemail.x86_64 : Voicemail with file storage module for Asterisk
asterisk18-voicemail-imapstorage.x86_64 : Voicemail with IMAP storage module for Asterisk
asterisk18-voicemail-odbcstorage.x86_64 : Voicemail with ODBC storage module for Asterisk

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by pschaff » 2011/03/21 20:21:26

Please update the thread after you give it a try via yum - a much better approach than building from a tarball anyway, IMHO.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by pschaff » 2011/03/21 20:30:48

[quote]
Nemus wrote:
I like source installs :)
[/quote]
On a package-based system the package manager knows nothing about source installs. The source-built packages may overwrite system files from packages and break things that depend on them. Subsequent updates via the packaging system my clobber components of the source software. All around a much more brittle and unreliable system than installing from packages. If one must have later versions than are out there in packages, then [url=http://wiki.centos.org/HowTos/RebuildSRPM]a rebuild from a Source RPM[/url], if necessary using an older one as a template and dropping in new tarballs, is the next best thing. The "traditional" configure, make, make install should be the last resort.

My $0.02, but not solely my own opinion. See
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]

Nemus
Posts: 9
Joined: 2011/03/21 18:26:09
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by Nemus » 2011/03/21 21:02:13

so I installed from the repos and the asterisk18 did come with the the modules I needed but is missing console module which I like to use for debuging asterisk system.

I don't know if there is a package for the console module but all in all the packaged version seams to do what I need it to do.

Phil thank you for your help.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Cannot Compile ODBC with Asterisk 1.8 on centos 5.5 x86_64 cdr_adaptive_odbc.c Dwarf Error

Post by pschaff » 2011/03/21 21:53:48

You are welcome, and thanks for reporting back. Can we mark this thread [SOLVED]?

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”