[pjsip] Cross-compiling pjsip - issue with linking

warpme warpme at o2.pl
Fri May 30 09:25:57 EDT 2014


Hi,
I'm trying to cross-build libpjsip 2.2.1.
Unfortunately I'm receiving following linker error:
x86_64-minimyth-linux-gnu-ld -o ../lib/libpj.so.2 \
     output/pjlib-x86_64-minimyth-linux-gnu/ioqueue_select.o  output/pjlib-x86_64-minimyth-linux-gnu/file_access_unistd.o  output/pj
lib-x86_64-minimyth-linux-gnu/file_io_ansi.o  output/pjlib-x86_64-minimyth-linux-gnu/os_core_unix.o  output/pjlib-x86_64-minimyth-li
nux-gnu/os_error_unix.o  output/pjlib-x86_64-minimyth-linux-gnu/os_time_unix.o  output/pjlib-x86_64-minimyth-linux-gnu/os_timestamp_
posix.o  output/pjlib-x86_64-minimyth-linux-gnu/guid_uuid.o  output/pjlib-x86_64-minimyth-linux-gnu/addr_resolv_sock.o  output/pjlib
-x86_64-minimyth-linux-gnu/log_writer_stdout.o  output/pjlib-x86_64-minimyth-linux-gnu/os_timestamp_common.o  output/pjlib-x86_64-mi
nimyth-linux-gnu/pool_policy_malloc.o  output/pjlib-x86_64-minimyth-linux-gnu/sock_bsd.o  output/pjlib-x86_64-minimyth-linux-gnu/soc
k_select.o  output/pjlib-x86_64-minimyth-linux-gnu/activesock.o  output/pjlib-x86_64-minimyth-linux-gnu/array.o  output/pjlib-x86_64
-minimyth-linux-gnu/config.o  output/pjlib-x86_64-minimyth-linux-gnu/ctype.o  output/pjlib-x86_64-minimyth-linux-gnu/errno.o  output
/pjlib-x86_64-minimyth-linux-gnu/except.o  output/pjlib-x86_64-minimyth-linux-gnu/fifobuf.o  output/pjlib-x86_64-minimyth-linux-gnu/
guid.o  output/pjlib-x86_64-minimyth-linux-gnu/hash.o  output/pjlib-x86_64-minimyth-linux-gnu/ip_helper_generic.o  output/pjlib-x86_
64-minimyth-linux-gnu/list.o  output/pjlib-x86_64-minimyth-linux-gnu/lock.o  output/pjlib-x86_64-minimyth-linux-gnu/log.o  output/pj
lib-x86_64-minimyth-linux-gnu/os_time_common.o  output/pjlib-x86_64-minimyth-linux-gnu/os_info.o  output/pjlib-x86_64-minimyth-linux
-gnu/pool.o  output/pjlib-x86_64-minimyth-linux-gnu/pool_buf.o  output/pjlib-x86_64-minimyth-linux-gnu/pool_caching.o  output/pjlib-
x86_64-minimyth-linux-gnu/pool_dbg.o  output/pjlib-x86_64-minimyth-linux-gnu/rand.o  output/pjlib-x86_64-minimyth-linux-gnu/rbtree.o
  output/pjlib-x86_64-minimyth-linux-gnu/sock_common.o  output/pjlib-x86_64-minimyth-linux-gnu/sock_qos_common.o  output/pjlib-x86_6
4-minimyth-linux-gnu/sock_qos_bsd.o  output/pjlib-x86_64-minimyth-linux-gnu/ssl_sock_common.o  output/pjlib-x86_64-minimyth-linux-gn
u/ssl_sock_ossl.o  output/pjlib-x86_64-minimyth-linux-gnu/ssl_sock_dump.o  output/pjlib-x86_64-minimyth-linux-gnu/string.o  output/p
jlib-x86_64-minimyth-linux-gnu/timer.o  output/pjlib-x86_64-minimyth-linux-gnu/types.o  -flto -fuse-linker-plugin -Wl,--as-needed -l
uuid -lm -lrt -lpthread  -lasound   -L/home/piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjlib/lib -L/home/pi
otro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjlib-util/lib -L/home/piotro/minimyth-dev/script/lib/libpjsip/wor
k/main.d/pjproject-2.2.1/pjnath/lib -L/home/piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjmedia/lib -L/home/
piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjsip/lib -L/home/piotro/minimyth-dev/script/lib/libpjsip/work/m
ain.d/pjproject-2.2.1/third_party/lib       -flto -fuse-linker-plugin -Wl,--as-needed -flto -fuse-linker-plugin -Wl,--as-needed  -sh
ared -Wl,-soname,libpj.so.2
x86_64-minimyth-linux-gnu-ld: unrecognized option '-Wl,--as-needed'
x86_64-minimyth-linux-gnu-ld: use the --help option for usage information
make[3]: *** [../lib/libpj.so.2] Error 1
make[3]: Leaving directory `/home/piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjlib/build'
make[2]: *** [libpj.so] Error 2
make[2]: Leaving directory `/home/piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1/pjlib/build'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/piotro/minimyth-dev/script/lib/libpjsip/work/main.d/pjproject-2.2.1'
make: *** [build-work/main.d/pjproject-2.2.1/Makefile] Error 2
Removing '-Wl,' flag causes linking goes OK.
How can I remove this flag in ./configure process?
thx in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140530/187cae1d/attachment-0002.html>


More information about the pjsip mailing list