slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Error compiling slang2 on OS/2


Johannes Hromadka <dyane@xxxxxx> wrote:
>There was a undefined symbol _finite in slmath.o
>
>I removed #define HAVE_FINITE	1  and could compile slrn.

Ok, In slconfig.h, I will use:

#ifndef __os2__
# define HAVE_FINITE	1
#endif


With respect to the SLang_Error problem in slos2tty.c, instead of
using 

    if (SLang_Ignore_User_Abort == 0) _pSLang_Error = SL_USER_BREAK;

use:

    if (SLang_Ignore_User_Abort == 0) SLang_set_error (SL_USER_BREAK);

>But it does not work. slrn starts up and shows a blank sreen with a 
>white block cursor blinking in line 2 column 1 of the screen. It 
>responses to key inputs. I can exit from slrn.

I will look at the code some more but without access to OS/2, I cannot
do much.  You may have to run it in the debugger to find out what is
going on.

>Besides: linking of slrnpull fails with unresoved externs all starting 
>with _v_

I think that you need to add -lvideo to the slrnpull linker line in
the makefile.

Regarding sltest:
[...]
>Testing dollar strings ...Failed: %$1${}%
>Traceback: error
>Traceback: verror
>***string***: Run-Time Error
>Traceback: failed
>.\inc.sl: Run-Time Error
>  Local Variables:
>	String_Type s = "%$1${}%"
>.\dollar.sl:77: Run-Time Error
>.\dollar.sl:79: Run-Time Error

This is really bizarre.  In dollar.sl, change:

if ("%$1${}%"$ != "%Dollar-1%")
  failed ("%s","%$1${}%");

to 

$2 = "%$1${}%"$;
if ($2 != "%Dollar-1%")
  failed ("%s, found \"%s\"","%$1${}%", $2);

It should still fail this test but at least it will show how this is
being parsed.  After running the test again and sending me the result,
please make the following change to the push_dollar_string function in
slang.c: 

--- slang.c~	Mon Feb 21 13:35:50 2005
+++ slang.c	Sat Feb 26 12:18:43 2005
@@ -3206,6 +3206,14 @@
 	char *env;
 	int j;
 	
+	if (*name == 0)
+	  {	     
+	     if (-1 == SLang_push_string (name))
+	       goto free_return;
+	     
+	     continue;
+	  }
+
 	j = find_local_variable_index (name);
 	if (j != -1)
 	  {

Does the above change have any impact?

Thanks,
--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]