我正在尝试在Debian 8下进行静态构建Asterisk 11.我已经下载了源代码等,并认为我已经满足了各种依赖项所需的所有软件包,但是当我make
时我得到以下内容
...
[CC] recno/rec_delete.c -> recno/rec_delete.o
[CC] recno/rec_get.c -> recno/rec_get.o
[CC] recno/rec_open.c -> recno/rec_open.o
[CC] recno/rec_put.c -> recno/rec_put.o
[CC] recno/rec_search.c -> recno/rec_search.o
[CC] recno/rec_seq.c -> recno/rec_seq.o
[CC] recno/rec_utils.c -> recno/rec_utils.o
[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
[LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3
[CC] astdb2bdb.c -> astdb2bdb.o
[LD] astdb2bdb.o db1-ast/libdb1.a -> astdb2bdb
[CC] chan_local.c -> chan_local.o
[LD] chan_local.o -> chan_local.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginT.o: relocation R_X86_64_32 against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginT.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
/usr/src/asterisk-11/Makefile.rules:170: recipe for target 'chan_local.so' failed
make[1]: *** [chan_local.so] Error 1
Makefile:397: recipe for target 'channels' failed
make: *** [channels] Error 2
我真的很难理解这里发生的事情。有什么建议吗?