I’ve got such errors
on Dahdi-linux
make all
echo "You do not appear to have the sources for the 2.6.18-92.el5 kernel installed."
You do not appear to have the sources for the 2.6.18-92.el5 kernel installed.
exit 1
make: *** [modules] Error 1
and on linux compilation after I did make
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2
what the problem can somebody help me?
And What to do. how make it to work.
What about that
[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] abstract_jb.o acl.o adsistub.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o 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 event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o hashtab.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 poll.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.o tcptls.o tdd.o term.o threadstorage.o translate.o udptl.o ulaw.o utils.o version.o editline/libedit.a db1-ast/libdb1.a …/cdr/modules.link …/channels/modules.link …/codecs/modules.link …/pbx/modules.link -> asterisk
/usr/bin/ld: Dwarf Error: Abbrev offset (3752) greater than or equal to .debug_abbrev size (1093).
…/cdr/cdr_adaptive_odbc.eo: In function load_config': cdr_adaptive_odbc.c:(.text+0x5e7): undefined reference to
ast_odbc_request_obj’
cdr_adaptive_odbc.c:(.text+0x748): undefined reference to ast_odbc_release_obj' cdr_adaptive_odbc.c:(.text+0x826): undefined reference to
ast_odbc_release_obj’
cdr_adaptive_odbc.c:(.text+0x1004): undefined reference to ast_odbc_release_obj' cdr_adaptive_odbc.c:(.text+0x121d): undefined reference to
ast_odbc_release_obj’
…/cdr/cdr_adaptive_odbc.eo: In function odbc_log': cdr_adaptive_odbc.c:(.text+0x144f): undefined reference to
ast_odbc_request_obj’
cdr_adaptive_odbc.c:(.text+0x15e2): undefined reference to ast_odbc_prepare_and_execute' cdr_adaptive_odbc.c:(.text+0x1620): undefined reference to
ast_odbc_release_obj’
cdr_adaptive_odbc.c:(.text+0x1aa1): undefined reference to ast_odbc_backslash_is_escape' /usr/bin/ld: Dwarf Error: Abbrev offset (9408) greater than or equal to .debug_abbrev size (1144). ../channels/chan_agent.eo: In function
__agent_start_monitoring’:
chan_agent.c:(.text+0x557): undefined reference to ast_monitor_start' chan_agent.c:(.text+0x567): undefined reference to
ast_monitor_setjoinfiles’
/usr/bin/ld: Dwarf Error: Abbrev offset (2068) greater than or equal to .debug_abbrev size (714).
…/pbx/pbx_ael.eo: In function pbx_load_module': pbx_ael.c:(.text+0x471): undefined reference to
ael2_parse’
pbx_ael.c:(.text+0x4c4): undefined reference to ael2_semantic_check' pbx_ael.c:(.text+0x514): undefined reference to
destroy_pval’
pbx_ael.c:(.text+0x59d): undefined reference to ast_compile_ael2' pbx_ael.c:(.text+0x67d): undefined reference to
destroy_pval’
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2
nobody knows what this Error mean and How to solve it?
For the first one, you install the sources, or at least the subset included in the kernel development RPM.
The second one looks like a toolchain bug, corrupted files, hardware problems, or, just possibly, mis-matched versions.
However, the first hit on Google suggest the Dwarf Error is a secondary error http://gcc.gnu.org/ml/gcc/2002-11/msg00756.html. The other linking errors suggest you are missing a library, or have the wrong version.