compile on my App simple_pjsua.c

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

 



Hello all,

I am trying to use the simple_pjsua.c
(http://www.pjsip.org/pjsip/docs/html/page_pjsip_sample_simple_pjsuaua_c.htm)
in my application. However,
i keep getting errors:


checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking pjsip.h usability... yes
checking pjsip.h presence... yes
checking for pjsip.h... yes
checking pjmedia.h usability... yes
checking pjmedia.h presence... yes
checking for pjmedia.h... yes
checking pjsip_ua.h usability... yes
checking pjsip_ua.h presence... yes
checking for pjsip_ua.h... yes
checking pjlib.h usability... yes
checking pjlib.h presence... yes
checking for pjlib.h... yes
checking pjlib-util.h usability... yes
checking pjlib-util.h presence... yes
checking for pjlib-util.h... yes
checking pjmedia-codec.h usability... yes
checking pjmedia-codec.h presence... yes
checking for pjmedia-codec.h... yes
checking pjsip_simple.h usability... yes
checking pjsip_simple.h presence... yes
checking for pjsip_simple.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src.d/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

------------------------------------------------------------

  Build information:
    source code location        : .
    prefix                      :
    sysconfdir                  : /etc
       conf file                : /etc/dpackager.conf
       cert file                :
       init dir                 :
    datarootdir                 : /share
       mandir                   : ${prefix}/share/man
    localstatedir               : /var
       htmldir                  : ${datarootdir}/doc/${PACKAGE_TARNAME}
       www dir                  :
       log dir                  :


    Enable modules              :
    compiler                    : gcc
    compiler flags              : -O2

    Architecture                : x86_64
    Architecture flags          : -march=x86-64
    Host Type                   : x86_64-unknown-linux-gnu

/media/Workshop/testsip/pjproject-1.10.d

------------------------------------------------------------


make  all-recursive
make[1]: Entering directory `/media/Workshop/testsip'
Making all in src.d
make[2]: Entering directory `/media/Workshop/testsip/src.d'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2   -o Dsip main.o
-L/media/Workshop/testsip/pjproject-1.10.d/pjlib/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjlib-util/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjnath/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjmedia/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjsip/lib
-L/media/Workshop/testsip/pjproject-1.10.d/third_party/lib
-L/usr/local/lib -L/usr/lib -L/lib
libtool: link: gcc -O2 -o Dsip main.o
-L/media/Workshop/testsip/pjproject-1.10.d/pjlib/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjlib-util/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjnath/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjmedia/lib
-L/media/Workshop/testsip/pjproject-1.10.d/pjsip/lib
-L/media/Workshop/testsip/pjproject-1.10.d/third_party/lib
-L/usr/local/lib -L/usr/lib -L/lib
main.o: In function `on_call_state':
/media/Workshop/testsip/src.d/main.c:95: undefined reference to
`pjsua_call_get_info'
/media/Workshop/testsip/src.d/main.c:96: undefined reference to
`pj_log_get_level'
/media/Workshop/testsip/src.d/main.c:98: undefined reference to `pj_log_3'
main.o: In function `on_call_media_state':
/media/Workshop/testsip/src.d/main.c:106: undefined reference to
`pjsua_call_get_info'
/media/Workshop/testsip/src.d/main.c:110: undefined reference to
`pjsua_conf_connect'
/media/Workshop/testsip/src.d/main.c:111: undefined reference to
`pjsua_conf_connect'
main.o: In function `on_incoming_call':
/media/Workshop/testsip/src.d/main.c:78: undefined reference to
`pjsua_call_get_info'
/media/Workshop/testsip/src.d/main.c:80: undefined reference to
`pj_log_get_level'
/media/Workshop/testsip/src.d/main.c:82: undefined reference to `pj_log_3'
/media/Workshop/testsip/src.d/main.c:85: undefined reference to
`pjsua_call_answer'
main.o: In function `error_exit':
/media/Workshop/testsip/src.d/main.c:118: undefined reference to `pjsua_perror'
/media/Workshop/testsip/src.d/main.c:119: undefined reference to `pjsua_destroy'
main.o: In function `main':
/media/Workshop/testsip/src.d/main.c:134: undefined reference to `pjsua_create'
/media/Workshop/testsip/src.d/main.c:139: undefined reference to
`pjsua_verify_url'
/media/Workshop/testsip/src.d/main.c:148: undefined reference to
`pjsua_config_default'
/media/Workshop/testsip/src.d/main.c:153: undefined reference to
`pjsua_logging_config_default'
/media/Workshop/testsip/src.d/main.c:156: undefined reference to `pjsua_init'
/media/Workshop/testsip/src.d/main.c:164: undefined reference to
`pjsua_transport_config_default'
/media/Workshop/testsip/src.d/main.c:166: undefined reference to
`pjsua_transport_create'
/media/Workshop/testsip/src.d/main.c:171: undefined reference to `pjsua_start'
/media/Workshop/testsip/src.d/main.c:178: undefined reference to
`pjsua_acc_config_default'
/media/Workshop/testsip/src.d/main.c:179: undefined reference to `pj_str'
/media/Workshop/testsip/src.d/main.c:180: undefined reference to `pj_str'
/media/Workshop/testsip/src.d/main.c:182: undefined reference to `pj_str'
/media/Workshop/testsip/src.d/main.c:183: undefined reference to `pj_str'
/media/Workshop/testsip/src.d/main.c:184: undefined reference to `pj_str'
main.o:/media/Workshop/testsip/src.d/main.c:186: more undefined
references to `pj_str' follow
main.o: In function `main':
/media/Workshop/testsip/src.d/main.c:188: undefined reference to `pjsua_acc_add'
/media/Workshop/testsip/src.d/main.c:194: undefined reference to `pj_str'
/media/Workshop/testsip/src.d/main.c:195: undefined reference to
`pjsua_call_make_call'
/media/Workshop/testsip/src.d/main.c:217: undefined reference to `pjsua_destroy'
/media/Workshop/testsip/src.d/main.c:213: undefined reference to
`pjsua_call_hangup_all'
collect2: ld returned 1 exit status
make[2]: *** [Dsip] Error 1
make[2]: Leaving directory `/media/Workshop/testsip/src.d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/Workshop/testsip'
make: *** [all] Error 2



Any help would be much appreciated.
-- 
Sincerely,



[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