Lisp HUG Maillist Archive

LispWorks Personal on FreeBSD 7-STABLE

I have installed LispWorks 5.1 on FreeBSD 7-STABLE, after installing
the `misc/compat5x' and `x11-toolkits/open-motif' (open-motif-2.2.3_5)
ports.  The LW executable is able to find these libraries, but I am
unable to run it.  The `COMPAT_FREEBSD5' option is enabled in the
kernel.  Any suggestions would be appreciated.

TIA,
Raghavendra.

----------------------------------------------------------------------

# pkg_add -p /opt lispworks-personal-5.1.tgz

% ldd /opt/bin/lispworks-personal-5-1-1-x86-freebsd
/opt/bin/lispworks-personal-5-1-1-x86-freebsd:
  libutil.so.4 => /usr/local/lib/compat/libutil.so.4
  (0x28081000)
  libm.so.3 => /usr/local/lib/compat/libm.so.3 (0x2808d000)
  libpthread.so.1 => /usr/local/lib/compat/libpthread.so.1 (0x280a8000)
  libc.so.5 => /usr/local/lib/compat/libc.so.5 (0x280cc000)

% lispworks-personal-5-1-1-x86-freebsd
LispWorks(R): The Common Lisp Programming Environment Personal Edition
Copyright (C) 1987-2008 LispWorks Ltd.  All rights reserved.
Version 5.1.1
Saved by LispWorks as lispworks-personal-5-1-1-x86-freebsd, at 13 May 2008 17:17
User raghu on griffin.campus.hri
Warning: 
Error of type X-LIBRARY::X-IO-ERROR in X-IO-ERROR callback routine X-LIBRARY::DEFAULT-X-IO-ERROR-HANDLER.
"
X IO Error (35) on display #<X-LIBRARY:DISPLAY ":0.0" = #x08098800>"
#<The COMMON-LISP-USER package, 0/4 internal, 0/4 external>
#<MP:PROCESS Name "Initializer process" Priority 0 State "Running">



Call to X-UTILITIES:MAYBE-INVOKE-DEBUGGER (offset 39)
  CONDITION                   : #<X-LIBRARY::X-IO-ERROR 3169E5FF>
  X-UTILITIES:PRINT-BACKTRACE : T
  RESTART                     : X-UTILITIES::IGNORE-HANDLER-ERROR
  X-UTILITIES::HANDLE-ERROR   : T
  X-UTILITIES::BREAK-OF-MP    : NIL

----------------------------------------------------------------------

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


Re: LispWorks Personal on FreeBSD 7-STABLE

Unable to parse email body. Email id is 8424

Re: LispWorks Personal on FreeBSD 7-STABLE

At 2008-07-25T14:23:35+01:00, Martin Simmons wrote:

> We found this problem recently and have just created a Lisp Knowledgebase
> article showing how to solve it.  Please see
>
> http://www.lispworks.com/kb/67634814074628b180257490005cb9d3.html
>
> for more details.

Thank you very much.

Raghavendra.

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


Re: LispWorks Personal on FreeBSD 7-STABLE

At 2008-07-25T14:23:35+01:00, Martin Simmons wrote:

> We found this problem recently and have just created a Lisp Knowledgebase
> article showing how to solve it.  Please see
>
> http://www.lispworks.com/kb/67634814074628b180257490005cb9d3.html

Just to report that the procedure described above works.  The only
thing is that `libX11.so.6' in the package `compatXm-6.3_1' requires
the library `librpcsvc.so.3' [see session transcript below], which is
provided by the port `misc/compat6x'.  So the installation sequence
on FreeBSD 7 seems to be:

1. Ensure that the kernel options `COMPAT_FREEBSD5' and
   `COMPAT_FREEBSD6' are on.

2. Install the ports `misc/compat5x' and `misc/compat6x'.

3. Install the package `compatXm-6.3_1.tgz'.

4. Install the package `lispworks-personal-5.1.tgz'.

Perhaps a note on this in [Release Notes and Installation Guide,
Chapter 5], or in the above KB article, would be useful.

Thanks again,
Raghavendra.

----------------------------------------------------------------------

# pkg_add -p /opt compatXm-6.3_1.tgz

# pkg_add -p /opt lispworks-personal-5.1.tgz

% env LD_LIBRARY_PATH=/opt/lib/compatX11 /opt/bin/lispworks-personal-5-1-1-x86-freebsd

LispWorks(R): The Common Lisp Programming Environment Personal Edition
Copyright (C) 1987-2008 LispWorks Ltd.  All rights reserved.
Version 5.1.1
Saved by LispWorks as lispworks-personal-5-1-1-x86-freebsd, at 13 May 2008 17:17
User raghu on griffin.campus.hri

Error: Could not register handle for external module X-UTILITIES::CAPIX11:
 Shared object "librpcsvc.so.3" not found, required by "libX11.so.6".
  1 (abort) Quit process.

Type :b for backtrace, :c <option number> to proceed,  or :? for other options

CL-USER 1 : 1 > 

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


Re: LispWorks Personal on FreeBSD 7-STABLE

At 2008-07-26T12:00:35+05:30, N. Raghavendra wrote:

> Just to report that the procedure described above works.  The only
> thing is that `libX11.so.6' in the package `compatXm-6.3_1' requires
> the library `librpcsvc.so.3'

One minor problem is that the LD_LIBRARY_PATH setting is passed down
to all child processes of `lispworks-personal-5-1-1-x86-freebsd'.  For
instance, whenever a browser is invoked from a `Help' menu item in
LispWorks, it tries to load the `compatX11' libraries instead of the
system libraries, and fails.  It isn't much of a problem, because I
can use a browser from outside LispWorks to view the manuals.
However, I'd appreciate suggestions for a solution.

Raghavendra.

----------------------------------------------------------------------

% env LD_LIBRARY_PATH=/opt/lib/compatX11 /opt/bin/lispworks-personal-5-1-1-x86-freebsd

[Help -> Manuals -> LispWorks Reference Manual -> OK]

/usr/local/lib/linux-firefox/firefox-bin: error while loading shared libraries: /opt/lib/compatX11/libX11.so.6: ELF file OS ABI invalid

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


Re: LispWorks Personal on FreeBSD 7-STABLE

At 2008-07-26T14:15:15+05:30, N. Raghavendra wrote:

> One minor problem is that the LD_LIBRARY_PATH setting is passed down
> to all child processes of `lispworks-personal-5-1-1-x86-freebsd'.  For
> instance, whenever a browser is invoked from a `Help' menu item in
> LispWorks, it tries to load the `compatX11' libraries instead of the
> system libraries, and fails.

A shell wrapper for the browser does the job:

% echo ${path}
/opt/bin /usr/local/bin /usr/local/sbin /bin /sbin /usr/bin /usr/games /usr/sbin /home/raghu/bin

% cat /opt/bin/firefox
#!/bin/sh
unset LD_LIBRARY_PATH
exec /usr/local/bin/linux-firefox "$@"

With that my LW installation seems to be fully working.

Raghavendra.

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


Re: LispWorks Personal on FreeBSD 7-STABLE

Unable to parse email body. Email id is 8435

Re: LispWorks Personal on FreeBSD 7-STABLE

Unable to parse email body. Email id is 8436

Updated at: 2020-12-10 08:42 UTC