Hi
I have the source code for spim and I tried to install it on my mdk 10.1 box. When I executed the configure file I recived the following output.....
Code:
[root@redqueen spim-6.3]$ sh Configure
cc
Check if this machine is big-endian or little-endian.
This may take a few minutes.
I believe this is a little-endian machine.
Looks like a System V universe exists...
Scaning libc
nm: /usr/lib/libc.so: File format not recognized

Checking if libc on this machine contains:
  vsprintf: No, I don't think
    _doprnt: NO, THIS IS A PROBLEM: NO VSPRINTF AND NO _DOPRNT
SPIM WILL NOT RUN PROPERLY
  vfprintf: No, I don't think
    _doprnt: NO, THIS IS A PROBLEM: NO VFPRINTF AND NO _DOPRNT
SPIM WILL NOT RUN PROPERLY
  strtoul: No, I don't think
  strtol: No, I don't think
  memcpy: No, I don't think

Checking for /usr/include/termio.h
Yes, it is there
That returened me to the prompt... I could not make any install files...all gave me errors of the sort
Code:
[root@redqueen spim-6.3]# make install
make[1]: Entering directory `/home/trinity/spim-6.3'
gcc -g     -I/usr/X11R6/include -I/include  -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO  `cat configuration` -DTEXT_SIZE=65536 -DDATA_SIZE=131072 -DK_TEXT_SIZE=65536 -DDEFAULT_TRAP_HANDLER=\"./trap.handler\" -DSPIM_VERSION="\"`cat VERSION`\""   -c -o spim.o spim.c
In file included from spim.h:82,
                 from spim.c:73:
/usr/include/string.h:38: error: syntax error before '(' token
/usr/include/string.h: In function `bcopy':
/usr/include/string.h:38: error: syntax error before "void"
/usr/include/string.h:43: error: storage class specified for parameter `memmove'
/usr/include/string.h:52: error: storage class specified for parameter `memccpy'
/usr/include/string.h:58: error: storage class specified for parameter `memset'
/usr/include/string.h:62: error: storage class specified for parameter `bcmp'
/usr/include/string.h:66: error: storage class specified for parameter `memchr'
/usr/include/string.h:83: error: storage class specified for parameter `strcpy'
/usr/include/string.h:86: error: storage class specified for parameter `strncpy'
/usr/include/string.h:90: error: storage class specified for parameter `strcat'
/usr/include/string.h:93: error: storage class specified for parameter `strncat'
/usr/include/string.h:97: error: storage class specified for parameter `strcmp'
/usr/include/string.h:100: error: storage class specified for parameter `strncmp'
/usr/include/string.h:104: error: storage class specified for parameter `strcoll'
/usr/include/string.h:107: error: storage class specified for parameter `strxfrm'
/usr/include/string.h:126: error: storage class specified for parameter `strdup'
/usr/include/string.h:162: error: storage class specified for parameter `strchr'
/usr/include/string.h:164: error: storage class specified for parameter `strrchr'
/usr/include/string.h:177: error: storage class specified for parameter `strcspn'
/usr/include/string.h:181: error: storage class specified for parameter `strspn'
/usr/include/string.h:184: error: storage class specified for parameter `strpbrk'
/usr/include/string.h:187: error: storage class specified for parameter `strstr'
/usr/include/string.h:192: error: storage class specified for parameter `strtok'
/usr/include/string.h:199: error: storage class specified for parameter `__strtok_r'
/usr/include/string.h:202: error: storage class specified for parameter `strtok_r'
/usr/include/string.h:230: error: storage class specified for parameter `strlen'
/usr/include/string.h:243: error: storage class specified for parameter `strerror'
/usr/include/string.h:268: error: storage class specified for parameter `strerror_r'
/usr/include/string.h:274: error: storage class specified for parameter `__bzero'
/usr/include/string.h:278: error: storage class specified for parameter `bcopy'
/usr/include/string.h:281: error: storage class specified for parameter `bzero'
/usr/include/string.h:285: error: storage class specified for parameter `bcmp'
/usr/include/string.h:285: error: redefinition of parameter 'bcmp'
/usr/include/string.h:62: error: previous definition of 'bcmp' was here
/usr/include/string.h:288: error: storage class specified for parameter `index'
/usr/include/string.h:291: error: storage class specified for parameter `rindex'
/usr/include/string.h:295: error: storage class specified for parameter `ffs'
/usr/include/string.h:309: error: storage class specified for parameter `strcasecmp'
/usr/include/string.h:313: error: storage class specified for parameter `strncasecmp'
/usr/include/string.h:331: error: storage class specified for parameter `strsep'
In file included from spim.c:73:
spim.h:99: error: storage class specified for parameter `mem_addr'
spim.h:215: warning: structure defined inside parms
spim.h:215: error: storage class specified for parameter `inst_info'
spim.h:224: error: storage class specified for parameter `port'
spim.h:237: error: syntax error before "char"
spim.h:253: error: storage class specified for parameter `bare_machine'
spim.h:254: error: storage class specified for parameter `accept_pseudo_insts'
spim.h:255: error: storage class specified for parameter `delayed_branches'
spim.h:256: error: storage class specified for parameter `delayed_loads'
spim.h:257: error: storage class specified for parameter `quiet'
spim.h:258: error: storage class specified for parameter `source_file'
spim.h:259: error: storage class specified for parameter `trap_file'
spim.h:260: error: storage class specified for parameter `force_break'
spim.h:261: error: storage class specified for parameter `parser_error_occurred'
spim.h:265: error: storage class specified for parameter `port'
spim.h:265: error: conflicting types for 'port'
spim.h:224: error: previous definition of 'port' was here
spim.h:265: error: syntax error before "message_out"
spim.h:267: error: storage class specified for parameter `mapped_io'
spim.h:269: error: storage class specified for parameter `mem_addr'
spim.h:269: error: conflicting types for 'mem_addr'
spim.h:99: error: previous definition of 'mem_addr' was here
spim.h:269: error: syntax error before "program_starting_address"
spim.h:271: error: storage class specified for parameter `initial_text_size'
spim.h:273: error: storage class specified for parameter `initial_data_size'
spim.h:275: error: storage class specified for parameter `mem_addr'
spim.h:275: error: redefinition of parameter 'mem_addr'
spim.h:269: error: previous definition of 'mem_addr' was here
spim.h:275: error: syntax error before "initial_data_limit"
spim.h:277: error: storage class specified for parameter `initial_stack_size'
spim.h:279: error: storage class specified for parameter `mem_addr'
spim.h:279: error: redefinition of parameter 'mem_addr'
spim.h:275: error: previous definition of 'mem_addr' was here
spim.h:279: error: syntax error before "initial_stack_limit"
spim.h:281: error: storage class specified for parameter `initial_k_text_size'
spim.h:283: error: storage class specified for parameter `initial_k_data_size'
spim.h:285: error: storage class specified for parameter `mem_addr'
spim.h:285: error: redefinition of parameter 'mem_addr'
spim.h:279: error: previous definition of 'mem_addr' was here
spim.h:285: error: syntax error before "initial_k_data_limit"
In file included from spim.c:74:
spim-utils.h:30: error: syntax error before "addr"
spim-utils.h:32: error: syntax error before "addr"
spim-utils.h:33: error: redefinition of parameter 'fatal_error'
spim.h:232: error: previous definition of 'fatal_error' was here
spim-utils.h:37: error: syntax error before "from"
spim-utils.h:39: error: syntax error before "inst_info"
spim-utils.h:41: error: syntax error before "from"
spim-utils.h:44: error: syntax error before "pc"
In file included from spim.c:75:
inst.h:36: warning: structure defined inside parms
inst.h:36: error: storage class specified for parameter `imm_expr'
inst.h:45: error: syntax error before "imm_expr"
inst.h:45: warning: no semicolon at end of struct or union
inst.h:73: warning: structure defined inside parms
inst.h:75: warning: structure defined inside parms
inst.h:78: error: syntax error before "mem_addr"
inst.h:78: warning: no semicolon at end of struct or union
inst.h:78: warning: no semicolon at end of struct or union
inst.h:82: error: syntax error before "imm_expr"
inst.h:84: error: syntax error before '}' token
inst.h:197: error: syntax error before '*' token
inst.h:202: error: syntax error before '*' token
inst.h:203: error: syntax error before '*' token
inst.h:204: error: syntax error before "imm_expr"
inst.h:205: error: syntax error before "imm_expr"
inst.h:207: error: syntax error before "imm_expr"
inst.h:209: error: syntax error before '*' token
inst.h:210: error: syntax error before "addr"
inst.h:211: error: syntax error before "imm_expr"
inst.h:212: error: syntax error before "addr"
inst.h:219: error: syntax error before "addr"
inst.h:220: error: syntax error before "instruction"
inst.h:224: error: syntax error before "instruction"
inst.h:225: error: syntax error before '*' token
inst.h:226: error: syntax error before "addr"
inst.h:229: error: syntax error before '*' token
In file included from spim.c:76:
mem.h:33: error: storage class specified for parameter `mem_word'
mem.h:38: error: storage class specified for parameter `instruction'
mem.h:38: error: syntax error before '*' token
mem.h:40: error: storage class specified for parameter `text_modified'
mem.h:44: error: storage class specified for parameter `mem_addr'
mem.h:44: error: redefinition of parameter 'mem_addr'
spim.h:285: error: previous definition of 'mem_addr' was here
mem.h:44: error: syntax error before "text_top"
mem.h:54: error: storage class specified for parameter `mem_word'
mem.h:54: error: redefinition of parameter 'mem_word'
mem.h:33: error: previous definition of 'mem_word' was here
mem.h:54: error: syntax error before '*' token
mem.h:56: error: storage class specified for parameter `data_modified'
mem.h:58: error: storage class specified for parameter `data_seg_h'
mem.h:71: error: storage class specified for parameter `data_seg_b'
mem.h:75: error: storage class specified for parameter `mem_addr'
mem.h:75: error: redefinition of parameter 'mem_addr'
mem.h:44: error: previous definition of 'mem_addr' was here
mem.h:75: error: syntax error before "data_top"
mem.h:77: error: storage class specified for parameter `mem_addr'
mem.h:77: error: redefinition of parameter 'mem_addr'
mem.h:75: error: previous definition of 'mem_addr' was here
mem.h:77: error: syntax error before "gp_midpoint"
mem.h:82: error: storage class specified for parameter `mem_word'
mem.h:82: error: redefinition of parameter 'mem_word'
mem.h:54: error: previous definition of 'mem_word' was here
mem.h:82: error: syntax error before '*' token
mem.h:84: error: storage class specified for parameter `stack_seg_h'
mem.h:86: error: storage class specified for parameter `stack_seg_b'
mem.h:88: error: storage class specified for parameter `mem_addr'
mem.h:88: error: redefinition of parameter 'mem_addr'
mem.h:77: error: previous definition of 'mem_addr' was here
mem.h:88: error: syntax error before "stack_bot"
mem.h:97: error: storage class specified for parameter `instruction'
mem.h:97: error: redefinition of parameter 'instruction'
mem.h:38: error: previous definition of 'instruction' was here
mem.h:97: error: syntax error before '*' token
mem.h:101: error: storage class specified for parameter `mem_addr'
mem.h:101: error: redefinition of parameter 'mem_addr'
mem.h:88: error: previous definition of 'mem_addr' was here
mem.h:101: error: syntax error before "k_text_top"
mem.h:106: error: storage class specified for parameter `mem_word'
mem.h:106: error: redefinition of parameter 'mem_word'
mem.h:82: error: previous definition of 'mem_word' was here
mem.h:106: error: syntax error before '*' token
mem.h:108: error: storage class specified for parameter `k_data_seg_h'
mem.h:110: error: storage class specified for parameter `k_data_seg_b'
mem.h:114: error: storage class specified for parameter `mem_addr'
mem.h:114: error: redefinition of parameter 'mem_addr'
mem.h:101: error: previous definition of 'mem_addr' was here
mem.h:114: error: syntax error before "k_data_top"
mem.h:272: error: syntax error before "addr"
mem.h:274: error: syntax error before "addr"
mem.h:282: error: syntax error before "addr"
In file included from spim.c:77:
reg.h:27: error: storage class specified for parameter `reg_word'
reg.h:28: error: storage class specified for parameter `u_reg_word'
reg.h:33: error: storage class specified for parameter `reg_word'
reg.h:33: error: redefinition of parameter 'reg_word'
reg.h:27: error: previous definition of 'reg_word' was here
reg.h:33: error: syntax error before "R"
reg.h:35: error: storage class specified for parameter `reg_word'
reg.h:35: error: redefinition of parameter 'reg_word'
reg.h:33: error: previous definition of 'reg_word' was here
reg.h:35: error: syntax error before "HI"
reg.h:37: error: storage class specified for parameter `mem_addr'
reg.h:37: error: redefinition of parameter 'mem_addr'
mem.h:114: error: previous definition of 'mem_addr' was here
reg.h:37: error: syntax error before "PC"
reg.h:65: error: storage class specified for parameter `FPR'
reg.h:66: error: storage class specified for parameter `FGR'
reg.h:67: error: storage class specified for parameter `FWR'
reg.h:70: error: storage class specified for parameter `FP_reg_present'
reg.h:71: error: storage class specified for parameter `FP_reg_poison'
reg.h:72: error: storage class specified for parameter `FP_spec_load'
reg.h:104: error: storage class specified for parameter `reg_word'
reg.h:104: error: redefinition of parameter 'reg_word'
reg.h:35: error: previous definition of 'reg_word' was here
reg.h:104: error: syntax error before "CpCond"
reg.h:110: error: storage class specified for parameter `exception_occurred'
In file included from spim.c:78:
parser.h:30: error: syntax error before "new_addr"
parser.h:48: error: storage class specified for parameter `data_dir'
parser.h:50: error: storage class specified for parameter `text_dir'
parser.h:52: error: storage class specified for parameter `parse_error_occurred'
In file included from spim.c:79:
sym-tbl.h:29: error: syntax error before "instruction"
sym-tbl.h:29: warning: no semicolon at end of struct or union
sym-tbl.h:32: error: syntax error before '}' token
sym-tbl.h:46: error: syntax error before "label_use"
sym-tbl.h:46: warning: no semicolon at end of struct or union
sym-tbl.h:60: error: syntax error before "label"
sym-tbl.h:65: error: syntax error before "label"
sym-tbl.h:66: error: syntax error before "location"
sym-tbl.h:67: error: syntax error before '*' token
sym-tbl.h:69: error: syntax error before '*' token
sym-tbl.h:70: error: syntax error before '*' token
In file included from spim.c:80:
scanner.h:34: error: conflicting types for 'source_line'
inst.h:83: error: previous definition of 'source_line' was here
scanner.h:52: error: storage class specified for parameter `only_id'
scanner.h:54: error: storage class specified for parameter `yylval_t'
scanner.h:56: error: storage class specified for parameter `yylval_t'
scanner.h:56: error: conflicting types for 'yylval_t'
scanner.h:54: error: previous definition of 'yylval_t' was here
scanner.h:56: error: syntax error before "yylval"
scanner.h:58: error: storage class specified for parameter `line_no'
scanner.h:60: error: storage class specified for parameter `y_str_length'
In file included from spim.c:81:
y.tab.h:257: error: storage class specified for parameter `yylval_t'
y.tab.h:257: error: redefinition of parameter 'yylval_t'
scanner.h:56: error: previous definition of 'yylval_t' was here
y.tab.h:257: error: syntax error before "yylval"
spim.c:87: error: storage class specified for parameter `console_to_program'
spim.c:88: error: storage class specified for parameter `console_to_spim'
spim.c:89: error: storage class specified for parameter `flush_to_newline'
spim.c:90: error: storage class specified for parameter `get_opt_int'
spim.c:91: error: storage class specified for parameter `parse_spim_command'
spim.c:92: error: storage class specified for parameter `print_reg'
spim.c:93: error: storage class specified for parameter `print_all_regs'
spim.c:94: error: storage class specified for parameter `read_assembly_command'
spim.c:95: error: storage class specified for parameter `str_prefix'
spim.c:96: error: storage class specified for parameter `top_level'
spim.c:97: error: storage class specified for parameter `read_token'
spim.c:118: error: redefinition of parameter 'bare_machine'
spim.h:253: error: previous definition of 'bare_machine' was here
spim.c:119: error: redefinition of parameter 'delayed_branches'
spim.h:255: error: previous definition of 'delayed_branches' was here
spim.c:120: error: redefinition of parameter 'delayed_loads'
spim.h:256: error: previous definition of 'delayed_loads' was here
spim.c:121: error: redefinition of parameter 'accept_pseudo_insts'
spim.h:254: error: previous definition of 'accept_pseudo_insts' was here
spim.c:122: error: redefinition of parameter 'quiet'
spim.h:257: error: previous definition of 'quiet' was here
spim.c:123: error: redefinition of parameter 'source_file'
spim.h:258: error: previous definition of 'source_file' was here
spim.c:124: error: syntax error before "port"
spim.c:125: error: redefinition of parameter 'mapped_io'
spim.h:267: error: previous definition of 'mapped_io' was here
spim.c:132: error: storage class specified for parameter `load_trap_handler'
spim.c:132: error: parameter `load_trap_handler' is initialized
spim.c:133: error: parameter `trap_file' is initialized
spim.c:133: error: redefinition of parameter 'trap_file'
spim.h:259: error: previous definition of 'trap_file' was here
spim.c:134: error: storage class specified for parameter `console_state_saved'
spim.c:136: error: storage class specified for parameter `saved_console_state'
spim.c:152: error: syntax error before '{' token
spim.c:154: error: parameter `assembly_file_read' is initialized
spim.c:155: error: parameter `argv_ptr' is initialized
spim.c:157: error: syntax error before "console_out"
spim.c:361: error: storage class specified for parameter `parse_spim_command'
spim.c:361: error: redefinition of parameter 'parse_spim_command'
spim.c:91: error: previous definition of 'parse_spim_command' was here
spim.c:361: error: syntax error before '{' token
spim.c:363: error: storage class specified for parameter `prev_token'
spim.c:366: error: syntax error before "initialize_scanner"
spim.c:461: error: storage class specified for parameter `loc'
spim.c:463: error: syntax error before "if"
spim.c:511: error: parameter `token' is initialized
spim.c:511: error: `redo' undeclared (first use in this function)
spim.c:511: error: (Each undeclared identifier is reported only once
spim.c:511: error: for each function it appears in.)
spim.c:511: confused by earlier errors, bailing out
make[1]: *** [spim.o] Error 1
make[1]: Leaving directory `/home/trinity/spim-6.3'
make: *** [spim] Error 2
[root@redqueen spim-6.3]#
Any help???
Thanks for any help in advance.