SNNS 4.2 Bugfixes

Here you'll find bug and problem reports and, if available, fixes and workarounds for SNNS bugs that have been discovered or reported after releasing SNNS 4.2.

Bug index:

  1. SNNS aborts loading CFG-files
  2. Compile error: MAXFLOAT undefined
  3. X-Window controls don't work under KDE
  4. Compile error: parse error before '=' in function '__strcpy_small'
  5. SNNS crashes when saving very large (>9e4 samples) *.RES files
You can also report a bug.


Bug descriptions:

1. SNNS aborts loading CFG-file

When loading a network configuration file, SNNS aborts with error message:
   Read error in configuration file line 69 !

Bugfix courtesy of Joachim Danz:

In file xgui/sources/ui_config.c change line 495 from:
   for (i=0; (i<>UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS);
      i++) {

to:
   for (i=0; (i<UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS)
      && (i<noParams); i++) {


2. Compile error: MAXFLOAT undefined

On various Linux distributions compiler breaks with error message:
   MAXFLOAT undefined in symtab.c
(or something similar).

Bugfix courtesy of Marco Otilio Peņa Diaz, based on previous suggestions by Sylvia Wong, Tom Doris, James Holzwarth:

In symtab.c, after #include <math.h>, add
   #ifndef MAXFLOAT
     #ifdef FLT_MAX
       #define MAXFLOAT FLT_MAX
     #else
       #define MAXFLOAT 3.40282347e+38F
     #endif
   #endif

Bugfix for Mandrake Linux 8.2 courtesy of Peter Billen:

In symtab.c, after #include <math.h>, add
   #include <float.h>


3. X-Window controls don't work under KDE

If you are using KDE windows manager, the windows controls (buttons etc.) might not work in SNNS.

Workaround courtesy of Boris Hollas:

Please make sure that in the KDE Control Center, in branch Desktop -> Style, the option
   Apply fonts and color to non-KDE apps
is switched off.


4. Compile error: parse error before '=' in function '__strcpy_small'

On various Linux distributions (Redhat, Debian) compiler (gcc, egcs) breaks with error message:
gcc  -I../.. -I../../kernel/sources -I../../xgui/iconsXgui
-I/usr/X11R6/include   -g -O2  -c ui_confirmer.c
/usr/include/bits/string2.h: In function `__strcpy_small':
In file included from /usr/include/string.h:346,
                 from /usr/X11R6/include/X11/Intrinsic.h:66,
                 from ui.h:30,
                 from ui_confirmer.c:23:
/usr/include/bits/string2.h:405: warning: empty declaration
/usr/include/bits/string2.h:423: parse error before `='
/usr/include/bits/string2.h:426: parse error before `='
/usr/include/bits/string2.h:431: parse error before `='
/usr/include/bits/string2.h:436: parse error before `='
/usr/include/bits/string2.h:443: parse error before `='
/usr/include/bits/string2.h:445: parse error before `='
make[1]: *** [ui_confirmer.o] Error 1
make[1]: Leaving directory
`/home/tcoates/jaz/cvs-checkout/research/snns/SNNSv4.2/xgui/sources'
make: *** [compile-xgui] Error 2

Workaround courtesy of Bernhard Tschirren:

change the following in xgui/sources/ui.h:
   #ifndef __ui
   #define __ui
to
   #ifndef __ui_h
   #define __ui_h


5. SNNS crashes when saving very large (>9e4 samples) *.RES files

SNNS 4.2 at least on Sun Ultra 10 with Solaris, crashes with 'Segmentation Fault' or 'Arithmetic Error' during saving very large (over 90000 samples) result files.

Workaround:

Not known


Report a bug!