Asterisk 1.8 Installation Problem

Home » Asterisk Users » Asterisk 1.8 Installation Problem
Asterisk Users 3 Comments

Hi,

We want to upgrade both our servers to asterisk 1.8, the one from Romania and the one from Chicago, but for the moment I`m trying to install Asterisk 1.8 on a test machine running CentOS 5.5 with the kernel: Linux asterisk3 2.6.18-194.17.4.el5PAE #1 SMP Mon Oct 25 16:35:27 EDT 2010 i686 i686 i386 GNU/Linux .

I`ve tried many things from the forums and mailing lists but none seemed to help me. Our problem is that when we want to compile asterisk 1.8 we get this error:

/packages/asterisk-1.8.0/addons/chan_ooh323.c:3888: multiple definition of `configure_local_rtp’
../addons/chan_ooh323.eo:(.text+0xd100): first defined here
../addons/chan_ooh323.o: In function `ooh323_update_capPrefsOrderForCall’:
/packages/asterisk-1.8.0/addons/chan_ooh323.c:3803: multiple definition of `ooh323_update_capPrefsOrderForCall’
../addons/chan_ooh323.eo:(.text+0xe1f0): first defined here
/usr/bin/ld: Dwarf Error: Abbrev offset (13856) greater than or equal to .debug_abbrev size (1228).
../channels/chan_mgcp.eo: In function `mgcp_hangup’:
chan_mgcp.c:(.text+0xaf04): undefined reference to `ast_pktccops_gate_alloc’
../channels/chan_mgcp.eo: In function `start_rtp’:
chan_mgcp.c:(.text+0xbdb2): undefined reference to `ast_pktccops_gate_alloc’
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2

I don’t know if this helps but I`ve also copied a part of the config.log file which contains the ld word:

[root@asterisk3 asterisk-1.8.0]# less config.log | grep ld
configure:3302: checking build system type
configure:6461: checking for ld used by gcc
configure:6528: result: /usr/bin/ld
configure:6535: checking if the linker (/usr/bin/ld) is GNU ld
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
/usr/bin/ld: cannot find -llthread
collect2: ld returned 1 exit status
configure:9680: gcc -o conftest -g -O2 conftest.c -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz >&5
configure:9707: gcc -o conftest -g -O2 conftest.c -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz >&5
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
configure:14123: checking for strtold
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
configure:14268: checking for a version of GNU ld that supports the –dynamic-list flag
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
configure:16677: gcc -o conftest -g -O2 conftest.c -lasound -lm -ldl -lm >&5
/usr/bin/ld: cannot find -lgsm
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lical
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
/usr/bin/ld: cannot find -liodbc
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -ljack
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
configure:19101: checking for ldap_initialize in -lldap
configure:19126: gcc -o conftest -g -O2 conftest.c -lldap -lm >&5
configure:19161: checking ldap.h usability
configure:19161: checking ldap.h presence
configure:19161: checking for ldap.h
/usr/bin/ld: cannot find -lmISDN
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lnbs
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
configure:20595: gcc -o conftest -g -O2 -DINET6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -g -lcrypto -DNETSNMP_NO_INLINE -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp conftest.c -L/usr/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm -lsensors -L/usr/lib/lib -lwrap -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc >&5
/usr/bin/ld: cannot find -lexecinfo
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lbluetooth
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
configure:23074: checking for pri_hold_enable in -lpri
/usr/bin/ld: cannot find -lopenr2
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -llua5.1
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -llua
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lradiusclient-ng
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lSaClm
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lspeexdsp
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lsqlite
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lsrtp
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lhoard
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lsybdb
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lSDL_image
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
/usr/bin/ld: cannot find -lavcodec
collect2: ld returned 1 exit status
| builtin and then its argument prototype would still apply. */
config.status:1586: creating build_tools/menuselect-deps
configure:30660: build-cpu:vendor:os: i686 : pc : linux-gnu :
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_func_strtold=yes
ac_cv_header_ldap_h=yes
ac_cv_lib_ldap_ldap_initialize=yes
ac_cv_lib_pri_pri_hold_enable=yes
lt_cv_path_LD=/usr/bin/ld
lt_cv_prog_gnu_ld=yes
ALSA_LIB=’ -lasound -lm -ldl’
CURL_LIB=’-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz ‘
GTK2_LIB=’-L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 ‘
LD=’/usr/bin/ld’
LDAP_LIB=’ -lldap ‘
NETSNMP_LIB=’-L/usr/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm -lsensors -L/usr/lib/lib -lwrap -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc’
astspooldir=’${localstatedir}/spool/asterisk’
build=’i686-pc-linux-gnu’
build_alias=”
build_cpu=’i686′
build_os=’linux-gnu’
build_vendor=’pc’
htmldir=’${docdir}’
oldincludedir=’/usr/include’

Does anyone have any idea what should we do in order to get it working ? From what I know the library libgpgme-pthread11.i386 was needed in order to have lpthread but with no luck , still doesn’t work.

Thanks for the answers guys,

Bogdan

3 thoughts on - Asterisk 1.8 Installation Problem

  • This isn’t correct. The pthreads library should already be installed by
    default. The package you cite above is an encryption library.

    I have a barebones CentOS 5.5 machine here, which I use for testing, and
    the devel packages which I have installed are:

    libstdc++-devel-4.1.2-48.el5
    libxml2-devel-2.6.26-2.1.2.8
    openssl-devel-0.9.8e-12.el5_4.6
    slang-devel-2.0.6-4.el5
    libsepol-devel-1.15.2-3.el5
    ncurses-devel-5.5-24.20060715
    libtool-ltdl-devel-1.5.22-7.el5_4
    newt-devel-0.52.2-15.el5
    glibc-devel-2.5-49.el5_5.4
    zlib-devel-1.2.3-3
    libselinux-devel-1.33.4-5.5.el5
    krb5-devel-1.6.1-36.el5_5.5
    keyutils-libs-devel-1.2-1.el5
    e2fsprogs-devel-1.39-23.el5
    unixODBC-devel-2.2.11-7.1

    Given that I do not have any problems compiling Asterisk 1.8.0 (including
    ooh323, which I had to enable, and chan_mgcp), I would suggest that you
    verify that each of these packages is installed on your system. If you
    install any of these, and that fixes the problem, please report back which
    package solved the problem. I’d love to make a configure test to verify
    that all required packages are installed before configure will succeed.

  • Thanks for the answer.

    All of those libraries are already installed and it’s still not working.

    Package libstdc++-devel-4.1.2-48.el5.i386 already installed and latest
    version
    Package matching libxml2-devel-2.6.26-2.1.2.8.i386 already installed.
    Checking for update.
    Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and latest
    version
    Package slang-devel-2.0.6-4.el5.i386 already installed and latest version
    Package libsepol-devel-1.15.2-3.el5.i386 already installed and latest
    version
    Package ncurses-devel-5.5-24.20060715.i386 already installed and latest
    version
    Package libtool-ltdl-devel-1.5.22-7.el5_4.i386 already installed and latest
    version
    Package newt-devel-0.52.2-15.el5.i386 already installed and latest version
    Package matching glibc-devel-2.5-49.el5_5.4.i386 already installed. Checking
    for update.
    Package zlib-devel-1.2.3-3.i386 already installed and latest version
    Package libselinux-devel-1.33.4-5.5.el5.i386 already installed and latest
    version
    Package krb5-devel-1.6.1-36.el5_5.5.i386 already installed and latest
    version
    Package keyutils-libs-devel-1.2-1.el5.i386 already installed and latest
    version
    Package e2fsprogs-devel-1.39-23.el5.i386 already installed and latest
    version
    Package unixODBC-devel-2.2.11-7.1.i386 already installed and latest version

    Any other ideas ?

    Thanks,
    Bogdan Sarandan