I'm getting a massive list of errors when I try to compile "utf8.c"
> cc -c -I../.. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/ > glib/include -I/opt/local/include/dbus-1.0 -I/opt/local/lib/ > dbus-1.0/include -DCURDIR=src/lib -mcpu=7450 -fast -mpim-altivec - > maltivec -mabi=altivec -ggdb3 -W -Wall -Wformat=2 -pipe utf8.c > utf8.c:122: error: parse error before 'iconv_t' > utf8.c:122: warning: no semicolon at end of struct or union > utf8.c:126: error: parse error before '}' token > utf8.c:135: error: parse error before 'cd_locale_to_utf8' > utf8.c:135: warning: type defaults to 'int' in declaration of > 'cd_locale_to_utf8' > utf8.c:135: error: 'iconv_t' undeclared here (not in a function) > utf8.c:135: warning: data definition has no type or storage class > utf8.c:136: error: parse error before 'cd_utf8_to_locale' > utf8.c:136: warning: type defaults to 'int' in declaration of > 'cd_utf8_to_locale' > utf8.c:136: warning: data definition has no type or storage class > utf8.c:137: error: parse error before 'cd_utf8_to_filename' > utf8.c:137: warning: type defaults to 'int' in declaration of > 'cd_utf8_to_filename' > utf8.c:137: warning: data definition has no type or storage class > utf8.c:154: error: parse error before 'iconv_t' > utf8.c:154: warning: no semicolon at end of struct or union > utf8.c:158: error: parse error before '}' token > utf8.c:158: warning: type defaults to 'int' in declaration of > 'utf8_cd_tab' > utf8.c:160: warning: braces around scalar initializer > utf8.c:160: warning: (near initialization for 'utf8_cd_tab[0]') > utf8.c:160: warning: excess elements in scalar initializer > utf8.c:160: warning: (near initialization for 'utf8_cd_tab[0]') > utf8.c:160: warning: excess elements in scalar initializer > utf8.c:160: warning: (near initialization for 'utf8_cd_tab[0]') > utf8.c:160: warning: excess elements in scalar initializer > utf8.c:160: warning: (near initialization for 'utf8_cd_tab[0]') > utf8.c:161: warning: braces around scalar initializer > utf8.c:161: warning: (near initialization for 'utf8_cd_tab[1]') > utf8.c:161: warning: excess elements in scalar initializer > utf8.c:161: warning: (near initialization for 'utf8_cd_tab[1]') > utf8.c:161: warning: excess elements in scalar initializer > utf8.c:161: warning: (near initialization for 'utf8_cd_tab[1]') > utf8.c:161: warning: excess elements in scalar initializer > utf8.c:161: warning: (near initialization for 'utf8_cd_tab[1]') > utf8.c:162: warning: braces around scalar initializer > utf8.c:162: warning: (near initialization for 'utf8_cd_tab[2]') > utf8.c:162: warning: excess elements in scalar initializer > utf8.c:162: warning: (near initialization for 'utf8_cd_tab[2]') > utf8.c:162: warning: excess elements in scalar initializer > utf8.c:162: warning: (near initialization for 'utf8_cd_tab[2]') > utf8.c:162: warning: excess elements in scalar initializer > utf8.c:162: warning: (near initialization for 'utf8_cd_tab[2]') > utf8.c:163: warning: braces around scalar initializer > utf8.c:163: warning: (near initialization for 'utf8_cd_tab[3]') > utf8.c:163: warning: excess elements in scalar initializer > utf8.c:163: warning: (near initialization for 'utf8_cd_tab[3]') > utf8.c:163: warning: excess elements in scalar initializer > utf8.c:163: warning: (near initialization for 'utf8_cd_tab[3]') > utf8.c:163: warning: excess elements in scalar initializer > utf8.c:163: warning: (near initialization for 'utf8_cd_tab[3]') > utf8.c:164: warning: braces around scalar initializer > utf8.c:164: warning: (near initialization for 'utf8_cd_tab[4]') > utf8.c:164: warning: excess elements in scalar initializer > utf8.c:164: warning: (near initialization for 'utf8_cd_tab[4]') > utf8.c:164: warning: excess elements in scalar initializer > utf8.c:164: warning: (near initialization for 'utf8_cd_tab[4]') > utf8.c:164: warning: excess elements in scalar initializer > utf8.c:164: warning: (near initialization for 'utf8_cd_tab[4]') > utf8.c:165: warning: braces around scalar initializer > utf8.c:165: warning: (near initialization for 'utf8_cd_tab[5]') > utf8.c:165: warning: excess elements in scalar initializer > utf8.c:165: warning: (near initialization for 'utf8_cd_tab[5]') > utf8.c:165: warning: excess elements in scalar initializer > utf8.c:165: warning: (near initialization for 'utf8_cd_tab[5]') > utf8.c:165: warning: excess elements in scalar initializer > utf8.c:165: warning: (near initialization for 'utf8_cd_tab[5]') > utf8.c:166: warning: braces around scalar initializer > utf8.c:166: warning: (near initialization for 'utf8_cd_tab[6]') > utf8.c:166: warning: excess elements in scalar initializer > utf8.c:166: warning: (near initialization for 'utf8_cd_tab[6]') > utf8.c:166: warning: excess elements in scalar initializer > utf8.c:166: warning: (near initialization for 'utf8_cd_tab[6]') > utf8.c:166: warning: excess elements in scalar initializer > utf8.c:166: warning: (near initialization for 'utf8_cd_tab[6]') > utf8.c:168: warning: data definition has no type or storage class > utf8.c: In function 'utf8_name_to_cd': > utf8.c:178: error: duplicate case value > utf8.c:178: error: previously used here > utf8.c:180: error: request for member 'name' in something not a > structure or union > utf8.c:180: warning: passing argument 2 of 'strcmp' from > incompatible pointer type > utf8.c:181: error: request for member 'id' in something not a > structure or union > utf8.c:181: error: incompatible types in return > utf8.c: In function 'utf8_cd_to_name': > utf8.c:195: error: duplicate case value > utf8.c:195: error: previously used here > utf8.c:197: error: request for member 'id' in something not a > structure or union > utf8.c:197: warning: comparison between pointer and integer > utf8.c:198: error: request for member 'name' in something not a > structure or union > utf8.c:198: warning: return from incompatible pointer type > utf8.c: At top level: > utf8.c:205: error: parse error before 'utf8_cd_get' > utf8.c:206: warning: return type defaults to 'int' > utf8.c: In function 'utf8_cd_get': > utf8.c:211: error: request for member 'initialized' in something > not a structure or union > utf8.c:214: error: request for member 'initialized' in something > not a structure or union > utf8.c:214: warning: statement with no effect > utf8.c:215: error: request for member 'name' in something not a > structure or union > utf8.c:215: warning: statement with no effect > utf8.c:218: error: request for member 'cd' in something not a > structure or union > utf8.c:218: warning: implicit declaration of function 'iconv_open' > utf8.c:222: error: request for member 'cd' in something not a > structure or union > utf8.c:222: warning: return makes integer from pointer without a cast > utf8.c: In function 'primary_filename_charset': > utf8.c:247: error: dereferencing pointer to incomplete type > utf8.c:247: error: request for member 'name' in something not a > structure or union > utf8.c:249: error: dereferencing pointer to incomplete type > utf8.c:249: error: request for member 'name' in something not a > structure or union > utf8.c:249: warning: return from incompatible pointer type > utf8.c: In function 'primary_filename_charset_is_utf8': > utf8.c:261: error: dereferencing pointer to incomplete type > utf8.c:261: error: request for member 'is_utf8' in something not a > structure or union > utf8.c:261: warning: return makes integer from pointer without a cast > utf8.c: In function 'conv_to_utf8_new': > utf8.c:1276: error: dereferencing pointer to incomplete type > utf8.c:1276: warning: passing argument 1 of 'g_malloc' makes > integer from pointer without a cast > utf8.c:1277: error: dereferencing pointer to incomplete type > utf8.c:1277: error: request for member 'cd' in something not a > structure or union > utf8.c:1277: warning: statement with no effect > utf8.c:1278: error: dereferencing pointer to incomplete type > utf8.c:1278: error: request for member 'name' in something not a > structure or union > utf8.c:1278: warning: statement with no effect > utf8.c:1279: error: dereferencing pointer to incomplete type > utf8.c:1279: error: request for member 'is_utf8' in something not a > structure or union > utf8.c:1279: warning: statement with no effect > utf8.c:1280: error: dereferencing pointer to incomplete type > utf8.c:1280: error: request for member 'is_ascii' in something not > a structure or union > utf8.c:1280: warning: statement with no effect > utf8.c:1281: error: dereferencing pointer to incomplete type > utf8.c:1281: error: request for member 'is_iso8859' in something > not a structure or union > utf8.c:1281: warning: statement with no effect > utf8.c: In function 'locale_init_show_results': > utf8.c:1405: error: dereferencing pointer to incomplete type > utf8.c:1405: error: request for member 'name' in something not a > structure or union > utf8.c:1405: warning: format '%s' expects type 'char *', but > argument 4 has type 'int *' > utf8.c: In function 'conversion_init': > utf8.c:1413: error: parse error before 'cd_from_utf8' > utf8.c:1430: warning: comparison between pointer and integer > utf8.c:1432: warning: comparison between pointer and integer > utf8.c:1437: warning: comparison between pointer and integer > utf8.c:1449: error: 'cd_from_utf8' undeclared (first use in this > function) > utf8.c:1449: error: (Each undeclared identifier is reported only once > utf8.c:1449: error: for each function it appears in.) > utf8.c:1449: warning: statement with no effect > utf8.c:1454: warning: statement with no effect > utf8.c:1460: warning: statement with no effect > utf8.c:1468: error: dereferencing pointer to incomplete type > utf8.c:1468: error: request for member 'name' in something not a > structure or union > utf8.c:1468: warning: passing argument 2 of 'strcmp' from > incompatible pointer type > utf8.c:1468: error: dereferencing pointer to incomplete type > utf8.c:1468: error: request for member 'name' in something not a > structure or union > utf8.c:1468: warning: passing argument 2 of 'strcmp' from > incompatible pointer type > utf8.c:1469: error: dereferencing pointer to incomplete type > utf8.c:1469: error: request for member 'cd' in something not a > structure or union > utf8.c:1469: warning: statement with no effect > utf8.c:1470: error: dereferencing pointer to incomplete type > utf8.c:1470: error: request for member 'name' in something not a > structure or union > utf8.c:1470: warning: passing argument 1 of 'utf8_name_to_cd' from > incompatible pointer type > utf8.c:1471: error: dereferencing pointer to incomplete type > utf8.c:1471: error: request for member 'cd' in something not a > structure or union > utf8.c:1471: error: dereferencing pointer to incomplete type > utf8.c:1471: error: request for member 'name' in something not a > structure or union > utf8.c:1471: warning: passing argument 1 of 'utf8_name_to_cd' from > incompatible pointer type > utf8.c:1471: warning: statement with no effect > utf8.c:1472: error: dereferencing pointer to incomplete type > utf8.c:1472: error: request for member 'cd' in something not a > structure or union > utf8.c:1472: error: dereferencing pointer to incomplete type > utf8.c:1472: error: request for member 'name' in something not a > structure or union > utf8.c:1473: error: dereferencing pointer to incomplete type > utf8.c:1473: error: request for member 'name' in something not a > structure or union > utf8.c:1473: warning: format '%s' expects type 'char *', but > argument 4 has type 'int *' > utf8.c: At top level: > utf8.c:1614: error: parse error before 'cd' > utf8.c: In function 'complete_iconv': > utf8.c:1619: error: 'src' undeclared (first use in this function) > utf8.c:1620: error: 'dst_size' undeclared (first use in this function) > utf8.c:1620: error: 'dst' undeclared (first use in this function) > utf8.c:1622: error: 'cd' undeclared (first use in this function) > utf8.c:1630: warning: implicit declaration of function 'iconv' > utf8.c:1630: warning: comparison between signed and unsigned > utf8.c:1636: warning: passing argument 1 of 'strlen' from > incompatible pointer type > utf8.c:1657: warning: comparison between pointer and integer > utf8.c:1659: warning: statement with no effect > utf8.c:1680: error: 'abort_on_error' undeclared (first use in this > function) > utf8.c:1687: warning: comparison between signed and unsigned > utf8.c:1692: warning: comparison between pointer and integer > utf8.c:1694: warning: statement with no effect > utf8.c:1697: warning: comparison between pointer and integer > utf8.c:1698: error: wrong type argument to increment > utf8.c:1701: error: wrong type argument to increment > utf8.c:1701: warning: statement with no effect > utf8.c:1708: warning: comparison between pointer and integer > utf8.c: At top level: > utf8.c:1741: error: parse error before 'cd' > utf8.c: In function 'hyper_iconv': > utf8.c:1747: error: 'src' undeclared (first use in this function) > utf8.c:1748: error: 'dst_size' undeclared (first use in this function) > utf8.c:1748: error: 'dst' undeclared (first use in this function) > utf8.c:1750: error: 'cd' undeclared (first use in this function) > utf8.c:1750: error: 'abort_on_error' undeclared (first use in this > function) > utf8.c:1752: warning: statement with no effect > utf8.c:1753: warning: comparison between pointer and integer > utf8.c:1756: warning: statement with no effect > utf8.c:1759: warning: format '%s' expects type 'char *', but > argument 6 has type 'int *' > utf8.c:1759: warning: format '%s' expects type 'char *', but > argument 7 has type 'int *' > utf8.c:1764: warning: return from incompatible pointer type > utf8.c: At top level: > utf8.c:1971: error: parse error before 'cd' > utf8.c: In function 'convert_to_utf8': > utf8.c:1976: error: 'src' undeclared (first use in this function) > utf8.c:1978: error: 'cd' undeclared (first use in this function) > utf8.c:1980: warning: passing argument 3 of 'hyper_utf8_enforce' > from incompatible pointer type > utf8.c: In function 'unknown_to_utf8': > utf8.c:2218: error: parse error before 'cd' > utf8.c:2256: error: 'cd' undeclared (first use in this function) > utf8.c:2256: warning: statement with no effect > utf8.c:2259: warning: statement with no effect > utf8.c: At top level: > utf8.c:2295: error: parse error before 'cd' > utf8.c: In function 'convert_to_utf8_normalized': > utf8.c:2300: error: 'src' undeclared (first use in this function) > utf8.c:2302: error: 'cd' undeclared (first use in this function) > utf8.c:2304: warning: passing argument 3 of 'hyper_utf8_enforce' > from incompatible pointer type > utf8.c:2307: warning: comparison of distinct pointer types lacks a > cast > utf8.c:2310: error: 'norm' undeclared (first use in this function) > utf8.c:2310: error: incompatible type for argument 2 of > 'utf8_normalize' > utf8.c: In function 'filename_to_utf8_normalized': > utf8.c:2359: error: dereferencing pointer to incomplete type > utf8.c:2359: error: request for member 'is_utf8' in something not a > structure or union > utf8.c:2364: error: dereferencing pointer to incomplete type > utf8.c:2364: error: request for member 'is_ascii' in something not > a structure or union > utf8.c:2369: error: dereferencing pointer to incomplete type > utf8.c:2369: error: request for member 'is_iso8859' in something > not a structure or union > utf8.c:2381: error: dereferencing pointer to incomplete type > utf8.c:2381: error: request for member 'cd' in something not a > structure or union > make[3]: *** [utf8.o] Error 1 > make[2]: *** [lib/libshared.a] Error 2 > make[1]: *** [subdirs] Error 1 > make: *** [all] Error 2 > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gtk-gnutella-devel mailing list Gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel