..

./sctpn: error while loading shared libraries: libsctp.so.1: cannot open shared object file: No such file or directory

..

Developer Group

Developer Group
Connect with thousands of other developers to brainstorm ideas, share best practices and tips - or just chat about the latest emerging technologies making noise in the field. And of course, get the most up-to-date service and support news from Dialogic.
Dialogic SS7 and SIGTRAN Signalling

./sctpn: error while loading shared libraries: libsctp.so.1: cannot open shared object file: No such file or directory

  • Hi,

    My linux is having lk-sctp-1.0.7. I have tested another sctp server/client written in c on this system and found it is working.

    When i am doing ./gctload -Ci0xd1 it is giving below output and timeout is happening .. no Boot complete msg.

    [root@xyz dpklnx]# ./gctload -d-Ci0xd1
    Reading from system configuration file: 'system.txt'
    Created LOCAL module Id 0x0
    Created LOCAL module Id 0xcf
    Created LOCAL module Id 0xef
    Created LOCAL module Id 0xc2
    Redirect module Id 0xd0 to module Id 0xd1
    Created LOCAL module Id 0xd1
    Created LOCAL module Id 0xc1
    Created LOCAL module Id 0x22
    Created LOCAL module Id 0x33
    Created LOCAL module Id 0x14
    Created LOCAL module Id 0x15
    Created LOCAL module Id 0x2d
    (2993)gctload: Process (2994)'./tim_lnx' - forked by gctload
    (2993)gctload: Process (2995)'./tick_lnx' - forked by gctload
    (2993)gctload: Process (2996)'./sctpn' - forked by gctload
    (2993)gctload: Process (2997)'./m2pa_lnx6' - forked by gctload
    ./sctpn: error while loading shared libraries: libsctp.so.1: cannot open shared object file: No such file or directory
    SS7 MTP3 started in trial mode.
    This binary will terminate after ten hours.
    (2993)gctload: Process (2998)'./mtp_lnx6' - forked by gctload
    SS7 M2PA started in trial mode.
    This binary will terminate after ten hours.
    (2993)gctload: Process (3001)'./mbm' - forked by gctload
    SS7 SCCP started in trial mode.
    This binary will terminate after ten hours.
    (2993)gctload: Process (3002)'./sccp_lnx6' - forked by gctload
    (2993)gctload: Process (3003)'./tcp_lnx6' - forked by gctload
    (2993)gctload: Process (3004)'./map_lnx6' - forked by gctload
    (2993)gctload: Process (3006)'./s7_mgt' - forked by gctload
    (2993)gctload: Process (3007)'./s7_log' - forked by gctload
    (2993)gctload: Initialisation complete.
    S7_MGT Tx: M-I0000-t7220-i0000-fcf-dc1-s00-r8000-pefef0001000000000000000000000000
    SS7 MAP started in trial mode.
    This binary will terminate after ten hours.

    S7_log : mod ID=0xef, options=0xaf0d, max_param_len=320
    S7_log : Writing log file ss7.log
    SS7 TCAP started in trial mode.
    This binary will terminate after ten hours.
    S7_MGT Rx: M-I0000-t3220-i0000-fc1-dcf-s00-r0000-pefef0001000000000000000000000000
    S7_MGT Tx: M-I0000-t7221-i0000-fcf-dc1-s00-r8000-p00000000220000d10000efef0028000a0002000700050003000a00c8012c017700640113015e018f0145018f00000000000000000000000000000000
    S7_MGT Rx: M-I0000-t3221-i0000-fc1-dcf-s00-r0000-p00000000220000d10000efef0028000a0002000700050003000a00c8012c017700640113015e018f0145018f00000000000000000000000000000000
    S7_MGT Tx: M-I0000-t7300-i0000-fcf-d22-s00-r8000
    S7_MGT Rx: M-I0000-t3300-i0000-f22-dcf-s00-r0000
    S7_MGT Tx: M-I0000-t7303-i0000-fcf-d22-s00-r8000-p000422ef000000010000000000200004000000000000000000000033000000000000000000000000
    S7_MGT Rx: M-I0000-t3303-i0000-f22-dcf-s00-r0000-p000422ef000000010000000000200004000000000000000000000033000000000000000000000000
    S7_MGT Tx: M-I0000-t7310-i0000-fcf-d22-s00-r8000-p00000002000100010003000800000001
    S7_MGT Rx: M-I0000-t3310-i0000-f22-dcf-s00-r0000-p00000002000100010003000800000001
    S7_MGT Tx: M-I0000-t7311-i0000-fcf-d22-s00-r8000-p000000c1000000060000000000000000
    S7_MGT Rx: M-I0000-t3311-i0000-f22-dcf-s00-r0000-p000000c1000000060000000000000000
    S7_MGT Tx: M-I0000-t7312-i0000-fcf-d22-s00-r8000-p0000000200000000000000080000000000000000000000000000000000000000
    S7_MGT Rx: M-I0000-t3312-i0000-f22-dcf-s00-r0000-p0000000200000000000000080000000000000000000000000000000000000000
    S7_MGT Tx: M-I0000-t7295-i0000-fcf-dd0-s00-r8000-pefefd1
    S7_MGT: Timer expired during startup

     

     

    I did check and found sctp is loaded into the system.

    [root@xyz dpklnx]# ldconfig -v | grep -i sctp
            libsctp.so.1 -> libsctp.so.1.0.7
    [root@xyz dpklnx] checksctp
    SCTP supported
    [root@xyz dpklnx]#

     

    see also these..

    [root@xyzdpklnx]# ldd sctpn
            linux-gate.so.1 =>  (0xffffe000)
            libgctlib.so.1 => /opt/dpklnx/libgctlib.so.1 (0xf7fd9000)
            libsctp.so.1 => not found
            libpthread.so.0 => /lib/libpthread.so.0 (0x00c7b000)
            libc.so.6 => /lib/libc.so.6 (0x00b35000)
            /lib/ld-linux.so.2 (0x00b17000)
    [root@xyz dpklnx]# ldd /home/banup/c-sctp/sctpsrvr
            libsctp.so.1 => /usr/lib64/libsctp.so.1 (0x0000003ce7400000)
            libc.so.6 => /lib64/libc.so.6 (0x0000003ce7000000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003ce6c00000)
    [root@xyz dpklnx]#

     

    +++++++++++++++++my system.txt++++++++++++++++++++++++++++

    *************************************************************************
    * Example system.txt.
    * Edit this file to reflect your configuration.
    *************************************************************************
    *
    * Modules running on the host:
    *
    LOCAL           0x00            * Timer Task
    LOCAL           0xcf            * s7_mgt - Management/config task
    LOCAL           0xef            * s7_log - Display and logging utility
    LOCAL           0xc2            * mbm - Management task
    * LOCAL                 0xd0            * SCTPD module
    REDIRECT        0xd0 0xd1       * SCTPD messages sent to SCTPN
    LOCAL           0xd1            * SCTP module
    LOCAL           0xc1            * M2PA module
    LOCAL           0x22            * MTP3 module
    LOCAL           0x33            * SCCP module
    LOCAL           0x14            * TCAP module
    LOCAL           0x15            * MAP module
    LOCAL           0x2d            * MTR or MTU module
    *
    * Now start-up all local tasks:
    *
    FORK_PROCESS    ./tim_lnx
    FORK_PROCESS    ./tick_lnx
    * FORK_PROCESS  ./sctpd
    * FORK_PROCESS    ./sctp
    FORK_PROCESS    ./sctpn
    FORK_PROCESS    ./m2pa_lnx6 -t
    FORK_PROCESS    ./mtp_lnx6 -t
    FORK_PROCESS    ./mbm -d
    FORK_PROCESS    ./sccp_lnx6 -t
    FORK_PROCESS    ./tcp_lnx6 -t
    FORK_PROCESS    ./map_lnx6 -t
    FORK_PROCESS    ./s7_mgt -d
    FORK_PROCESS    ./s7_log -fss7.log

     

    please assist me.

    Thanks in adv.

    Bhanu

     

     

     

  • Hi

    It looks like the system only has the 64 bit version of libsctp installed:

    The DSI sctpn binary is 32 bit.

    [root@xyz dpklnx]# ldd /home/banup/c-sctp/sctpsrvr
            libsctp.so.1 => /usr/lib64/libsctp.so.1 (0x0000003ce7400000)
            libc.so.6 => /lib64/libc.so.6 (0x0000003ce7000000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003ce6c00000)
    [root@xyz dpklnx]#


    [root@xyzdpklnx]# ldd sctpn
            linux-gate.so.1 =>  (0xffffe000)
            libgctlib.so.1 => /opt/dpklnx/libgctlib.so.1 (0xf7fd9000)
            libsctp.so.1 => not found
            libpthread.so.0 => /lib/libpthread.so.0 (0x00c7b000)
            libc.so.6 => /lib/libc.so.6 (0x00b35000)
            /lib/ld-linux.so.2 (0x00b17000)


    Uname -i can confirm if you have 32bit installed as well.

    http://www.redhat.com/archives/redhat-install-list/2005-June/msg00239.html

    Ukernie

     

  • Thanks  Ukernie.

    But i have already resolved it.

    It was same problem what you said.

    Bhanu

     

     

  • i have same issue in kali linux,  can plz helo me how to resolve it.  i try chroot environment in 64 bit linux and try to run 32 bit but stil same error with sctpn :error while loading shared libraries: libsctp. so. 1 : cant'open etc etc

    plz gelp

  • 1994-08-01

    i have same issue in kali linux,  can you help me how to resolve it.  i try chroot environment in 64 bit linux and try to run 32 bit but stil same error with sctpn :error while loading shared libraries: libsctp. so. 1 : cant'open etc etc

    plz help