pjsua_create() undefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you!!! for the details (-L small L and i uses). Now i got more errors.

[root at example mysip]# gcc -L /home/sun/Downloads/pjsip/trunk/pjlib/lib/
myapp.c -I/home/sun/Downloads/pjsip/trunk/pjsip/include/ \
-lpjsua-i686-pc-linux-gnu \
-lpjsip-ua-i686-pc-linux-gnu \
-lpjsip-simple-i686-pc-linux-gnu \
-lpjsip-i686-pc-linux-gnu \
-lpjmedia-i686-pc-linux-gnu \
-lpjmedia-i686-pc-linux-gnu \
-lpjmedia-audiodev-i686-pc-linux-gnu \
-lpjnath-i686-pc-linux-gnu \
-lpjlib-util-i686-pc-linux-gnu \
-lpj-i686-pc-linux-gnu

/usr/local/lib/libpjsua-i686-pc-linux-gnu.a(pjsua_media.o): In function
`pjsua_media_subsys_init':
pjsua_media.c:(.text+0x296a): undefined reference to
`pjmedia_codec_speex_init'
pjsua_media.c:(.text+0x2a0e): undefined reference to
`pjmedia_codec_ilbc_init'
pjsua_media.c:(.text+0x2a23): undefined reference to
`pjmedia_codec_gsm_init'
pjsua_media.c:(.text+0x2a4d): undefined reference to
`pjmedia_codec_g722_init'
pjsua_media.c:(.text+0x2a6a): undefined reference to
`pjmedia_codec_l16_init'
/usr/local/lib/libpjsua-i686-pc-linux-gnu.a(pjsua_media.o): In function
`pjsua_media_subsys_destroy':
pjsua_media.c:(.text+0x3293): undefined reference to
`pjmedia_codec_speex_deinit'
pjsua_media.c:(.text+0x3298): undefined reference to
`pjmedia_codec_gsm_deinit'
pjsua_media.c:(.text+0x32a6): undefined reference to
`pjmedia_codec_g722_deinit'
pjsua_media.c:(.text+0x32ab): undefined reference to
`pjmedia_codec_l16_deinit'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(resample_resample.o): In
function `pjmedia_resample_run':
resample_resample.c:(.text+0x16c): undefined reference to `res_Resample'
resample_resample.c:(.text+0x204): undefined reference to `res_SrcLinear'
resample_resample.c:(.text+0x268): undefined reference to `res_Resample'
resample_resample.c:(.text+0x2b7): undefined reference to `res_SrcLinear'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(resample_resample.o): In
function `pjmedia_resample_create':
resample_resample.c:(.text+0x52f): undefined reference to `res_GetXOFF'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`pjmedia_transport_srtp_decrypt_pkt':
transport_srtp.c:(.text+0x318): undefined reference to `srtp_unprotect_rtcp'
transport_srtp.c:(.text+0x37a): undefined reference to `srtp_unprotect'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`pjmedia_transport_srtp_stop':
transport_srtp.c:(.text+0x42a): undefined reference to `srtp_dealloc'
transport_srtp.c:(.text+0x43e): undefined reference to `srtp_dealloc'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`srtp_rtcp_cb':
transport_srtp.c:(.text+0x66f): undefined reference to `srtp_unprotect_rtcp'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`generate_crypto_attr_value':
transport_srtp.c:(.text+0x8c0): undefined reference to `crypto_get_random'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`pjmedia_srtp_init_lib':
transport_srtp.c:(.text+0x9c1): undefined reference to `srtp_init'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`pjmedia_srtp_deinit_lib':
transport_srtp.c:(.text+0xa58): undefined reference to `srtp_deinit'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`transport_send_rtcp2':
transport_srtp.c:(.text+0x17de): undefined reference to `srtp_protect_rtcp'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`transport_send_rtp':
transport_srtp.c:(.text+0x1923): undefined reference to `srtp_protect'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`pjmedia_transport_srtp_start':
transport_srtp.c:(.text+0x209e): undefined reference to `srtp_create'
transport_srtp.c:(.text+0x2239): undefined reference to `srtp_create'
transport_srtp.c:(.text+0x23ae): undefined reference to `srtp_dealloc'
transport_srtp.c:(.text+0x23cd): undefined reference to
`octet_string_hex_string'
transport_srtp.c:(.text+0x2464): undefined reference to
`octet_string_hex_string'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(transport_srtp.o): In function
`srtp_rtp_cb':
transport_srtp.c:(.text+0x251e): undefined reference to `srtp_unprotect'
transport_srtp.c:(.text+0x2644): undefined reference to `srtp_unprotect'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(wsola.o): In function
`pjmedia_wsola_create':
wsola.c:(.text+0x828): undefined reference to `cos'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(echo_speex.o): In function
`speex_aec_cancel_echo':
echo_speex.c:(.text+0x6d): undefined reference to `speex_echo_cancellation'
echo_speex.c:(.text+0x7f): undefined reference to `speex_preprocess_run'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(echo_speex.o): In function
`speex_aec_destroy':
echo_speex.c:(.text+0xe8): undefined reference to `speex_echo_state_destroy'
echo_speex.c:(.text+0xfd): undefined reference to
`speex_preprocess_state_destroy'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(echo_speex.o): In function
`speex_aec_create':
echo_speex.c:(.text+0x1c7): undefined reference to `speex_echo_state_init'
echo_speex.c:(.text+0x1ec): undefined reference to `speex_echo_ctl'
echo_speex.c:(.text+0x1fb): undefined reference to
`speex_preprocess_state_init'
echo_speex.c:(.text+0x21a): undefined reference to `speex_preprocess_ctl'
echo_speex.c:(.text+0x256): undefined reference to
`speex_echo_state_destroy'
/usr/local/lib/libpjmedia-i686-pc-linux-gnu.a(echo_speex.o): In function
`speex_aec_reset':
echo_speex.c:(.text+0xc0): undefined reference to `speex_echo_state_reset'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(errno.o): In function
`pjmedia_audiodev_strerror':
errno.c:(.text+0xbb): undefined reference to `Pa_GetErrorText'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `strm_destroy':
pa_dev.c:(.text+0x7d): undefined reference to `Pa_CloseStream'
pa_dev.c:(.text+0x93): undefined reference to `Pa_CloseStream'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `strm_stop':
pa_dev.c:(.text+0x19e): undefined reference to `Pa_StopStream'
pa_dev.c:(.text+0x1b4): undefined reference to `Pa_StopStream'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `strm_start':
pa_dev.c:(.text+0x284): undefined reference to `Pa_StartStream'
pa_dev.c:(.text+0x2c0): undefined reference to `Pa_StartStream'
pa_dev.c:(.text+0x2d1): undefined reference to `Pa_StopStream'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `strm_get_cap':
pa_dev.c:(.text+0x363): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0x3a3): undefined reference to `Pa_GetStreamInfo'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_get_default_input_dev':
pa_dev.c:(.text+0x3fc): undefined reference to `Pa_GetHostApiCount'
pa_dev.c:(.text+0x414): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x429): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x43b): undefined reference to `Pa_GetDeviceCount'
pa_dev.c:(.text+0x45b): undefined reference to `Pa_GetDeviceInfo'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_get_default_output_dev':
pa_dev.c:(.text+0x49c): undefined reference to `Pa_GetHostApiCount'
pa_dev.c:(.text+0x4b4): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x4c9): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x4db): undefined reference to `Pa_GetDeviceCount'
pa_dev.c:(.text+0x4fb): undefined reference to `Pa_GetDeviceInfo'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_get_dev_count':
pa_dev.c:(.text+0x537): undefined reference to `Pa_GetDeviceCount'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_destroy':
pa_dev.c:(.text+0x7fa): undefined reference to `Pa_Terminate'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_init':
pa_dev.c:(.text+0x858): undefined reference to `Pa_Initialize'
pa_dev.c:(.text+0x8b3): undefined reference to `Pa_GetHostApiCount'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_get_dev_info':
pa_dev.c:(.text+0xd09): undefined reference to `Pa_GetDeviceInfo'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `strm_get_param':
pa_dev.c:(.text+0xf14): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0xf2f): undefined reference to `Pa_GetStreamInfo'
/usr/local/lib/libpjmedia-audiodev-i686-pc-linux-gnu.a(pa_dev.o): In
function `pa_create_stream':
pa_dev.c:(.text+0x10d8): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x1105): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x12da): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x1340): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x1382): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0x139c): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0x1400): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x15a6): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x15f5): undefined reference to `Pa_OpenStream'
pa_dev.c:(.text+0x160a): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0x16d6): undefined reference to `Pa_GetDeviceInfo'
pa_dev.c:(.text+0x1882): undefined reference to `Pa_GetHostApiInfo'
pa_dev.c:(.text+0x18d1): undefined reference to `Pa_OpenStream'
pa_dev.c:(.text+0x18e6): undefined reference to `Pa_GetStreamInfo'
pa_dev.c:(.text+0x1a80): undefined reference to `Pa_OpenStream'
pa_dev.c:(.text+0x1ad0): undefined reference to `Pa_OpenStream'
pa_dev.c:(.text+0x1aeb): undefined reference to `Pa_CloseStream'
pa_dev.c:(.text+0x1c68): undefined reference to `Pa_OpenStream'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_sem_destroy':
os_core_unix.c:(.text+0x429): undefined reference to `sem_destroy'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_sem_post':
os_core_unix.c:(.text+0x494): undefined reference to `sem_post'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_sem_trywait':
os_core_unix.c:(.text+0x4d3): undefined reference to `sem_trywait'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_sem_wait':
os_core_unix.c:(.text+0x549): undefined reference to `sem_wait'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_sem_create':
os_core_unix.c:(.text+0x61b): undefined reference to `sem_init'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_rwmutex_destroy':
os_core_unix.c:(.text+0x71d): undefined reference to
`pthread_rwlock_destroy'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_rwmutex_unlock_write':
os_core_unix.c:(.text+0x74d): undefined reference to `pthread_rwlock_unlock'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_rwmutex_lock_write':
os_core_unix.c:(.text+0x78d): undefined reference to `pthread_rwlock_wrlock'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_rwmutex_lock_read':
os_core_unix.c:(.text+0x7bd): undefined reference to `pthread_rwlock_rdlock'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_rwmutex_create':
os_core_unix.c:(.text+0x80c): undefined reference to `pthread_rwlock_init'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `init_mutex':
os_core_unix.c:(.text+0x98d): undefined reference to
`pthread_mutexattr_init'
os_core_unix.c:(.text+0x9c1): undefined reference to
`pthread_mutexattr_settype'
os_core_unix.c:(.text+0x9dd): undefined reference to
`pthread_mutexattr_destroy'
os_core_unix.c:(.text+0xa04): undefined reference to
`pthread_mutexattr_settype'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_mutex_trylock':
os_core_unix.c:(.text+0xc1c): undefined reference to `pthread_mutex_trylock'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_local_set':
os_core_unix.c:(.text+0xff4): undefined reference to `pthread_setspecific'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_local_alloc':
os_core_unix.c:(.text+0x10bd): undefined reference to `pthread_key_create'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_join':
os_core_unix.c:(.text+0x11fc): undefined reference to `pthread_join'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_create':
os_core_unix.c:(.text+0x12ef): undefined reference to `pthread_create'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_local_get':
os_core_unix.c:(.text+0xb98): undefined reference to `pthread_getspecific'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_core_unix.o):
In function `pj_thread_local_free':
os_core_unix.c:(.text+0x1098): undefined reference to `pthread_key_delete'
/home/sun/Downloads/pjsip/trunk/pjlib/lib//libpj-i686-pc-linux-gnu.a(os_timestamp_common.o):
In function `pj_elapsed_time':
os_timestamp_common.c:(.text+0x123): undefined reference to `fmod'
collect2: ld returned 1 exit status




Many Thanks
Best regards
Shamun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100801/5320d245/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux