Package: glide
Version: 2002.04.10-18
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 will introduce better checks in the preprocessor.  The problem
is pretty obvious: you're using a #elif without any condition when
you really want a #else.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of glide_2002.04.10-18 on em64t by sbuild/amd64 0.53
...
>  gcc -DHAVE_CONFIG_H -I. 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/h3/minihwc 
> -I../../swlibs/include -DX11 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/cinit 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/h3/glide3/src 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/h3/incsrc 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/h3/minihwc -I. 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/swlibs/fxmemmap 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/swlibs/fxmisc 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/swlibs/newpci/pcilib 
> -I/build/tbm/glide-2002.04.10/build-tree/glide3x/swlibs/texus2/lib -g -Wall 
> -O2 -fomit-frame-pointer -fexpensive-optimizations -ffast-math -DBIG_OPT -MT 
> linhwc.lo -MD -MP -MF .deps/linhwc.Tpo -c linhwc.c  -fPIC -DPIC -o 
> .libs/linhwc.o
> linhwc.c:76:6: error: #elif with no expression
> linhwc.c: In function 'grDRIImportFifo':
> linhwc.c:847: warning: implicit declaration of function '_grImportFifo'
> linhwc.c: In function 'grDRIInvalidateAll':

This is introduced by debian/patches/z01-64bit-port

--- h3/minihwc/linhwc.c~        2008-11-07 15:54:06.000000000 +0000
+++ h3/minihwc/linhwc.c 2008-11-07 15:54:13.000000000 +0000
@@ -73,7 +73,7 @@
 #define P6FENCE asm volatile("mb" ::: "memory");
 #elif defined(__i386__) || defined(__x86_64__)
 #define P6FENCE asm("xchg %%eax, %0" : : "m" (fenceVar) : "eax");
-#elif
+#else
 Error Need to Define P6FENCE for this architecture
 #endif
 

or I guess better:

--- debian/patches/z01-64bit-port~      2008-11-07 16:00:01.000000000 +0000
+++ debian/patches/z01-64bit-port       2008-11-07 15:59:38.000000000 +0000
@@ -1710,7 +1710,7 @@
 +#define P6FENCE asm volatile("mb" ::: "memory");
 +#elif __i386__
  #define P6FENCE asm("xchg %%eax, %0" : : "m" (fenceVar) : "eax");
-+#elif
++#else
 +Error Need to Define P6FENCE for this architecture
 +#endif
  

Unfortunately I don't have time to work out the build system, so I'm
not sure is this patch is complete.
-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to