2002-11-01 10:22:53

by Helge Hafting

[permalink] [raw]
Subject: Re: Linux v2.5.45 ipmr.c compile failure


net/ipv4/ipmr.c: In function `ipmr_forward_finish':
net/ipv4/ipmr.c:1114: structure has no member named `pmtu'
net/ipv4/ipmr.c: In function `ipmr_queue_xmit':
net/ipv4/ipmr.c:1170: structure has no member named `pmtu'

Helge Hafting


2002-11-01 23:33:20

by Randy.Dunlap

[permalink] [raw]
Subject: Re: Linux v2.5.45 ipmr.c compile failure

| net/ipv4/ipmr.c: In function `ipmr_forward_finish':
| net/ipv4/ipmr.c:1114: structure has no member named `pmtu'
| net/ipv4/ipmr.c: In function `ipmr_queue_xmit':
| net/ipv4/ipmr.c:1170: structure has no member named `pmtu'

Several people reported this problem in 2.5.45.

I don't know how tough it is to check all combinations of config
options for such build problems, and I don't know how much code
and/or options there are in linux/net/ compared to linux/drivers/usb/,
but when I was the USB maintainer, before sending patches to Linus,
I would use a script to build all of USB in-kernel and then build all
of USB as loadable modules. This helped me make sure that easy-to-catch
problems didn't happen.

just an idea...
--
~Randy
(OK, net/ is about double the size of usb/)

2002-11-02 01:06:55

by Bernd Eckenfels

[permalink] [raw]
Subject: various 2.5.45 compile problems (intermezzo, pmtu, afs, qt) (was: Linux v2.5.45 ipmr.c compile failure)

In article <[email protected]> you wrote:
> | net/ipv4/ipmr.c: In function `ipmr_forward_finish':
> Several people reported this problem in 2.5.45.

and this also:

gcc -Wp,-MD,net/ipv4/netfilter/.ipt_TCPMSS.o.d -D__KERNEL__ -Iinclude
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -Iarch/i386/mach-generic
-nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=ipt_TCPMSS -c
-o net/ipv4/netfilter/ipt_TCPMSS.o net/ipv4/netfilter/ipt_TCPMSS.c
net/ipv4/netfilter/ipt_TCPMSS.c: In function pt_tcpmss_target':
net/ipv4/netfilter/ipt_TCPMSS.c:88: structure has no member named mtu'
net/ipv4/netfilter/ipt_TCPMSS.c:91: structure has no member named mtu'
net/ipv4/netfilter/ipt_TCPMSS.c:95: structure has no member named mtu'
make[3]: *** [net/ipv4/netfilter/ipt_TCPMSS.o] Error 1

and diskmapper:

drivers/md/dm-ioctl.c: In function 'create':
drivers/md/dm-ioctl.c:588: incompatible type for argument 1 of 'set_device_ro'
drivers/md/dm-ioctl.c: In function eload':
drivers/md/dm-ioctl.c:874: incompatible type for argument 1 of 'set_device_ro'
make[1]: *** [drivers/md/dm-ioctl.o] Error 1

also intermezzo and afs do not build as a module (maybe even build in)

fs/afs/dir.c:75: warning: unnamed struct/union that defines no instances
fs/afs/dir.c: In function fs_dir_iterate_block':
fs/afs/dir.c:261: union has no member named ame'
fs/afs/dir.c:293: union has no member named ame'
fs/afs/dir.c:296: union has no member named node'
fs/afs/dir.c:296: union has no member named node'
fs/afs/dir.c:296: union has no member named node'
fs/afs/dir.c:297: union has no member named nique'
make[2]: *** [fs/afs/dir.o] Error 1

include/linux/intermezzo_fs.h: In function zo_ioctl_packlen':
include/linux/intermezzo_fs.h:864: sizeof applied to an incomplete type
include/linux/intermezzo_fs.h:865: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:866: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h: At top level:
include/linux/intermezzo_fs.h:870: warning: truct izo_ioctl_data' declared
inside parameter list
include/linux/intermezzo_fs.h:871: conflicting types for
zo_ioctl_is_invalid'
include/linux/intermezzo_fs.h:52: previous declaration of
zo_ioctl_is_invalid'
include/linux/intermezzo_fs.h: In function zo_ioctl_is_invalid':
include/linux/intermezzo_fs.h:872: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:876: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:880: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:884: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:884: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:888: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:888: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:892: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:892: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:896: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:896: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:900: warning: passing arg 1 of
zo_ioctl_packlen'
from incompatible pointer type
include/linux/intermezzo_fs.h:900: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:904: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:905: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:905: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:909: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:910: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:910: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h:910: dereferencing pointer to incomplete type
include/linux/intermezzo_fs.h: At top level:
include/linux/intermezzo_fs.h:919: warning: truct kml_rec' declared inside
parameter list
include/linux/intermezzo_fs.h:920: warning: truct kml_rec' declared inside
parameter list
make[2]: *** [fs/intermezzo/cache.o] Error 1

In addtion to that make oldconfig depends on the qtlib (i was not realy able
to figure the dependencies out in that makefile but it is enough to touch
the temporary qt found flagfile to run make oldconfig.

Gruss
Bernd