Re: mingw32 build feedback

"Rudy Taraschi" <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi John,

On Nov 6, 2007 5:49 PM, John E. Davis <[email protected]> wrote:

> > Question: Will SLRN_CONF_DIR accept "."  or "" to maintain prevous
> > behaviour?
>
> It may--- I have to review how it is currently used.

Looking at the source, it looks like "." will work, but "" will cause
slrnpull to look for "/slrnpull.conf"

> I am not too familiar with how dynamic linking works under windows.  I
> had the impression that dlls had to be on the executable path.  Also,
> slrn will eventually require an actual installed version of slang once
> the interpreter has been better integrated.

I'm not using the slang DLL because it makes like more complicated.
I statically link in slang and get a stand-alone executable.

> > Snag: while everything seems to run fine using an slrnpull spool, this
> > new version of slrn on Windows does not want to load Emmanuele Bassi's
> > latest identity.sl macro, but has no problem on Slackware.  It fails
> > in the first register_hook near the end of the file.  If I remove the
> > "1==", everything loads fine.  Other macros with similar register_hook
> > calls have no problem, only this one.  slrn does not spit out a
> > meaningful error message to narrow down the error, but if you send me
> > a patch with some debugging printfs or othe suggestions to get an
> > error message, I'll be happy to help you solve the problem since it
> > seems to not happen on linux.
>
> Look at my previous post.  There I suggested putting something like
>
>    open_log_file ("slang.log); _traceback = 1;
>
> at the top of the suspect file (identity.sl in this case).

Thanks for that.  The error I get is not very meaningful.
Here's the contents of "slang.log":

 Traceback: error
 .\identity-2.8.0.sl:548:<top-level>:Run-Time Error

Here's the offending lines in "identity.sl" (line 548 is the second
line):

 !if (1 == register_hook ("startup_hook","identity->retrieve_default"))
   error ("identity.sl: register_hook (startup_hook)");

Again, if I remove the "1 ==" , I get no error.  Strange.

R/T

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.