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

Re: [MiNT] almost there..... Newbie trying to compile Mint v1.17...



Can you try this patch ?

Alan.

On Fri, 2011-02-11 at 00:28 -0800, WongCK wrote:
> Thanks Mikro for confirming my understanding of that makefile.
> I will just comment it.
> I am sure it will compile now.... till the next error LOL.
> 
> 
> I think it ought to be fixed, else some newbie like me will choke
> trying.
> 
> 
>                 Sorry for not posting the error log previously.
>                 here is the error log:
>         Personally, I have -Werror in my working copy disabled as it
>         produces such errors as you have mentioned. Either gcc4 fails
>         or gcc2 fails, we can see commits which fix one or another but
>         it's still broken ;) Just comment it out.
>         
>         
> 
> 

Index: sys/mint/kcompiler.h
===================================================================
RCS file: /mint/freemint/sys/mint/kcompiler.h,v
retrieving revision 1.7
diff -u -r1.7 kcompiler.h
--- sys/mint/kcompiler.h	13 Jan 2010 17:13:50 -0000	1.7
+++ sys/mint/kcompiler.h	11 Feb 2011 08:56:32 -0000
@@ -69,7 +69,7 @@
 
 
 /* define to mark a function as inline: */
-# ifdef __GNUC__
+# if __GNUC__ >= 3
 # define INLINE		static inline __attribute__((always_inline))
 # endif
 
Index: sys/sockets/global.h
===================================================================
RCS file: /mint/freemint/sys/sockets/global.h,v
retrieving revision 1.9
diff -u -r1.9 global.h
--- sys/sockets/global.h	13 Jan 2010 17:13:50 -0000	1.9
+++ sys/sockets/global.h	11 Feb 2011 08:56:32 -0000
@@ -101,7 +101,7 @@
 	return 0;
 }
 
-static inline __attribute__((always_inline)) void
+static INLINE void
 so_wakersel (struct socket *so)
 {
 	if (so->rsel)