2.1.68 compile errors & fixes

Krzysztof G. Baranowski (kgb@manjak.knm.org.pl)
Mon, 1 Dec 1997 16:33:32 +0100 (MET)


Primo:
make[3]: Entering directory `/usr/src/linux-2.1.68/net/netlink'
gcc -D__KERNEL__ -I/usr/src/linux-2.1.68/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c af_netlink.c
af_netlink.c: In function `netlink_unicast':
af_netlink.c:380: wrong type argument to bit-complement
make[3]: *** [af_netlink.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.1.68/net/netlink'

The patch is obvious :-) [attached below]

Secundo
In /usr/src/linux/net/netsyms.c memcpy_toiovec is exported
twice. Which one should I remove ? ;-)

Tertio:
ld -m elf_i386 -T /usr/src/linux-2.1.68/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/cdrom/cdrom.a drivers/pci/pci.a
drivers/pnp/pnp.a \
/usr/src/linux-2.1.68/arch/i386/lib/lib.a
/usr/src/linux-2.1.68/lib/lib.a
/usr/src/linux-2.1.68/arch/i386/lib/lib.a \
-o vmlinux
drivers/misc/misc.a(parport_ieee1284.o): In function
`parport_wait_peripheral':
parport_ieee1284.o(.text+0x4a): undefined reference to
`resched_needed'
make: *** [vmlinux] Error 1

[patch below]

Quatro:
make[2]: Entering directory `/usr/src/linux-2.1.68/drivers/char'
gcc -D__KERNEL__ -I/usr/src/linux-2.1.68/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -DMODULE -c -o joystick.o joystick.c
joystick.c: In function `js_read':
joystick.c:473: wrong type argument to bit-complement
make[2]: *** [joystick.o] Error 1

[obvious patch below]

Fifth :) :
gcc -D__KERNEL__ -I/usr/src/linux-2.1.68/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -DMODULE -c -o addrconf.o addrconf.c
addrconf.c: In function `addrconf_set_dstaddr':
addrconf.c:720: `mm_segment_t' undeclared (first use this function)
addrconf.c:720: (Each undeclared identifier is reported only once
addrconf.c:720: for each function it appears in.)
addrconf.c:720: parse error before `oldfs'
addrconf.c:735: `oldfs' undeclared (first use this function)
make[2]: *** [addrconf.o] Error 1

That's all for now. It's time to read latest 100 posts ;-)

Kris

--
Krzysztof G. Baranowski - President of the Harmless Manyacs' Club
"Ex sysadmin, ex kernel hacker, luser again; how to copy files ?" 
http://www.knm.org.pl/                 <prezes@manjak.knm.org.pl>

--- linux/drivers/misc/parport_ieee1284.c~ Mon Dec 1 15:37:15 1997 +++ linux/drivers/misc/parport_ieee1284.c Mon Dec 1 15:53:28 1997 @@ -30,7 +30,7 @@ if ((status & mask) == result) return 0; udelay(25); - if (resched_needed()) + if (need_resched) schedule(); } current->state = TASK_INTERRUPTIBLE; --- linux/net/netlink/af_netlink.c~ Mon Dec 1 15:12:56 1997 +++ linux/net/netlink/af_netlink.c Mon Dec 1 15:13:45 1997 @@ -377,7 +377,7 @@ netlink_unlock(sk); sti(); - if (current->signal & ~current->blocked) { + if (signal_pending(current)) { kfree_skb(skb, 0); return -ERESTARTSYS; } --- linux/drivers/char/joystick.c~ Mon Dec 1 16:06:51 1997 +++ linux/drivers/char/joystick.c Mon Dec 1 16:07:26 1997 @@ -470,7 +470,7 @@ retval = -EAGAIN; break; } - if (current->signal & ~current->blocked) { + if (signal_pending(current)) { retval = -ERESTARTSYS; break; }