Bug#118498: frad: fails to build on ia64
While building frad on ia64 the build bombs out with:
| In file included from sdlacfg.c:34:
| /usr/include/asm/io.h: In function `__insb':
| /usr/include/asm/io.h:158: `platform_inb' undeclared (first use in this function)
| /usr/include/asm/io.h:158: (Each undeclared identifier is reported only once
| /usr/include/asm/io.h:158: for each function it appears in.)
| /usr/include/asm/io.h:167: `platform_inb' used prior to declaration
| /usr/include/asm/io.h:167: warning: implicit declaration of function `platform_inb'
| /usr/include/asm/io.h: In function `__outsl':
| /usr/include/asm/io.h:246: `platform_outl' undeclared (first use in this function)
| /usr/include/asm/io.h:254: `platform_outl' used prior to declaration
| /usr/include/asm/io.h:254: warning: implicit declaration of function `platform_outl'
| sdlacfg.c: In function `sdla':
| sdlacfg.c:415: warning: suggest explicit braces to avoid ambiguous `else'
| sdlacfg.c:424: warning: suggest explicit braces to avoid ambiguous `else'
| sdlacfg.c:433: warning: suggest explicit braces to avoid ambiguous `else'
| make: *** [sdlacfg.o] Error 1
| make: Leaving directory `/scratch/dsp/w4/frad-0.20/src'
| make: *** [build] Error 2
| zsh: exit 2 dpkg-buildpackage -rfakeroot -us -uc
A full build log can be found at:
There are basically two ways to fix that. The first would be to
stop including asm/io.h in src/sdlacfg.c. In my opinion this
would be the best choice since asm/io.h is not actually being
used. The second choice would be to define __KERNEL__, probably
by passing -D__KERNEL__ to gcc while building.
Here is the trivial patch to fix the problem the first way I
diff -Naur frad-0.20.orig/src/sdlacfg.c frad-0.20/src/sdlacfg.c
--- frad-0.20.orig/src/sdlacfg.c Tue Nov 6 16:19:57 2001
+++ frad-0.20/src/sdlacfg.c Tue Nov 6 16:20:18 2001
@@ -31,8 +31,6 @@
I hope to hear from you soon. If I receive no word I will NMU
frad to fix this bug in seven days time, as per the guidelines
set for porters in the Debian Developer's Reference. Thank you.
Doug Porter <firstname.lastname@example.org>