Cannot find -lgssapi_krb5 compiling asterisk

Hi all,

I’m installing asterisk on a test server with CentOS 5.2 X86_64, and still getting the following error:

usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status make[1]: ** [] Erro 1 make: ** [funcs] Erro 2

I using the folowing kernel:

[root@pbxserver asterisk]# uname -a Linux pbxserver 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:45:47 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

Above is the complete output from the make…

[root@pbxserver asterisk]# make make[1]: Entrando no diretório `/usr/src/asterisk/menuselect' make[2]: Entrando no diretório `/usr/src/asterisk/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -c -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[3]: Entrando no diretório `/usr/src/asterisk/menuselect/mxml' if test -f config.status; then \ ./config.status --recheck; \ ./config.status; \ else \ ./configure; \ fi checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for ar... /usr/bin/ar checking for cp... /bin/cp checking for ln... /bin/ln checking for mkdir... /bin/mkdir checking for nroff... /usr/bin/nroff checking for rm... /bin/rm checking for strdup... yes checking for vsnprintf... yes configure: creating ./config.status config.status: creating Makefile config.status: creating mxml.list config.status: creating mxml.pc config.status: creating config.h touch config.h gcc -O -Wall -O -Wall -O -Wall -c mxml-attr.c gcc -O -Wall -O -Wall -O -Wall -c mxml-entity.c gcc -O -Wall -O -Wall -O -Wall -c mxml-file.c gcc -O -Wall -O -Wall -O -Wall -c mxml-index.c gcc -O -Wall -O -Wall -O -Wall -c mxml-node.c gcc -O -Wall -O -Wall -O -Wall -c mxml-search.c gcc -O -Wall -O -Wall -O -Wall -c mxml-set.c gcc -O -Wall -O -Wall -O -Wall -c mxml-private.c gcc -O -Wall -O -Wall -O -Wall -c mxml-string.c /bin/rm -f libmxml.a /usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o a - mxml-attr.o a - mxml-entity.o a - mxml-file.o a - mxml-index.o a - mxml-node.o a - mxml-search.o a - mxml-set.o a - mxml-private.o a - mxml-string.o ranlib libmxml.a make[3]: Saindo do diretório `/usr/src/asterisk/menuselect/mxml' gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses make[2]: Saindo do diretório `/usr/src/asterisk/menuselect' make[1]: Saindo do diretório `/usr/src/asterisk/menuselect' menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] astman.c -> astman.o [CC] md5.c -> md5.o [LD] astman.o md5.o -> astman [CC] smsq.c -> smsq.o [CC] strcompat.c -> strcompat.o [LD] smsq.o strcompat.o -> smsq [CC] stereorize.c -> stereorize.o [CC] frame.c -> frame.o [LD] stereorize.o frame.o -> stereorize [CC] streamplayer.c -> streamplayer.o [LD] streamplayer.o -> streamplayer [CC] aelparse.c -> aelparse.o [CC] aelbison.c -> aelbison.o [CC] pbx_ael.c -> pbx_ael.o [CC] ael_main.c -> ael_main.o [CC] ast_expr2f.c -> ast_expr2f.o [CC] ast_expr2.c -> ast_expr2.o [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse [CC] muted.c -> muted.o [LD] muted.o -> muted [CC] eagi-test.c -> eagi-test.o [CC] strcompat.c -> strcompat.o [LD] eagi-test.o strcompat.o -> eagi-test [CC] eagi-sphinx-test.c -> eagi-sphinx-test.o [LD] eagi-sphinx-test.o -> eagi-sphinx-test [CC] res_adsi.c -> res_adsi.o [LD] res_adsi.o -> [CC] res_agi.c -> res_agi.o [LD] res_agi.o -> [CC] res_clioriginate.c -> res_clioriginate.o [LD] res_clioriginate.o -> [CC] res_config_odbc.c -> res_config_odbc.o [LD] res_config_odbc.o -> [CC] res_convert.c -> res_convert.o [LD] res_convert.o -> [CC] res_crypto.c -> res_crypto.o [LD] res_crypto.o -> [CC] res_features.c -> res_features.o [LD] res_features.o -> [CC] res_indications.c -> res_indications.o [LD] res_indications.o -> [CC] res_monitor.c -> res_monitor.o [LD] res_monitor.o -> [CC] res_musiconhold.c -> res_musiconhold.o [LD] res_musiconhold.o -> [CC] res_odbc.c -> res_odbc.o [LD] res_odbc.o -> [CC] res_smdi.c -> res_smdi.o [LD] res_smdi.o -> [CC] res_speech.c -> res_speech.o [LD] res_speech.o -> [CC] chan_agent.c -> chan_agent.o [LD] chan_agent.o -> [CC] chan_features.c -> chan_features.o [LD] chan_features.o -> [CC] chan_iax2.c -> chan_iax2.o [CC] iax2-parser.c -> iax2-parser.o [CC] iax2-provision.c -> iax2-provision.o [LD] chan_iax2.o iax2-parser.o iax2-provision.o -> [CC] chan_local.c -> chan_local.o [LD] chan_local.o -> [CC] chan_mgcp.c -> chan_mgcp.o [LD] chan_mgcp.o -> [LD] gentone.c -> gentone ./gentone busy 480 620 Wavelength 1 (in samples): 16.66667 Minimum samples (1): 50 (3.000000.3 wavelengths) Wavelength 1 (in samples): 12.90323 Minimum samples (1): 400 (31.000000.3 wavelengths) Need 400 samples Wrote busy.h ./gentone ringtone 440 480 Wavelength 1 (in samples): 18.18182 Minimum samples (1): 200 (11.000000.3 wavelengths) Wavelength 1 (in samples): 16.66667 Minimum samples (1): 50 (3.000000.3 wavelengths) Need 200 samples Wrote ringtone.h [CC] chan_oss.c -> chan_oss.o [LD] chan_oss.o -> [CC] chan_phone.c -> chan_phone.o [LD] chan_phone.o -> [CC] chan_sip.c -> chan_sip.o [LD] chan_sip.o -> [CC] chan_skinny.c -> chan_skinny.o [LD] chan_skinny.o -> [CC] chan_zap.c -> chan_zap.o [LD] chan_zap.o -> [CC] pbx_ael.c -> pbx_ael.o [CC] ael/ -> ael/ [CC] ael/ael_lex.c -> ael/ael_lex.o [LD] pbx_ael.o ael/ ael/ael_lex.o -> [CC] pbx_config.c -> pbx_config.o [LD] pbx_config.o -> [CC] pbx_dundi.c -> pbx_dundi.o [CC] dundi-parser.c -> dundi-parser.o [LD] pbx_dundi.o dundi-parser.o -> [CC] pbx_loopback.c -> pbx_loopback.o [LD] pbx_loopback.o -> [CC] pbx_realtime.c -> pbx_realtime.o [LD] pbx_realtime.o -> [CC] pbx_spool.c -> pbx_spool.o [LD] pbx_spool.o -> [CC] app_adsiprog.c -> app_adsiprog.o [LD] app_adsiprog.o -> [CC] app_alarmreceiver.c -> app_alarmreceiver.o [LD] app_alarmreceiver.o -> [CC] app_amd.c -> app_amd.o [LD] app_amd.o -> [CC] app_authenticate.c -> app_authenticate.o [LD] app_authenticate.o -> [CC] app_cdr.c -> app_cdr.o [LD] app_cdr.o -> [CC] app_chanisavail.c -> app_chanisavail.o [LD] app_chanisavail.o -> [CC] app_channelredirect.c -> app_channelredirect.o [LD] app_channelredirect.o -> [CC] app_chanspy.c -> app_chanspy.o [LD] app_chanspy.o -> [CC] app_controlplayback.c -> app_controlplayback.o [LD] app_controlplayback.o -> [CC] app_db.c -> app_db.o [LD] app_db.o -> [CC] app_dial.c -> app_dial.o [LD] app_dial.o -> [CC] app_dictate.c -> app_dictate.o [LD] app_dictate.o -> [CC] app_directed_pickup.c -> app_directed_pickup.o [LD] app_directed_pickup.o -> [CC] app_directory.c -> app_directory.o [LD] app_directory.o -> [CC] app_disa.c -> app_disa.o [LD] app_disa.o -> [CC] app_dumpchan.c -> app_dumpchan.o [LD] app_dumpchan.o -> [CC] app_echo.c -> app_echo.o [LD] app_echo.o -> [CC] app_exec.c -> app_exec.o [LD] app_exec.o -> [CC] app_externalivr.c -> app_externalivr.o [LD] app_externalivr.o -> [CC] app_festival.c -> app_festival.o [LD] app_festival.o -> [CC] app_flash.c -> app_flash.o [LD] app_flash.o -> [CC] app_followme.c -> app_followme.o [LD] app_followme.o -> [CC] app_forkcdr.c -> app_forkcdr.o [LD] app_forkcdr.o -> [CC] app_getcpeid.c -> app_getcpeid.o [LD] app_getcpeid.o -> [CC] app_hasnewvoicemail.c -> app_hasnewvoicemail.o [LD] app_hasnewvoicemail.o -> [CC] app_ices.c -> app_ices.o [LD] app_ices.o -> [CC] app_image.c -> app_image.o [LD] app_image.o -> [CC] app_ivrdemo.c -> app_ivrdemo.o [LD] app_ivrdemo.o -> [CC] app_lookupblacklist.c -> app_lookupblacklist.o [LD] app_lookupblacklist.o -> [CC] app_lookupcidname.c -> app_lookupcidname.o [LD] app_lookupcidname.o -> [CC] app_macro.c -> app_macro.o [LD] app_macro.o -> [CC] app_meetme.c -> app_meetme.o [LD] app_meetme.o -> [CC] app_milliwatt.c -> app_milliwatt.o [LD] app_milliwatt.o -> [CC] app_mixmonitor.c -> app_mixmonitor.o [LD] app_mixmonitor.o -> [CC] app_morsecode.c -> app_morsecode.o [LD] app_morsecode.o -> [CC] app_mp3.c -> app_mp3.o [LD] app_mp3.o -> [CC] app_nbscat.c -> app_nbscat.o [LD] app_nbscat.o -> [CC] app_page.c -> app_page.o [LD] app_page.o -> [CC] app_parkandannounce.c -> app_parkandannounce.o [LD] app_parkandannounce.o -> [CC] app_playback.c -> app_playback.o [LD] app_playback.o -> [CC] app_privacy.c -> app_privacy.o [LD] app_privacy.o -> [CC] app_queue.c -> app_queue.o [LD] app_queue.o -> [CC] app_random.c -> app_random.o [LD] app_random.o -> [CC] app_read.c -> app_read.o [LD] app_read.o -> [CC] app_readfile.c -> app_readfile.o [LD] app_readfile.o -> [CC] app_realtime.c -> app_realtime.o [LD] app_realtime.o -> [CC] app_record.c -> app_record.o [LD] app_record.o -> [CC] app_rpt.c -> app_rpt.o app_rpt.c: In function ‘rpt_telemetry’: app_rpt.c:4147: warning: cast from pointer to integer of different size app_rpt.c: In function ‘function_remote’: app_rpt.c:8091: warning: cast to pointer from integer of different size app_rpt.c:8096: warning: cast to pointer from integer of different size app_rpt.c:8101: warning: cast to pointer from integer of different size app_rpt.c:8106: warning: cast to pointer from integer of different size app_rpt.c:8113: warning: cast to pointer from integer of different size app_rpt.c:8120: warning: cast to pointer from integer of different size app_rpt.c:8127: warning: cast to pointer from integer of different size app_rpt.c:8150: warning: cast to pointer from integer of different size app_rpt.c:8155: warning: cast to pointer from integer of different size app_rpt.c:8160: warning: cast to pointer from integer of different size app_rpt.c:8165: warning: cast to pointer from integer of different size app_rpt.c:8170: warning: cast to pointer from integer of different size app_rpt.c:8175: warning: cast to pointer from integer of different size [LD] app_rpt.o -> [CC] app_sayunixtime.c -> app_sayunixtime.o [LD] app_sayunixtime.o -> [CC] app_senddtmf.c -> app_senddtmf.o [LD] app_senddtmf.o -> [CC] app_sendtext.c -> app_sendtext.o [LD] app_sendtext.o -> [CC] app_setcallerid.c -> app_setcallerid.o [LD] app_setcallerid.o -> [CC] app_setcdruserfield.c -> app_setcdruserfield.o [LD] app_setcdruserfield.o -> [CC] app_settransfercapability.c -> app_settransfercapability.o [LD] app_settransfercapability.o -> [CC] app_sms.c -> app_sms.o [LD] app_sms.o -> [CC] app_softhangup.c -> app_softhangup.o [LD] app_softhangup.o -> [CC] app_speech_utils.c -> app_speech_utils.o [LD] app_speech_utils.o -> [CC] app_stack.c -> app_stack.o [LD] app_stack.o -> [CC] app_system.c -> app_system.o [LD] app_system.o -> [CC] app_talkdetect.c -> app_talkdetect.o [LD] app_talkdetect.o -> [CC] app_test.c -> app_test.o [LD] app_test.o -> [CC] app_transfer.c -> app_transfer.o [LD] app_transfer.o -> [CC] app_url.c -> app_url.o [LD] app_url.o -> [CC] app_userevent.c -> app_userevent.o [LD] app_userevent.o -> [CC] app_verbose.c -> app_verbose.o [LD] app_verbose.o -> [CC] app_voicemail.c -> app_voicemail.o app_voicemail.c: In function ‘store_file’: app_voicemail.c:1411: warning: ‘ast_odbc_smart_execute’ is deprecated (declared at /usr/src/asterisk/include/asterisk/res_odbc.h:64) [LD] app_voicemail.o -> [CC] app_waitforring.c -> app_waitforring.o [LD] app_waitforring.o -> [CC] app_waitforsilence.c -> app_waitforsilence.o [LD] app_waitforsilence.o -> [CC] app_while.c -> app_while.o [LD] app_while.o -> [CC] app_zapateller.c -> app_zapateller.o [LD] app_zapateller.o -> [CC] app_zapbarge.c -> app_zapbarge.o [LD] app_zapbarge.o -> [CC] app_zapras.c -> app_zapras.o [LD] app_zapras.o -> [CC] app_zapscan.c -> app_zapscan.o [LD] app_zapscan.o -> [CC] codec_adpcm.c -> codec_adpcm.o [LD] codec_adpcm.o -> [CC] codec_alaw.c -> codec_alaw.o [LD] codec_alaw.o -> [CC] codec_a_mu.c -> codec_a_mu.o [LD] codec_a_mu.o -> [CC] codec_g726.c -> codec_g726.o [LD] codec_g726.o -> [CC] codec_gsm.c -> codec_gsm.o [CC] src/add.c -> src/add.o [CC] src/code.c -> src/code.o [CC] src/debug.c -> src/debug.o [CC] src/decode.c -> src/decode.o [CC] src/long_term.c -> src/long_term.o [CC] src/lpc.c -> src/lpc.o [CC] src/preprocess.c -> src/preprocess.o [CC] src/rpe.c -> src/rpe.o [CC] src/gsm_destroy.c -> src/gsm_destroy.o [CC] src/gsm_decode.c -> src/gsm_decode.o [CC] src/gsm_encode.c -> src/gsm_encode.o [CC] src/gsm_explode.c -> src/gsm_explode.o [CC] src/gsm_implode.c -> src/gsm_implode.o [CC] src/gsm_create.c -> src/gsm_create.o [CC] src/gsm_print.c -> src/gsm_print.o [CC] src/gsm_option.c -> src/gsm_option.o [CC] src/short_term.c -> src/short_term.o [CC] src/table.c -> src/table.o [AR] src/add.o src/code.o src/debug.o src/decode.o src/long_term.o src/lpc.o src/preprocess.o src/rpe.o src/gsm_destroy.o src/gsm_decode.o src/gsm_encode.o src/gsm_explode.o src/gsm_implode.o src/gsm_create.o src/gsm_print.o src/gsm_option.o src/short_term.o src/table.o -> lib/libgsm.a [LD] codec_gsm.o gsm/lib/libgsm.a -> [CC] codec_lpc10.c -> codec_lpc10.o [CC] f2clib.c -> f2clib.o [CC] analys.c -> analys.o [CC] bsynz.c -> bsynz.o [CC] chanwr.c -> chanwr.o [CC] dcbias.c -> dcbias.o [CC] decode.c -> decode.o [CC] deemp.c -> deemp.o [CC] difmag.c -> difmag.o [CC] dyptrk.c -> dyptrk.o [CC] encode.c -> encode.o [CC] energy.c -> energy.o [CC] ham84.c -> ham84.o [CC] hp100.c -> hp100.o [CC] invert.c -> invert.o [CC] irc2pc.c -> irc2pc.o [CC] ivfilt.c -> ivfilt.o [CC] lpcdec.c -> lpcdec.o [CC] lpcenc.c -> lpcenc.o [CC] lpcini.c -> lpcini.o [CC] lpfilt.c -> lpfilt.o [CC] median.c -> median.o [CC] mload.c -> mload.o [CC] onset.c -> onset.o [CC] pitsyn.c -> pitsyn.o [CC] placea.c -> placea.o [CC] placev.c -> placev.o [CC] preemp.c -> preemp.o [CC] prepro.c -> prepro.o [CC] random.c -> random.o [CC] rcchk.c -> rcchk.o [CC] synths.c -> synths.o [CC] tbdm.c -> tbdm.o [CC] voicin.c -> voicin.o [CC] vparms.c -> vparms.o [AR] f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o placea.o placev.o preemp.o prepro.o random.o rcchk.o synths.o tbdm.o voicin.o vparms.o -> liblpc10.a [LD] codec_lpc10.o lpc10/liblpc10.a -> [CC] codec_ulaw.c -> codec_ulaw.o [LD] codec_ulaw.o -> [CC] codec_zap.c -> codec_zap.o [LD] codec_zap.o -> [CC] format_g723.c -> format_g723.o [LD] format_g723.o -> [CC] format_g726.c -> format_g726.o [LD] format_g726.o -> [CC] format_g729.c -> format_g729.o [LD] format_g729.o -> [CC] format_gsm.c -> format_gsm.o [LD] format_gsm.o -> [CC] format_h263.c -> format_h263.o [LD] format_h263.o -> [CC] format_h264.c -> format_h264.o [LD] format_h264.o -> [CC] format_ilbc.c -> format_ilbc.o [LD] format_ilbc.o -> [CC] format_jpeg.c -> format_jpeg.o [LD] format_jpeg.o -> [CC] format_pcm.c -> format_pcm.o [LD] format_pcm.o -> [CC] format_sln.c -> format_sln.o [LD] format_sln.o -> [CC] format_vox.c -> format_vox.o [LD] format_vox.o -> [CC] format_wav.c -> format_wav.o [LD] format_wav.o -> [CC] format_wav_gsm.c -> format_wav_gsm.o [LD] format_wav_gsm.o -> [CC] cdr_csv.c -> cdr_csv.o [LD] cdr_csv.o -> [CC] cdr_custom.c -> cdr_custom.o [LD] cdr_custom.o -> [CC] cdr_manager.c -> cdr_manager.o [LD] cdr_manager.o -> [CC] cdr_odbc.c -> cdr_odbc.o [LD] cdr_odbc.o -> [CC] func_base64.c -> func_base64.o [LD] func_base64.o -> [CC] func_callerid.c -> func_callerid.o [LD] func_callerid.o -> [CC] func_cdr.c -> func_cdr.o [LD] func_cdr.o -> [CC] func_channel.c -> func_channel.o [LD] func_channel.o -> [CC] func_curl.c -> func_curl.o [LD] func_curl.o -> /usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status make[1]: ** [] Erro 1 make: ** [funcs] Erro 2

Can anyone help me with this?

I am seeing this exact behavior with Centos 5.2 64 bit and Asterisk Anyone been able to resolve this yet?