from: eric.oyen@cox.net
the following occurs when I attempt to make under the above
mentioned kernel using gcc-3.3.2-6mdk:
cd as10k1 && make
make[1]: Entering directory /root/temp/emu-tools-0.9.4/as10k1'
cc -M *.c -W -Wall > .depend
as10k1.c:42:13: missing terminating " character
as10k1.c:46:22: missing terminating ' character
as10k1.c:68:1: missing terminating " character
make[1]: *** [dep] Error 1
make[1]: Leaving directory
/root/temp/emu-tools-0.9.4/as10k1'
make: *** [As10k1] Error 2
I attempt to correct the problem by commenting out the material
to be quoted and the following results:
as10k1.c:72: error: parse error before "void"
as10k1.c:84: error: parse error before '-' token
as10k1.c:84: warning: type defaults to int' in declaration of
exit'
as10k1.c:84: error: conflicting types for exit'
/usr/include/stdlib.h:612: error: previous declaration of
exit'
as10k1.c:84: warning: data definition has no type or storage
class
as10k1.c:86: warning: type defaults to int' in declaration of
output'
as10k1.c:86: error: conflicting types for output'
as10k1.c:35: error: previous declaration of
output'
as10k1.c:86: error: argv' undeclared here (not in a function)
as10k1.c:86: error:
i' undeclared here (not in a function)
as10k1.c:86: warning: data definition has no type or storage
class
as10k1.c:87: error: parse error before "break"
as10k1.c:91: error: parse error before string constant
as10k1.c:91: warning: type defaults to int' in declaration of
printf'
as10k1.c:91: warning: conflicting types for built-in function printf'
as10k1.c:91: warning: data definition has no type or storage
class
as10k1.c:96: error: parse error before string constant
as10k1.c:96: warning: type defaults to
int' in declaration of
printf'
as10k1.c:96: warning: data definition has no type or storage
class
as10k1.c:105: error: parse error before string constant
as10k1.c:105: warning: type defaults to
int' in declaration of
printf'
as10k1.c:105: warning: data definition has no type or storage
class
as10k1.c:109: error: parse error before string constant
as10k1.c:109: warning: type defaults to
int' in declaration of
printf'
as10k1.c:109: warning: data definition has no type or storage
class
as10k1.c:113: error: parse error before string constant
as10k1.c:113: warning: type defaults to
int' in declaration of
printf'
as10k1.c:113: warning: data definition has no type or storage
class
as10k1.c:117: error: parse error before string constant
as10k1.c:117: warning: type defaults to
int' in declaration of
printf'
as10k1.c:117: warning: data definition has no type or storage
class
as10k1.c:122: error: parse error before '-' token
as10k1.c:122: warning: type defaults to
int' in declaration of
exit'
as10k1.c:122: warning: data definition has no type or storage
class
as10k1.c:126: error: parse error before string constant
as10k1.c:126: warning: type defaults to
int' in declaration of
printf'
as10k1.c:126: warning: data definition has no type or storage
class
as10k1.c:134: error: parse error before '-' token
as10k1.c:134: warning: type defaults to
int' in declaration of
exit'
as10k1.c:134: warning: data definition has no type or storage
class
as10k1.c:136: warning: type defaults to
int' in declaration of
listing'
as10k1.c:136: error: conflicting types for
listing'
as10k1.c:35: error: previous declaration of listing'
as10k1.c:136: error:
argv' undeclared here (not in a function)
as10k1.c:136: error: i' undeclared here (not in a function)
as10k1.c:136: warning: data definition has no type or storage
class
as10k1.c:139: error: parse error before "break"
as10k1.c:142: error: parse error before string constant
as10k1.c:142: warning: type defaults to
int' in declaration of
printf'
as10k1.c:142: warning: data definition has no type or storage
class
as10k1.c:151: error: parse error before numeric constant
as10k1.c:151: warning: type defaults to
int' in declaration of
exit'
as10k1.c:151: warning: data definition has no type or storage
class
as10k1.c:160: error: parse error before string constant
as10k1.c:160: warning: type defaults to
int' in declaration of
as_exit'
as10k1.c:160: error: conflicting types for
as_exit'
proto.h:6: error: previous declaration of as_exit'
as10k1.c:160: warning: data definition has no type or storage
class
as10k1.c: In function
main':
as10k1.c:176: warning: implicit declaration of function
parse_cli_args'
as10k1.c:186: warning: comparison between pointer and integer
as10k1.c:187: warning: passing arg 1 of
fopen' makes pointer
from integer without a cast
as10k1.c:193: warning: comparison between pointer and integer
as10k1.c:197: warning: assignment makes integer from pointer
without a cast
as10k1.c:201: warning: passing arg 1 of fopen' makes pointer
from integer without a cast
as10k1.c: At top level:
as10k1.c:353: error: conflicting types for
as_exit'
as10k1.c:160: error: previous declaration of `as_exit'
make[1]: [as10k1.o] Error 1
make: [As10k1] Error 2
this is as far as I get.
someone please help!
Anonymous
Logged In: NO
That's because (I'm guessing) you're using Ubuntu which installs gcc 3 by default. Install gcc-2.95 and change the symlink so that gcc points to it instead.
However, that doesn't solve the next problem, that there's no 2.6 emu_wrapper, and the Makefile doesn't know about kernel version 2.6.
Hmmm.