- Subject: [slang-users] Error On IMPORTING Modules.
- From: Ben Duncan <ben@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 09 Jun 2005 16:37:02 -0500
I am getting now, and error message about my SLAG modules not matching
the version number SO I changed check_api_version to this:
static int check_api_version (char *file, int api_version)
{
char buffer [80] ;
if (api_version/10000 == SLANG_VERSION/10000)
return 0;
sprintf(buffer,"%s av = %d sv = %d", file, api_version/10000 , SLANG_VERSION/10000);
SLang_verror (SL_Import_Error, "Module %s is incompatible with this version of S-Lang",
buffer);
return -1;
}
Here is the results:
Module /usr/lib/slang/v2/modules/slagmenu-module.so av = 0 sv = 2 is incompatible with this
version of S-Lang
Traceback: import
./menu.sl:6:<top-level>:Import Error
Here is the /usr/lib/slang/v2/modules directory list:
drwxr-xr-x 3 root root 4096 Apr 29 15:17 ../
-rw-r--r-- 1 root root 29756 Jun 9 16:37 fcntl-module.so
-rw-r--r-- 1 root root 33311 Jun 9 16:37 pcre-module.so
-rw-r--r-- 1 root root 56431 Jun 9 16:37 png-module.so
-rw-r--r-- 1 root root 32275 Jun 9 16:37 select-module.so
-rwxr-xr-x 1 root root 59405 Jun 9 16:37 slagmenu-module.so*
-rw-r--r-- 1 root root 31803 Jun 9 16:37 slsmg-module.so
-rw-r--r-- 1 root root 39451 Jun 9 16:37 termios-module.so
-rw-r--r-- 1 root root 26193 Jun 9 16:37 varray-module.so
I have deleted and re-compiled my SLAG module several times.
What gives ?
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]