mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.0-test11-pre3 doesn't compile
@ 2000-11-12 11:49 f5ibh
  2000-11-12 12:12 ` 2.4.0-test11-pre3 doesn't compile (ax25 and md) Arjan Filius
  2000-11-12 13:03 ` [PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn't compile Arjan Filius
  0 siblings, 2 replies; 6+ messages in thread
From: f5ibh @ 2000-11-12 11:49 UTC (permalink / raw)
  To: linux-kernel


Hi!

here is the message :

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
-march=i586 -DMODULE   -c -o sysctl_net_ax25.o sysctl_net_ax25.c
sysctl_net_ax25.c: In function `ax25_register_sysctl':
sysctl_net_ax25.c:117: warning: left-hand operand of comma expression has no
effect
sysctl_net_ax25.c:117: parse error before `;'
make[3]: *** [sysctl_net_ax25.o] Error 1
make[3]: Leaving directory `/usr/src/kernel-sources-2.4.0-test11-pre3/net/ax25'
make[2]: *** [_modsubdir_ax25] Error 2
make[2]: Leaving directory `/usr/src/kernel-sources-2.4.0-test11-pre3/net'
make[1]: *** [_mod_net] Error 2
make[1]: Leaving directory `/usr/src/kernel-sources-2.4.0-test11-pre3'
make: *** [stamp-build] Error 2
----

Regards

		jean-luc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0-test11-pre3 doesn't compile (ax25 and md)
  2000-11-12 11:49 2.4.0-test11-pre3 doesn't compile f5ibh
@ 2000-11-12 12:12 ` Arjan Filius
  2000-11-12 12:22   ` Jeff Garzik
  2000-11-12 13:03 ` [PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn't compile Arjan Filius
  1 sibling, 1 reply; 6+ messages in thread
From: Arjan Filius @ 2000-11-12 12:12 UTC (permalink / raw)
  To: linux-kernel

Hello,

I noticed also md.c doesn't compile (gcc version 2.95.2 )
Here is the (stripped) output from a make -i modules:

make -C md modules
make[2]: Entering directory `/usr/src/linux-2.4.0-test11-pre3/drivers/md'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c md.c
In file included from md.c:33:
/usr/src/linux/include/linux/sysctl.h:35: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:35: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/sysctl.h:37: parse error before `newlen'
/usr/src/linux/include/linux/sysctl.h:37: warning: type defaults to `int' in declaration of `newlen'
/usr/src/linux/include/linux/sysctl.h:37: warning: data definition has no type or storage class
/usr/src/linux/include/linux/sysctl.h:39: parse error before `}'
/usr/src/linux/include/linux/sysctl.h:598: syntax error before `long'
/usr/src/linux/include/linux/sysctl.h:604: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:606: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:609: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:609: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:609: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/src/linux/include/linux/sysctl.h:609: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:612: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:612: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:612: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:614: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:614: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:614: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:616: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:616: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:616: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:618: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:618: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:618: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:620: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:620: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:620: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:622: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:622: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:622: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:624: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:624: warning: `struct file' declared inside parameter list
/usr/src/linux/include/linux/sysctl.h:624: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:627: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:628: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:632: parse error before `size_t'
/usr/src/linux/include/linux/sysctl.h:633: warning: function declaration isn't a prototype
/usr/src/linux/include/linux/sysctl.h:684: parse error before `mode_t'
/usr/src/linux/include/linux/sysctl.h:684: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/sysctl.h:686: `proc_handler' redeclared as different kind of symbol
/usr/src/linux/include/linux/sysctl.h:609: previous declaration of `proc_handler'
/usr/src/linux/include/linux/sysctl.h:691: parse error before `}'
md.c:83: elements of array `raid_table' have incomplete type
md.c:84: warning: excess elements in struct initializer
md.c:84: warning: (near initialization for `raid_table[0]')
md.c:84: warning: excess elements in struct initializer
md.c:84: warning: (near initialization for `raid_table[0]')
md.c:85: warning: excess elements in struct initializer
md.c:85: warning: (near initialization for `raid_table[0]')
md.c:85: warning: excess elements in struct initializer
md.c:85: warning: (near initialization for `raid_table[0]')
md.c:85: warning: excess elements in struct initializer
md.c:85: warning: (near initialization for `raid_table[0]')
md.c:85: warning: excess elements in struct initializer
md.c:85: warning: (near initialization for `raid_table[0]')
md.c:85: warning: excess elements in struct initializer
md.c:85: warning: (near initialization for `raid_table[0]')
md.c:86: warning: excess elements in struct initializer
md.c:86: warning: (near initialization for `raid_table[1]')
md.c:86: warning: excess elements in struct initializer
md.c:86: warning: (near initialization for `raid_table[1]')
md.c:87: warning: excess elements in struct initializer
md.c:87: warning: (near initialization for `raid_table[1]')
md.c:87: warning: excess elements in struct initializer
md.c:87: warning: (near initialization for `raid_table[1]')
md.c:87: warning: excess elements in struct initializer
md.c:87: warning: (near initialization for `raid_table[1]')
md.c:87: warning: excess elements in struct initializer
md.c:87: warning: (near initialization for `raid_table[1]')
md.c:87: warning: excess elements in struct initializer
md.c:87: warning: (near initialization for `raid_table[1]')
md.c:88: warning: excess elements in struct initializer
md.c:88: warning: (near initialization for `raid_table[2]')
md.c:89: invalid use of undefined type `struct ctl_table'
md.c:91: elements of array `raid_dir_table' have incomplete type
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:92: warning: excess elements in struct initializer
md.c:92: warning: (near initialization for `raid_dir_table[0]')
md.c:93: warning: excess elements in struct initializer
md.c:93: warning: (near initialization for `raid_dir_table[1]')
md.c:94: invalid use of undefined type `struct ctl_table'
md.c:96: elements of array `raid_root_table' have incomplete type
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:97: warning: excess elements in struct initializer
md.c:97: warning: (near initialization for `raid_root_table[0]')
md.c:98: warning: excess elements in struct initializer
md.c:98: warning: (near initialization for `raid_root_table[1]')
md.c:99: invalid use of undefined type `struct ctl_table'
make[2]: [md.o] Error 1 (ignored)
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c xor.c
make[2]: Leaving directory `/usr/src/linux-2.4.0-test11-pre3/drivers/md'


make -C ax25 modules
make[2]: Entering directory `/usr/src/linux-2.4.0-test11-pre3/net/ax25'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -c -o sysctl_net_ax25.o sysctl_net_ax25.c
sysctl_net_ax25.c: In function `ax25_register_sysctl':
sysctl_net_ax25.c:117: warning: left-hand operand of comma expression has no effect
sysctl_net_ax25.c:117: parse error before `;'
make[2]: [sysctl_net_ax25.o] Error 1 (ignored)
rm -f ax25.o
ld -m elf_i386  -r -o ax25.o af_ax25.o ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o ax25_route.o ax25_std_in.o ax25_std_subr.o ax25_std_timer.o ax25_subr.o ax25_timer.o ax25_uid.o ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o sysctl_net_ax25.o
ld: cannot open sysctl_net_ax25.o: No such file or directory
make[2]: [ax25.o] Error 1 (ignored)
make[2]: Leaving directory `/usr/src/linux-2.4.0-test11-pre3/net/ax25'


Greatings,

Arjan Filius
mailto:iafilius@xs4all.nl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0-test11-pre3 doesn't compile (ax25 and md)
  2000-11-12 12:12 ` 2.4.0-test11-pre3 doesn't compile (ax25 and md) Arjan Filius
@ 2000-11-12 12:22   ` Jeff Garzik
  2000-11-12 14:13     ` Rasmus Andersen
  2000-11-12 22:08     ` Eyal Lebedinsky
  0 siblings, 2 replies; 6+ messages in thread
From: Jeff Garzik @ 2000-11-12 12:22 UTC (permalink / raw)
  To: Arjan Filius; +Cc: linux-kernel, viro

Arjan Filius wrote:
> 
> Hello,
> 
> I noticed also md.c doesn't compile (gcc version 2.95.2 )
> Here is the (stripped) output from a make -i modules:
> 
> make -C md modules
> make[2]: Entering directory `/usr/src/linux-2.4.0-test11-pre3/drivers/md'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c md.c
> In file included from md.c:33:
> /usr/src/linux/include/linux/sysctl.h:35: parse error before `size_t'

Either md.c or sysctl.h needs to include <linux/types.h>.

-- 
Jeff Garzik             |
Building 1024           | Would you like a Twinkie?
MandrakeSoft            |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn't compile
  2000-11-12 11:49 2.4.0-test11-pre3 doesn't compile f5ibh
  2000-11-12 12:12 ` 2.4.0-test11-pre3 doesn't compile (ax25 and md) Arjan Filius
@ 2000-11-12 13:03 ` Arjan Filius
  1 sibling, 0 replies; 6+ messages in thread
From: Arjan Filius @ 2000-11-12 13:03 UTC (permalink / raw)
  To: f5ibh; +Cc: linux-kernel

Hello,

On Sun, 12 Nov 2000, f5ibh wrote:

> 
> Hi!
> 
> here is the message :
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i586 -DMODULE   -c -o sysctl_net_ax25.o sysctl_net_ax25.c
> sysctl_net_ax25.c: In function `ax25_register_sysctl':
> sysctl_net_ax25.c:117: warning: left-hand operand of comma expression has no
> effect
> sysctl_net_ax25.c:117: parse error before `;'

The folowing patch did fix this for me:
--- ./net/ax25/sysctl_net_ax25.c~	Sun Nov 12 09:31:39 2000
+++ ./net/ax25/sysctl_net_ax25.c	Sun Nov 12 13:45:11 2000
@@ -114,7 +114,7 @@
 	memset(ax25_table, 0x00, ax25_table_size);
 
 	for (n = 0, ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) {
-		ctl_table *child = kmalloc(sizeof(ax25_param_table, GFP_ATOMIC);
+		ctl_table *child = kmalloc(sizeof(ax25_param_table), GFP_ATOMIC);
 		if (!child) {
 			while (n--)
 				kfree(ax25_table[n].child);


Arjan Filius
mailto:iafilius@xs4all.nl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0-test11-pre3 doesn't compile (ax25 and md)
  2000-11-12 12:22   ` Jeff Garzik
@ 2000-11-12 14:13     ` Rasmus Andersen
  2000-11-12 22:08     ` Eyal Lebedinsky
  1 sibling, 0 replies; 6+ messages in thread
From: Rasmus Andersen @ 2000-11-12 14:13 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Arjan Filius, linux-kernel, viro

On Sun, Nov 12, 2000 at 07:22:49AM -0500, Jeff Garzik wrote:
> Arjan Filius wrote:
> > 
> > Hello,
> > 
> > I noticed also md.c doesn't compile (gcc version 2.95.2 )
> > Here is the (stripped) output from a make -i modules:
> > 
> > make -C md modules
> > make[2]: Entering directory `/usr/src/linux-2.4.0-test11-pre3/drivers/md'
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c md.c
> > In file included from md.c:33:
> > /usr/src/linux/include/linux/sysctl.h:35: parse error before `size_t'
> 
> Either md.c or sysctl.h needs to include <linux/types.h>.
> 

I tried to include <linux/types.h> in md.c and had to include 
<linux/blkdev.h> also. Otherwise I got the following:

/home/rasmus/kernel/linux/include/linux/sysctl.h:598: syntax error before `long'/home/rasmus/kernel/linux/include/linux/sysctl.h:609: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:609: warning: its scope is only this definition or declaration,
/home/rasmus/kernel/linux/include/linux/sysctl.h:609: warning: which is probably not what you want.
/home/rasmus/kernel/linux/include/linux/sysctl.h:612: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:614: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:616: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:618: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:620: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:622: warning: `struct file' declared inside parameter list
/home/rasmus/kernel/linux/include/linux/sysctl.h:624: warning: `struct file' declared inside parameter list
drivers/md/md.c:89: warning: initialization from incompatible pointer type
drivers/md/md.c:91: warning: initialization from incompatible pointer type
drivers/md/md.c:3090: warning: `md_status_read_proc' defined but not used
make: *** [drivers/md/md.o] Error 1

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

The difference between theory and practice is that, in theory, there is 
no difference between theory and practice. -- Anonymous
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0-test11-pre3 doesn't compile (ax25 and md)
  2000-11-12 12:22   ` Jeff Garzik
  2000-11-12 14:13     ` Rasmus Andersen
@ 2000-11-12 22:08     ` Eyal Lebedinsky
  1 sibling, 0 replies; 6+ messages in thread
From: Eyal Lebedinsky @ 2000-11-12 22:08 UTC (permalink / raw)
  Cc: linux-kernel

Jeff Garzik wrote:
> 
> Either md.c or sysctl.h needs to include <linux/types.h>.

It actually needs <linux/fs.h>

--
Eyal Lebedinsky		(eyal@eyal.emu.id.au)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-11-12 22:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-12 11:49 2.4.0-test11-pre3 doesn't compile f5ibh
2000-11-12 12:12 ` 2.4.0-test11-pre3 doesn't compile (ax25 and md) Arjan Filius
2000-11-12 12:22   ` Jeff Garzik
2000-11-12 14:13     ` Rasmus Andersen
2000-11-12 22:08     ` Eyal Lebedinsky
2000-11-12 13:03 ` [PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn't compile Arjan Filius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®