mit-scheme-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Dave Pawson
Subject: Re: [MIT-Scheme-users] Problems building on Linux
Date: Tue, 18 Aug 2015 17:57:50 +0100

#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 a prototype
[-Wstrict-prototypes]
 gobble_line (fd, bufp, append_end)
 ^
termcap.c: In function ‘gobble_line’:
termcap.c:660:1: warning: old-style function definition [-Wold-style-definition]

# gcc --version
gcc (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
Copyright (C) 2015 Free Software Foundation, Inc.


HTH

On 18 August 2015 at 17:28, Taylor R Campbell <address@hidden> wrote:
>    Date: Tue, 18 Aug 2015 17:09:35 +0100
>    From: Dave Pawson <address@hidden>
>
>    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?



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]