Hallo Zusammen,
ich versuche seit ein paar Tagen Asterisk 17.2.0 auf openSUSE 15.1 zu installieren. (pjprojects wurde inzwischen erfolgreich erstellt.)
Configure läuft durch. Wenn ich nun make aufrufe, bekomme ich die Fehlermeldung
Code
…
…
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(pool_buf.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(rand.o): relocation R_X86_64_PC32 against symbol `srand@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(sock_common.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(string.o): relocation R_X86_64_PC32 against symbol `strlen@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(timer.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(log_writer_stdout.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(pool_policy_malloc.o): relocation R_X86_64_PC32 against symbol `malloc@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libpj-x86_64-unknown-linux-gnu.a(ip_helper_generic.o): relocation R_X86_64_PC32 against symbol `getifaddrs@@GLIBC_2.3' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[1]: *** [/daten/Downloads/Asterisk/asterisk-17.2.0/Makefile.rules:192: chan_pjsip.so] Fehler 1
make: *** [Makefile:383: channels] Fehler 2
Alles anzeigen
(Von diesen Einträgen gibt's noch einige mehr, ich habe nur die letzten kopiert...)
Habe schon versucht das Flag -fPIC bzw. -no-pie mitzugeben. Aber entweder habe ich nicht die richtige Stelle oder aber es funktioniert nicht.
Hat das jemand im Einsatz? Jemand 'ne Idee wo mein Fehler liegt?
Vielen Dank.