collect2: ld returned 1 exit status 是什么意思?
刚在移植语音库的时候,想用静态去编译,竟然出现了这么多错误!怎么会出现如题的错误呢collect2: ld returned 1 exit status
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:101: undefined reference to `log'
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:123: undefined reference to `log'
/opt/esrs/lib/libsphinxbase.a(logmath.o): In function `logmath_read':
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:216: undefined reference to `log'
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:217: undefined reference to `log10'
/opt/esrs/lib/libsphinxbase.a(logmath.o): In function `logmath_log':
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:452: undefined reference to `log'
/opt/esrs/lib/libsphinxbase.a(logmath.o): In function `logmath_exp':
/root/Desktop/sphinxbase/src/libsphinxbase/util/logmath.c:458: undefined reference to `pow'
/opt/esrs/lib/libsphinxbase.a(err.o): In function `internal_set_logfp':
/root/Desktop/sphinxbase/src/libsphinxbase/util/err.c:113: undefined reference to `pthread_setspecific'
/opt/esrs/lib/libsphinxbase.a(err.o): In function `logfp_index_alloc':
/root/Desktop/sphinxbase/src/libsphinxbase/util/err.c:88: undefined reference to `pthread_key_create'
/opt/esrs/lib/libsphinxbase.a(err.o): In function `err_get_logfp':
/root/Desktop/sphinxbase/src/libsphinxbase/util/err.c:96: undefined reference to `pthread_once'
/root/Desktop/sphinxbase/src/libsphinxbase/util/err.c:97: undefined reference to `pthread_getspecific'
/opt/esrs/lib/libsphinxbase.a(cmn.o): In function `cmn':
/root/Desktop/sphinxbase/src/libsphinxbase/feat/cmn.c:202: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/feat/cmn.c:202: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/feat/cmn.c:202: undefined reference to `sqrt'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_mel':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:293: undefined reference to `log10'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_melinv':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:299: undefined reference to `pow'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_log':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:283: undefined reference to `log'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:283: undefined reference to `log'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:283: undefined reference to `log'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_compute_melcosine':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:448: undefined reference to `cos'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:461: undefined reference to `sin'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:455: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:455: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:454: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:454: undefined reference to `sqrt'
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:455: undefined reference to `sqrt'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o):/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:454: more undefined references to `sqrt' follow
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_create_hamming':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:524: undefined reference to `cos'
/opt/esrs/lib/libsphinxbase.a(fe_sigproc.o): In function `fe_create_twiddle':
/root/Desktop/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c:650: undefined reference to `sincos'
/opt/esrs/lib/libsphinxad.a(cont_ad_base.o): In function `cont_ad_frame_pow':
/root/Desktop/sphinxbase/src/libsphinxad/cont_ad_base.c:298: undefined reference to `log10'
/root/Desktop/sphinxbase/src/libsphinxad/cont_ad_base.c:298: undefined reference to `log10'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `setparams':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:96: undefined reference to `snd_pcm_hw_params_sizeof'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:96: undefined reference to `snd_pcm_hw_params_sizeof'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:97: undefined reference to `snd_pcm_hw_params_any'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:104: undefined reference to `snd_pcm_hw_params_set_access'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:114: undefined reference to `snd_pcm_hw_params_set_format'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:123: undefined reference to `snd_pcm_hw_params_set_channels'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:131: undefined reference to `snd_pcm_hw_params_set_rate_near'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:146: undefined reference to `snd_pcm_hw_params_get_buffer_time_max'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:148: undefined reference to `snd_pcm_hw_params_set_period_time_near'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:155: undefined reference to `snd_pcm_hw_params_set_buffer_time_near'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:163: undefined reference to `snd_pcm_hw_params'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:169: undefined reference to `snd_pcm_nonblock'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:99: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:108: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:117: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:125: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:151: undefined reference to `snd_strerror'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o):/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:158: more undefined references to `snd_strerror' follow
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `setlevels':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:188: undefined reference to `snd_mixer_open'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:198: undefined reference to `snd_mixer_attach'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:206: undefined reference to `snd_mixer_selem_register'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:211: undefined reference to `snd_mixer_load'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:216: undefined reference to `snd_mixer_selem_id_sizeof'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:216: undefined reference to `snd_mixer_selem_id_sizeof'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:217: undefined reference to `snd_mixer_selem_id_set_name'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:218: undefined reference to `snd_mixer_find_selem'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:222: undefined reference to `snd_mixer_selem_has_capture_switch'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:232: undefined reference to `snd_mixer_selem_id_set_name'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:233: undefined reference to `snd_mixer_find_selem'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:237: undefined reference to `snd_mixer_selem_has_capture_switch'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:238: undefined reference to `snd_mixer_selem_set_capture_switch_all'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:239: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:242: undefined reference to `snd_mixer_close'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:223: undefined reference to `snd_mixer_selem_set_capture_switch_all'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:189: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:199: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:202: undefined reference to `snd_mixer_close'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:207: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:208: undefined reference to `snd_mixer_close'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:212: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:213: undefined reference to `snd_mixer_close'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `ad_open_dev':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:262: undefined reference to `snd_pcm_open'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:264: undefined reference to `snd_strerror'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `ad_start_rec':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:330: undefined reference to `snd_pcm_prepare'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:335: undefined reference to `snd_pcm_start'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:337: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:332: undefined reference to `snd_strerror'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `ad_stop_rec':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:357: undefined reference to `snd_pcm_drop'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:359: undefined reference to `snd_strerror'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `ad_close':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:312: undefined reference to `snd_pcm_close'
/opt/esrs/lib/libsphinxad.a(ad_alsa.o): In function `ad_read':
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:378: undefined reference to `snd_pcm_readi'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:384: undefined reference to `snd_pcm_prepare'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:394: undefined reference to `snd_pcm_resume'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:397: undefined reference to `snd_pcm_prepare'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:399: undefined reference to `snd_strerror'
/root/Desktop/sphinxbase/src/libsphinxad/ad_alsa.c:407: undefined reference to `snd_strerror'
collect2: ld returned 1 exit status
make: *** Error 1
ld returned 1 exit status我也被这个问题困扰
页:
[1]