🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #186806

Re: [slrn] can't use require("gslrand") in a slrn macro file?

#186806
From: Adam Funk
Date: Wed, 21 Jun 2006 13:50
40 lines
2012 bytes
On 2006-06-20, John E. Davis <davis@space.mit.edu> wrote:

> The file require.sl is distributed with slang and is installed as part
> of slsh.  I suggest that you put
>
>    autoload ("require", "/path/to/require.sl");

That works, but I still can't get gslrand to load.


I discovered using 

   printf("\n--->%s\n", get_slang_load_path());

that slrn has an empty slang_load_path, which I've changed to
"/usr/share/slsh/local-packages:", but if I try 

  require("gslrand");

it seems to look for it in the pwd:

  loading /home/adam/
  ***Warning: feature gslrand not provided by gslrand
  rng_alloc is undefined

whereas with 

  import("gslrand");

I get this error:

  Error linking to /usr/lib/slang/v2/modules/gslrand-module.so: /usr/lib/slang/v2/modules/gslrand-module.so: undefined symbol: slgsl_reset_errors

It works in slsh, so I think slrn configures the s-lang interpreter in
a peculiar way.  Do you have any suggestions for forcing it to
co-operate?


Thanks,
Adam
Technical Details
Message-ID: <sevnm3-j3u.ln1@news.ducksburg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <keglm3-ug1.ln1@news.ducksburg.com> <slrne9ghpk.2us.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <sevnm3-j3u.ln1@news.ducksburg.com>
Subject: Re: [slrn] can't use require("gslrand") in a slrn macro file?
Date: Wed, 21 Jun 2006 14:50:52 +0100
From: Adam Funk <a24061@yahoo.com>
References: <keglm3-ug1.ln1@news.ducksburg.com> <slrne9ghpk.2us.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 40
X-Trace: individual.net 4wR6/EJwZzBq2fm6kQ8Oaw7z5srtG2je3BRGrfkFbmpSPik09R
X-Orig-Path: news.ducksburg.com!news
User-Agent: slrn/0.9.8.1pl1 (Debian)