Re: [MIT-Scheme-users] Problems building on Linux

2015-08-18 Thread Dave Pawson
#make compile-microcode


gcc -DHAVE_CONFIG_H -DMIT_SCHEME
-DDEFAULT_LIBRARY_PATH=\/usr/local/lib/mit-scheme-x86-64\ -I. -I.
-Wold-style-definition -Wextra -Wno-sign-compare -Wno-unused-parameter
-Wstrict-prototypes -Wnested-externs -Wredundant-decls -Wall -Wundef
-Wpointer-arith -Winline -O3  -o termcap.o -c termcap.c
termcap.c:147:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 memory_out ()
 ^
termcap.c:147:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
termcap.c: In function ‘memory_out’:
termcap.c:147:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:154:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 xmalloc (size)
 ^
termcap.c: In function ‘xmalloc’:
termcap.c:154:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:164:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 xrealloc (ptr, size)
 ^
termcap.c: In function ‘xrealloc’:
termcap.c:164:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:178:7: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 short convert_ospeed (os)
   ^
termcap.c: In function ‘convert_ospeed’:
termcap.c:178:7: warning: old-style function definition [-Wold-style-definition]
termcap.c:181:24: warning: implicit declaration of function
‘OS_baud_index_to_rate’ [-Wimplicit-function-declaration]
   unsigned int rate = (OS_baud_index_to_rate (os));
^
termcap.c:181:3: warning: nested extern declaration of
‘OS_baud_index_to_rate’ [-Wnested-externs]
   unsigned int rate = (OS_baud_index_to_rate (os));
   ^
termcap.c: At top level:
termcap.c:197:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 static char *tgetst1 ();
 ^
termcap.c:214:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 tgetnum (cap)
 ^
termcap.c: In function ‘tgetnum’:
termcap.c:214:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:224:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 tgetflag (cap)
 ^
termcap.c: In function ‘tgetflag’:
termcap.c:224:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:237:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 tgetstr (cap, area)
 ^
termcap.c: In function ‘tgetstr’:
termcap.c:237:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:263:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 tgetst1 (ptr, area)
 ^
termcap.c: In function ‘tgetst1’:
termcap.c:263:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:330:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 tputs (string, nlines, outfun)
 ^
termcap.c:330:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
termcap.c: In function ‘tputs’:
termcap.c:333:6: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
  int (*outfun) ();
  ^
termcap.c:330:1: warning: old-style function definition [-Wold-style-definition]
 tputs (string, nlines, outfun)
 ^
termcap.c:338:5: warning: ‘return’ with no value, in function returning non-void
 return;
 ^
termcap.c: At top level:
termcap.c:386:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 static int scan_file ();
 ^
termcap.c:387:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 static char *gobble_line ();
 ^
termcap.c:388:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 static int compare_contin ();
 ^
termcap.c:389:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 static int name_match ();
 ^
termcap.c:425:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 tgetent (bp, name)
 ^
termcap.c: In function ‘tgetent’:
termcap.c:425:1: warning: old-style function definition [-Wold-style-definition]
termcap.c:554:12: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
 return (int) bp;
^
termcap.c: At top level:
termcap.c:565:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 scan_file (string, fd, bufp)
 ^
termcap.c: In function ‘scan_file’:
termcap.c:565:1: warning: old-style function definition [-Wold-style-definition]
termcap.c:570:9: warning: unused variable ‘tem’ [-Wunused-variable]
   char *tem;
 ^
termcap.c: At top level:
termcap.c:621:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 compare_contin (str1, str2)
 ^
termcap.c: In function ‘compare_contin’:
termcap.c:621:1: warning: old-style function definition [-Wold-style-definition]
termcap.c: At top level:
termcap.c:660:1: warning: function declaration isn’t 

Re: [MIT-Scheme-users] Problems building on Linux

2015-08-18 Thread Taylor R Campbell
   Date: Tue, 18 Aug 2015 16:41:02 +0100
   From: Dave Pawson dave.paw...@gmail.com

   gcc -DHAVE_CONFIG_H -DMIT_SCHEME
   -DDEFAULT_LIBRARY_PATH=\/usr/local/lib/mit-scheme-x86-64\ -I. -I.
   -Wold-style-definition -Wextra -Wno-sign-compare -Wno-unused-parameter
   -Wstrict-prototypes -Wnested-externs -Wredundant-decls -Wall -Wundef
   -Wpointer-arith -Winline -O3  -DCOMPILE_AS_MODULE -fPIC  -c prdb4.c
   prdb4.c: In function `Prim_db4_rc_to_name':
   prdb4.c:102:19: error: `DB_NOSERVER_HOME' undeclared (first use in
   this function)
 RC_TO_NAME_CASE (DB_NOSERVER_HOME, db_noserver_home);
  ^

   Any suggestions please?

Rerun configure with `--without-db-4'.

___
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-users


Re: [MIT-Scheme-users] Problems building on Linux

2015-08-18 Thread Taylor R Campbell
   Date: Tue, 18 Aug 2015 17:09:35 +0100
   From: Dave Pawson dave.paw...@gmail.com

   Thank you.
   stack of warnings, but
   #make compile-microcode now works.

Can you share the warnings too, and specify what compiler version
you're using?

___
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-users