Could not compile hamachi-v0.14 on Alpha-2.2.[36]

Bernhard Kaindl bk@suse.de
Wed Apr 21 17:00:05 1999


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.

This is the driver i tried to compile against 2.2.3 and 2.2.6:

http://www.nscl.msu.edu/~kasten/perf/hamachi/src/hamachi-0.14.tar.gz

Compile commands were:

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:

In file included from /usr/include/asm/semaphore.h:11,
                 from /usr/include/linux/fs.h:165,
                 from /usr/include/linux/capability.h:13,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:8,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/slab.h:14,
                 from /usr/include/linux/malloc.h:4,
                 from hamachi.c:112:
/usr/include/asm/current.h:4: global register variable follows a function definition
/usr/include/asm/current.h:4: warning: call-clobbered register used for global register variable
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

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 best regards,

Bernhard Kaindl
Distribution Development

SuSE AG
Schanzaeckerstrasse 10
D-90443 Nuremberg

http://www.suse.com



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