Re: Support for Radeon 9100 IGP-integrated 3c920?

Ian Anderson <[email protected]> Mon, 15 Dec 2003 18:16:25 -0500
Newsgroups gmane.linux.drivers.vortex.devel
Message-ID <1071530185.4550.10.camel@dhcppc1>
There is a hole in my bucket.......any tips for getting it to compile
with gcc 3.3.2 under Fedora Core 1?

[root@dhcppc1 ijdander]# gcc -O -Wall -o vortex-diag vortex-diag.c
vortex-diag.c:44:1: missing terminating " character
vortex-diag.c:46: error: syntax error before "Show"
vortex-diag.c:53: error: stray '\' in program
vortex-diag.c:53:48: missing terminating " character
vortex-diag.c:58:46: missing terminating ' character
vortex-diag.c:58:46: warning: character constant too long for its type
vortex-diag.c:59: error: syntax error at '#' token
vortex-diag.c:61:59: warning: multi-character character constant
vortex-diag.c:61:69: warning: multi-character character constant
vortex-diag.c:78:1: missing terminating " character
In file included from vortex-diag.c:85:
/usr/include/unistd.h:312: error: syntax error before "size_t"
/usr/include/unistd.h:318: error: syntax error before "size_t"
/usr/include/unistd.h:448: error: syntax error before "size_t"
In file included from vortex-diag.c:85:
/usr/include/unistd.h:538: error: syntax error before "confstr"
/usr/include/unistd.h:538: error: syntax error before "size_t"
/usr/include/unistd.h:707: error: syntax error before "size_t"
/usr/include/unistd.h:732: error: syntax error before "size_t"
In file included from vortex-diag.c:85:
/usr/include/unistd.h:783: error: syntax error before "size_t"
/usr/include/unistd.h:790: error: syntax error before "size_t"
/usr/include/unistd.h:800: error: syntax error before "size_t"
/usr/include/unistd.h:801: error: syntax error before "size_t"
/usr/include/unistd.h:818: error: syntax error before "size_t"
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from vortex-diag.c:86:
/usr/include/gconv.h:72: error: syntax error before "size_t"
/usr/include/gconv.h:88: error: syntax error before "size_t"
/usr/include/gconv.h:97: error: syntax error before "size_t"
/usr/include/gconv.h:174: error: syntax error before "size_t"
/usr/include/gconv.h:177: error: syntax error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from vortex-diag.c:86:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /usr/include/stdio.h:72,
                 from vortex-diag.c:86:
/usr/include/libio.h:351: error: syntax error before "size_t"
/usr/include/libio.h:360: error: syntax error before "size_t"
/usr/include/libio.h:468: error: syntax error before "_IO_sgetn"
/usr/include/libio.h:468: error: syntax error before "size_t"
In file included from vortex-diag.c:86:
/usr/include/stdio.h:304: error: syntax error before "size_t"
/usr/include/stdio.h:311: error: syntax error before "size_t"
/usr/include/stdio.h:353: error: syntax error before "size_t"
/usr/include/stdio.h:357: error: syntax error before "size_t"
/usr/include/stdio.h:605: error: syntax error before "fread"
/usr/include/stdio.h:605: error: syntax error before "size_t"
/usr/include/stdio.h:611: error: syntax error before "fwrite"
/usr/include/stdio.h:611: error: syntax error before "size_t"
/usr/include/stdio.h:633: error: syntax error before "fread_unlocked"
/usr/include/stdio.h:633: error: syntax error before "size_t"
/usr/include/stdio.h:635: error: syntax error before "fwrite_unlocked"
/usr/include/stdio.h:635: error: syntax error before "size_t"
In file included from vortex-diag.c:87:
/usr/include/stdlib.h:137: error: syntax error before
"__ctype_get_mb_cur_max"
In file included from /usr/include/sys/types.h:266,
                 from /usr/include/stdlib.h:416,
                 from vortex-diag.c:87:
/usr/include/bits/pthreadtypes.h:48: error: syntax error before "size_t"
/usr/include/bits/pthreadtypes.h:51: error: syntax error before
"__stacksize"
In file included from vortex-diag.c:87:
/usr/include/stdlib.h:433: error: syntax error before "size_t"
/usr/include/stdlib.h:462: error: syntax error before "size_t"
/usr/include/stdlib.h:556: error: syntax error before "__size"
/usr/include/stdlib.h:558: error: syntax error before "__nmemb"
/usr/include/stdlib.h:567: error: syntax error before "size_t"
In file included from /usr/include/stdlib.h:578,
                 from vortex-diag.c:87:
/usr/include/alloca.h:33: error: syntax error before "__size"
In file included from vortex-diag.c:87:
/usr/include/stdlib.h:583: error: syntax error before "__size"
/usr/include/stdlib.h:739: error: syntax error before "size_t"
/usr/include/stdlib.h:743: error: syntax error before "size_t"
/usr/include/stdlib.h:812: error: syntax error before "size_t"
/usr/include/stdlib.h:815: error: syntax error before "size_t"
/usr/include/stdlib.h:819: error: syntax error before "size_t"
/usr/include/stdlib.h:822: error: syntax error before "size_t"
/usr/include/stdlib.h:830: error: syntax error before "size_t"
/usr/include/stdlib.h:834: error: syntax error before "size_t"
/usr/include/stdlib.h:841: error: syntax error before "mbstowcs"
/usr/include/stdlib.h:842: error: syntax error before "size_t"
/usr/include/stdlib.h:844: error: syntax error before "wcstombs"
/usr/include/stdlib.h:845: error: syntax error before "size_t"
In file included from vortex-diag.c:90:
/usr/include/string.h:39: error: syntax error before "size_t"
/usr/include/string.h:42: error: syntax error before "size_t"
/usr/include/string.h:51: error: syntax error before "size_t"
/usr/include/string.h:58: error: syntax error before "size_t"
/usr/include/string.h:61: error: syntax error before "size_t"
/usr/include/string.h:65: error: syntax error before "size_t"
/usr/include/string.h:86: error: syntax error before "size_t"
/usr/include/string.h:93: error: syntax error before "size_t"
/usr/include/string.h:99: error: syntax error before "size_t"
/usr/include/string.h:106: error: syntax error before "strxfrm"
/usr/include/string.h:107: error: syntax error before "size_t"
/usr/include/string.h:176: error: syntax error before "strcspn"
/usr/include/string.h:180: error: syntax error before "strspn"
/usr/include/string.h:230: error: syntax error before "strlen"
/usr/include/string.h:248: error: syntax error before "size_t"
/usr/include/string.h:253: error: syntax error before "size_t"
/usr/include/string.h:257: error: syntax error before "size_t"
/usr/include/string.h:260: error: syntax error before "size_t"
/usr/include/string.h:263: error: syntax error before "size_t"
/usr/include/string.h:291: error: syntax error before "size_t"
In file included from /usr/include/string.h:375,
                 from vortex-diag.c:90:
/usr/include/bits/string2.h:919: error: syntax error before
"__strcspn_c1"
/usr/include/bits/string2.h:921: error: syntax error before
"__strcspn_c1"
/usr/include/bits/string2.h: In function `__strcspn_c1':
/usr/include/bits/string2.h:923: error: syntax error before "__result"
/usr/include/bits/string2.h:924: error: `__result' undeclared (first use
in this function)
/usr/include/bits/string2.h:924: error: (Each undeclared identifier is
reported only once
/usr/include/bits/string2.h:924: error: for each function it appears
in.)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:929: error: syntax error before
"__strcspn_c2"
/usr/include/bits/string2.h:932: error: syntax error before
"__strcspn_c2"
/usr/include/bits/string2.h: In function `__strcspn_c2':
/usr/include/bits/string2.h:934: error: syntax error before "__result"
/usr/include/bits/string2.h:935: error: `__result' undeclared (first use
in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:941: error: syntax error before
"__strcspn_c3"
/usr/include/bits/string2.h:944: error: syntax error before
"__strcspn_c3"
/usr/include/bits/string2.h: In function `__strcspn_c3':
/usr/include/bits/string2.h:947: error: syntax error before "__result"
/usr/include/bits/string2.h:948: error: `__result' undeclared (first use
in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:976: error: syntax error before
"__strspn_c1"
/usr/include/bits/string2.h:978: error: syntax error before
"__strspn_c1"
/usr/include/bits/string2.h: In function `__strspn_c1':
/usr/include/bits/string2.h:980: error: syntax error before "__result"
/usr/include/bits/string2.h:982: error: `__result' undeclared (first use
in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:987: error: syntax error before
"__strspn_c2"
/usr/include/bits/string2.h:990: error: syntax error before
"__strspn_c2"
/usr/include/bits/string2.h: In function `__strspn_c2':
/usr/include/bits/string2.h:992: error: syntax error before "__result"
/usr/include/bits/string2.h:994: error: `__result' undeclared (first use
in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:999: error: syntax error before
"__strspn_c3"
/usr/include/bits/string2.h:1002: error: syntax error before
"__strspn_c3"
/usr/include/bits/string2.h: In function `__strspn_c3':
/usr/include/bits/string2.h:1004: error: syntax error before "__result"
/usr/include/bits/string2.h:1006: error: `__result' undeclared (first
use in this function)
/usr/include/bits/string2.h: In function `__strpbrk_c2':
/usr/include/bits/string2.h:1041: error: `size_t' undeclared (first use
in this function)
/usr/include/bits/string2.h:1041: error: syntax error before "__s"
/usr/include/bits/string2.h: In function `__strpbrk_c3':
/usr/include/bits/string2.h:1054: error: `size_t' undeclared (first use
in this function)
/usr/include/bits/string2.h:1054: error: syntax error before "__s"
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1235: error: syntax error before "size_t"
vortex-diag.c: In function `scan_proc_pci':
vortex-diag.c:458: error: `size_t' undeclared (first use in this
function)
vortex-diag.c:458: error: syntax error before "__s1_len"
vortex-diag.c:458: error: `__s1_len' undeclared (first use in this
function)
vortex-diag.c:458: error: `__s2_len' undeclared (first use in this
function)
vortex-diag.c:458: error: syntax error before "const"
vortex-diag.c:458: error: syntax error before "const"
vortex-diag.c:458: warning: left-hand operand of comma expression has no
effect
vortex-diag.c:458: warning: left-hand operand of comma expression has no
effect
vortex-diag.c:458: error: syntax error before "const"
vortex-diag.c:458: error: syntax error before "const"
vortex-diag.c:458: error: syntax error before ')' token
vortex-diag.c:458: error: `__result' undeclared (first use in this
function)
vortex-diag.c:458: error: syntax error before ')' token
vortex-diag.c:458: error: `__s2' undeclared (first use in this function)
vortex-diag.c:458: error: syntax error before ')' token
vortex-diag.c:458: error: `i' undeclared (first use in this function)
vortex-diag.c:458: error: syntax error before ')' token
vortex-diag.c:458: error: `__s1' undeclared (first use in this function)
vortex-diag.c:458: error: syntax error before ')' token
vortex-diag.c:438: warning: unused variable `vendor_id'
vortex-diag.c:438: warning: unused variable `device_id'
vortex-diag.c:427: warning: unused variable `port_base'
vortex-diag.c:458: warning: statement with no effect
vortex-diag.c:458: warning: statement with no effect
vortex-diag.c:463: error: continue statement not within a loop
vortex-diag.c: At top level:
vortex-diag.c:465: error: syntax error before "continue"
vortex-diag.c:474: error: `i' undeclared here (not in a function)
vortex-diag.c:474: error: syntax error before '.' token
vortex-diag.c:481: warning: type defaults to `int' in declaration of
`chip_idx'
vortex-diag.c:481: error: `i' undeclared here (not in a function)
vortex-diag.c:481: warning: data definition has no type or storage class
vortex-diag.c:482: warning: type defaults to `int' in declaration of
`state'
vortex-diag.c:482: warning: data definition has no type or storage class
vortex-diag.c:483: error: syntax error before '}' token
vortex-diag.c:488: warning: type defaults to `int' in declaration of
`state'
vortex-diag.c:488: error: redefinition of `state'
vortex-diag.c:482: error: `state' previously defined here
vortex-diag.c:488: warning: data definition has no type or storage class
vortex-diag.c:489: error: syntax error before "if"
vortex-diag.c:503: warning: type defaults to `int' in declaration of
`fclose'
vortex-diag.c:503: warning: parameter names (without types) in function
declaration
vortex-diag.c:503: warning: data definition has no type or storage class
vortex-diag.c:504: error: syntax error before "return"
/usr/include/gconv.h:176: warning: array `__data' assumed to have one
element

On Mon, 2003-12-15 at 18:00, Donald Becker wrote:
> On Mon, 15 Dec 2003, Ian Anderson wrote:
> 
> > My diff:
> > 618d617
> > <       { 0x10B7, 0x9202, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_920B_EMB_WNM
> 
> Before doing this, send us the output of
>   vortex-diag -p ... -t ...
> 
> That will confirm that this device really has a 3com architecture.
-- 
Ian

_______________________________________________
vortex mailing list
[email protected]
http://www.scyld.com/mailman/listinfo/vortex