[kernel] Could not compile hamachi-v0.14 on Alpha-2.2.[36]
Ruediger Oertel
ro@suse.de
Wed Apr 21 18:55:55 1999
On Thu, 22 Apr 1999, Bernhard Kaindl wrote:
> I all,
>
> I´ve just got an error when compiling hamachi-v0.4 on an Alpha System.
> It compiled against 2.0.36, but using 2.0.x for the hamachi is not reasonable
> for us because our upcoming AXP release of SuSE Linux 6.1 will be equipped
> with system tools for 2.2.x-Kernels.
> gcc -DMODULE -V2.7.2.3 -D__KERNEL__ -Wall -Wstrict-prototypes -I/usr/src/linux/net/inet -O6 -o hamachi.o -c hamachi.c
> and
> gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/usr/src/linux/net/inet -O6 -o hamachi.o -c hamachi.c
> (the latter uses egcs on our system)
>
> These are the error messages:
seen these a lot...
on the alpha you'll need some extra options, in this case
"-ffixed-8" to compile kernel/modules. See the Makefile for
exact list.
the rest are different, I guess just wrong assumptions about the size
of an "int" thought many lines of code even work despite those warnings.
> hamachi.c: In function `hamachi_probe1':
> hamachi.c:603: warning: unsigned int format, different type arg (arg 4)
> hamachi.c:624: warning: unsigned int format, different type arg (arg 7)
> hamachi.c: In function `hamachi_open':
> hamachi.c:838: warning: unsigned int format, different type arg (arg 3)
> hamachi.c:838: warning: unsigned int format, different type arg (arg 4)
> hamachi.c: In function `hamachi_timer':
> hamachi.c:896: warning: unsigned int format, different type arg (arg 3)
> hamachi.c:896: warning: unsigned int format, different type arg (arg 4)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 3)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 4)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 5)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 6)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 7)
> hamachi.c:904: warning: unsigned int format, different type arg (arg 8)
> hamachi.c: In function `hamachi_interrupt':
> hamachi.c:1217: warning: unsigned int format, different type arg (arg 3)
> hamachi.c: In function `hamachi_error':
> hamachi.c:1494: warning: unsigned int format, different type arg (arg 3)
> hamachi.c:1494: warning: unsigned int format, different type arg (arg 4)
> hamachi.c:1494: warning: unsigned int format, different type arg (arg 5)
> hamachi.c:1494: warning: unsigned int format, different type arg (arg 6)
> hamachi.c: In function `hamachi_close':
> hamachi.c:1529: warning: unsigned int format, different type arg (arg 3)
> hamachi.c:1529: warning: unsigned int format, different type arg (arg 4)
> hamachi.c:1529: warning: unsigned int format, different type arg (arg 5)
> make: *** [hamachi] Error 1
> I see that this should be the error line:
>
> /usr/include/asm/current.h:4: global register variable follows a function definition
well that's the "-ffixed-8" problem.
>
> Problabyl I could fix this myself, but I wanted to report this anyway,
> and probably somebody reading this says: "Clear, do this and this...."
>
> I also would like to know, if there is some driver update needed to make
> it work with 2.2.6-AXP or if it should only take some small changes to
> make it compile(and work?).
with kind regards (mit freundlichem Grinsen),
Ruediger Oertel (ro@suse.de)
-----------------------------------------------------------------
Linux version 2.2.5 (root@fatou) (egcs-1.1.2 release) #2 SMP
Total of 2 processors activated (800.36 BogoMIPS)
Mem: 264187904 Swap: 2270130176
| To unsubscribe, send mail to Majordomo@cesdis.gsfc.nasa.gov, and within the
| body of the mail, include only the text:
| unsubscribe this-list-name youraddress@wherever.org
| You will be unsubscribed as speedily as possible.