Lisp HUG Maillist Archive

Another DELIVER warning

Hi!

When I run a delivered CAPI program on another machine, I get a
warning

``Warning: Unable to find default fallback resources for application
  class Lispworks´´

According to strace, it tries to open

/usr/local/lib/LispWorks/lib/4-2-0-0/app-defaults/Lispworks

(but fails, of course).  Can I disable this behavior somehow?

Regards,
-- 
Nils Gösche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x0655CFA0


Unable to render article 763 because of ":DEFAULT stream decoding error on #<SB-SYS:FD-STREAM for \"socket 192.168.43.216:64954, peer: 116.202.254.214:119\" {10033E0533}>: the octet sequence #(180) cannot be decoded." error

Re: Another DELIVER warning

davef@xanalys.com writes:

>    When I run a delivered CAPI program on another machine, I get a
>    warning
> 
>    ``Warning: Unable to find default fallback resources for application
>      class Lispworks´´
> 
>    According to strace, it tries to open
> 
>    /usr/local/lib/LispWorks/lib/4-2-0-0/app-defaults/Lispworks

> One solution is to have a resources file on the target machine as
> well, the idea is that the fallback resources are machine specific
> so won't you need that anyway? A different application class (for a
> different filename) can be specified in the call that opens the
> display e.g.
> 
> (capi:display (make-instance 'capi:interface) 
> 	      :screen '(:application-class "Nils"))

Seems to work fine; setting

   capi-motif-library:*default-application-class*

works, too.  However, the warning is still omitted unless I put the
file `Nils´ contaning the resources into the LispWorks tree.
According to strace, the warning is printed immediately after the file
isn't found in the LispWorks tree, even though my $HOME directory and
/usr/X11R6/lib/X11/app-defaults are also tried.

Not that this were terribly important, but maybe something for a
future version... :-)

> Another approach, if you want to hardwire the fallbacks, is to read
> the fallback resources at build time, and pass them when you open
> the display at runtime.
> 
> ;; at build time
> (setq *fallback-resources*  (xt-lib::fallback-resources "Lispworks"))
> 
> ;; at run time
> (capi:display (make-instance 'capi:interface) 
> 	      :screen `(:fallback-resources ,*fallback-resources*))
> 
> 
> Does that work for you?

Yes, this one works fine, thanks!

Regards,
-- 
Nils Gösche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x0655CFA0


Re: Another DELIVER warning

I <cartan@cartan.de> wrote:

> However, the warning is still omitted

Uhm, make that ``emitted´´ :-)

Regards,
-- 
Nils Gösche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x0655CFA0


Updated at: 2020-12-10 09:01 UTC