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

Bug#118498: frad: fails to build on ia64



Package: frad
Version: 0.20-4.1
Severity: important
Tags: patch

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'

[snip]

| /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[1]: *** [sdlacfg.o] Error 1
| make[1]: 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:
http://people.debian.org/~dsp/buildlog/frad_0.20-4.1_1005063337

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
described.


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 @@
 #define _LINUX_SOCKET_H
 #endif
 
-#include <asm/io.h>
-
 #define CONFIG_DLCI_MODULE
 #include <linux/if.h>
 #include <linux/netdevice.h>


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 <dsp@waterspout.com>



Reply to: