2000-12-23 13:46:55

by kees

[permalink] [raw]
Subject: linux-2.2.19pre3

Hi,

Trying to build 2.2.18+pe-patch-2.2.19-3 gives:


/usr/bin/cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o ne2k-pci.o ne2k-pci.c
ne2k-pci.c: In function `ne2k_pci_probe':
ne2k-pci.c:246: `version' undeclared (first use in this function)
ne2k-pci.c:246: (Each undeclared identifier is reported only once
ne2k-pci.c:246: for each function it appears in.)
make[3]: *** [ne2k-pci.o] Error 1
make[3]: Leaving directory `/user2/src/linux-2.2.18/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/user2/src/linux-2.2.18/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/user2/src/linux-2.2.18/drivers'
make: *** [_dir_drivers] Error 2

Kees



2000-12-23 14:15:16

by J.A. Magallon

[permalink] [raw]
Subject: Re: linux-2.2.19pre3


On 2000.12.23 kees wrote:
> Hi,
>
> Trying to build 2.2.18+pe-patch-2.2.19-3 gives:
>
>
> /usr/bin/cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -O2
> -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce
> -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o
> ne2k-pci.o ne2k-pci.c
> ne2k-pci.c: In function `ne2k_pci_probe':
> ne2k-pci.c:246: `version' undeclared (first use in this function)
> ne2k-pci.c:246: (Each undeclared identifier is reported only once

Sorry, I checked the driver as module but not built into the kernel.
Try this patch:

--- linux-2.2.19-pre3/drivers/net/ne2k-pci.c.org Sat Dec 23 14:40:28 2000
+++ linux-2.2.19-pre3/drivers/net/ne2k-pci.c Sat Dec 23 14:41:09 2000
@@ -243,7 +243,7 @@
{
static unsigned version_printed = 0;
if (version_printed++ == 0)
- printk(KERN_INFO "%s", version);
+ printk(KERN_INFO "%s %s", version1,version2);
}
#endif


--
J.A. Magallon $> cd pub
mailto:[email protected] $> more beer

Linux werewolf 2.2.19-pre3 #1 SMP Fri Dec 22 02:38:17 CET 2000 i686

2000-12-24 00:01:49

by kees

[permalink] [raw]
Subject: Re: linux-2.2.19pre3

Hi

That did it, thanks
Kees

On Sat, 23 Dec 2000, J . A . Magallon wrote:

>
> On 2000.12.23 kees wrote:
> > Hi,
> >
> > Trying to build 2.2.18+pe-patch-2.2.19-3 gives:
> >
> >
> > /usr/bin/cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> > -O2
> > -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce
> > -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o
> > ne2k-pci.o ne2k-pci.c
> > ne2k-pci.c: In function `ne2k_pci_probe':
> > ne2k-pci.c:246: `version' undeclared (first use in this function)
> > ne2k-pci.c:246: (Each undeclared identifier is reported only once
>
> Sorry, I checked the driver as module but not built into the kernel.
> Try this patch:
>
> --- linux-2.2.19-pre3/drivers/net/ne2k-pci.c.org Sat Dec 23 14:40:28 2000
> +++ linux-2.2.19-pre3/drivers/net/ne2k-pci.c Sat Dec 23 14:41:09 2000
> @@ -243,7 +243,7 @@
> {
> static unsigned version_printed = 0;
> if (version_printed++ == 0)
> - printk(KERN_INFO "%s", version);
> + printk(KERN_INFO "%s %s", version1,version2);
> }
> #endif
>
>
> --
> J.A. Magallon $> cd pub
> mailto:[email protected] $> more beer
>
> Linux werewolf 2.2.19-pre3 #1 SMP Fri Dec 22 02:38:17 CET 2000 i686
>