Hello,
I am trying to compile
Asterisk on Fedora Core 6 64-bit. However, when I run
make, it fails at a certain file because a certain static library can't link to make a dynamic library or something like that. The output is shown below. I have found many descriptions of related errors on the Internet that indicate that this has to do with 64-bit differences.
This was never a problem on Fedora Core 5. I was able to compile asterisk-1.4.0-beta3, but now after upgrading, I can compile neither asterisk-1.4.0-beta3 or the upgraded version 1.4.0.
Here is the output from running "make" a second time (which skips right to the error):
Code:
$ make
menuselect/menuselect --check-deps menuselect.makeopts
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
[LD] func_curl.o -> func_curl.so
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libidn.a(toutf8.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libidn.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [func_curl.so] Error 1
make: *** [funcs] Error 2
I checked, and this file exists: /usr/lib64/libidn.a
Also,
libidn can be installed/uninstalled by
yum. If I uninstall libidn, then the same
make procedure as shown above fails due to libcurl instead. The
yum package "
curl" is dependent on libidn, so there is certainly something fishy with the libraries.
I don't think this is an asterisk problem itself, but is probably related to some misconfiguration of the libraries in Linux. I just don't know what to do. I have the compiled-installed beta version remaining from when I had Fedora Core 5, and won't remove it unless I know I can re-install asterisk again. Thanks in advance to anyone who can help.