LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Unable to run clisp on Solarsis 10 with opencsw Solarsis Package (https://www.linuxquestions.org/questions/solaris-opensolaris-20/unable-to-run-clisp-on-solarsis-10-with-opencsw-solarsis-package-4175615835/)

Research_Assistant 10-17-2017 12:22 PM

Unable to run clisp on Solarsis 10 with opencsw Solarsis Package
 
I have tried to run the Clisp which is already available in opt/csw/bin path
I didn't manage to get it working.

Expected result:
To see a prompt, obviously.

Actual results (terminal output):
when I tried to run clisp using ./clisp inside the path opt/csw/bin, I get the below error.

# ./clisp
ld.so.1: lisp.run: fatal: libavcall.so.0: open failed: No such file or directory
Killed

I tried to list available library for the package clisp, I get the following but no libavcall.so.0 file is present.

# ldd clisp
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2

What I tried to fix the issue:
Updated the package, still throws the same error after running ./clisp command.

Added /opt/csw/bin to the path variable, still the error persists.

My Observations:
I tried to run ldd clisp command on the root path, I get

# ldd clisp
ldd: clisp: cannot open file: No such file or directory

When I tried to run the same command after entering into the path opt/csw/bin, I get
# ldd clisp
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2

I tried to follow the instructions given in the below link:
https://www.opencsw.org/package/clisp/

Did I miss anything to install clisp so I am getting this error? I am new to clisp. Any help to resolve the issue is appreciable.

Thanks in advance

jlliagre 10-17-2017 04:04 PM

Looks like a version issue.

You might try this hack :

Code:

ln -s /opt/csw/lib/libavcall.so.1 /opt/csw/lib/libavcall.so.0
ln -s /opt/csw/lib/libcallback.so.1 /opt/csw/lib/libcallback.so.0


Research_Assistant 10-18-2017 10:47 AM

Thanks for looking into the problem. I couldn't find either of the files libavcall.so.1 and libcallback.so.1 in /opt/csw/lib path.

To understand the issue in depth. I used truss command in /opt/csw/bin and got the below logs:

# truss -f -t stat,open ./clisp

10700: stat64("/opt/csw/bin/clisp", 0x08047A30) = 0
10700: open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
10700: stat64("/opt/csw/lib/libc.so.1", 0x080472E0) Err#2 ENOENT
10700: stat64("/lib/libc.so.1", 0x080472E0) = 0
10700: open("/lib/libc.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/clisp-2.47/base/lisp.run", 0x08047970) = 0
10700: open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
10700: stat64("/opt/csw/lib/libreadline.so.5", 0x08047220) = 0
10700: open("/opt/csw/lib/libreadline.so.5", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libncurses.so.5", 0x08047220) = 0
10700: open("/opt/csw/lib/libncurses.so.5", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libm.so.1", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libm.so.1", 0x08047220) = 0
10700: open("/lib/libm.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libnsl.so.1", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libnsl.so.1", 0x08047220) = 0
10700: open("/lib/libnsl.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libsocket.so.1", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libsocket.so.1", 0x08047220) = 0
10700: open("/lib/libsocket.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libintl.so.3", 0x08047220) = 0
10700: open("/opt/csw/lib/libintl.so.3", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libiconv.so.2", 0x08047220) = 0
10700: open("/opt/csw/lib/libiconv.so.2", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libc.so.1", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libc.so.1", 0x08047220) = 0
10700: open("/lib/libc.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libdl.so.1", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libdl.so.1", 0x08047220) = 0
10700: open("/lib/libdl.so.1", O_RDONLY) = 3
10700: stat64("/opt/csw/lib/libavcall.so.0", 0x08047220) Err#2 ENOENT
10700: stat64("/lib/libavcall.so.0", 0x08047220) Err#2 ENOENT
10700: stat64("/usr/lib/libavcall.so.0", 0x08047220) Err#2 ENOENT
ld.so.1: lisp.run: fatal: libavcall.so.0: open failed: No such file or directory


I see that Clisp is expecting libavcall.so.0 in the three paths as mentioned in above logs but what I found is libavl.so.1 file, instead of libavcall.so.0 file in all the three mentioned paths.

I wonder why libavcall.so.0 file is not present though I updated the package.

jlliagre 10-18-2017 05:43 PM

You need to install the CSWlibavcall1 and CSWlibcallback1 packages.

Research_Assistant 10-19-2017 09:47 AM

Thank you so much for the help. Issue resolved.

I have installed libavcall1 file but the file gave me version 1.0.0 where clisp is expecting 0 version. So I linked the files:

ln -s /opt/csw/lib/libavcall.so.1.0.0 /opt/csw/lib/libavcall.so.0
ln -s /opt/csw/lib/libcallback.so.1.0.0 /opt/csw/lib/libcallback.so.0


This has resolved my issue. Thanks again.


All times are GMT -5. The time now is 06:09 PM.