On Mon, 2007-03-05 at 11:41 +0000, Seb James wrote: > I have a symbol, 7I33_IO.sym which has four slots. When I run gsymcheck > on the symbol, I get the following errors which I don't understand. > > Can anyone help me here?
I've been looking at the code, specifically at s_check_slotdef() in s_check.c in the gsymcheck source and also at o_attrib_search_name() in the libgeda source. It seems that when s_check_slotdef() calls o_attrib_search_name() like this: slotdef = o_attrib_search_name(object_head, "slotdef", i); Then for i==4, rather than returning NULL as it should for the symbol which I attached, it returns the _first_ slotdef. if called with i==0 to 3, it works as expected, but for i==4 to 7 it returns slotdefs 1 to 4 rather than NULL. WHen called with i==8 it returns NULL. Odd. I'm going to try to see if this is a bug which has been fixed more recently than this 20061020 codebase. Seb > Seb James > > gsymcheck output: > -------------------- > [EMAIL PROTECTED] 11:38:16 sym]$ gsymcheck ./7I33_IO.sym -vv > gEDA/gsymcheck version 20061020 > gEDA/symcheck comes with ABSOLUTELY NO WARRANTY; see COPYING for more details. > This is free software, and you are welcome to redistribute it under certain > conditions; please see the COPYING file for more details. > > > Checking: /data/projects/allott_cnc/pedio/sym/7I33_IO.sym > ERROR: Found 5 slotdef= attributes. Expecting 4 slotdef= attributes > ERROR: Duplicate slot number in > slotdef=1:15,16,19,20,23,24,52,53,55,56,58,59,54,60,57,61,63,62,7,8,5,6,11,12 > ERROR: Found 6 slotdef= attributes. Expecting 4 slotdef= attributes > ERROR: Duplicate slot number in > slotdef=2:13,14,17,18,21,22,64,65,67,68,70,71,66,72,69,73,75,74,3,4,1,2,9,10 > ERROR: Found 7 slotdef= attributes. Expecting 4 slotdef= attributes > ERROR: Duplicate slot number in > slotdef=3:39,40,43,44,47,48,76,77,79,80,82,83,78,84,81,85,87,86,31,32,29,30,35,36 > ERROR: Found 8 slotdef= attributes. Expecting 4 slotdef= attributes > ERROR: Duplicate slot number in > slotdef=4:37,38,41,42,45,46,88,89,91,92,94,95,90,96,93,97,99,98,27,28,25,26,33,34 > 8 ERRORS found > > [EMAIL PROTECTED] 11:38:24 sym]$ > > > _______________________________________________ > geda-user mailing list > [email protected] > http://www.seul.org/cgi-bin/mailman/listinfo/geda-user _______________________________________________ geda-user mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

