linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevd failt to compile!
@ 2005-07-04 20:20 gmourani
  2005-07-04 20:24 ` Michael Buesch
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gmourani @ 2005-07-04 20:20 UTC (permalink / raw)
  To: linux-hotplug

Hello,

I'm trying to compile latest version of udev (version 060) and it fail
with the following error messages:

Compiling udevd.c:                                                    [ERROR]
  gcc -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith
-Wstrict-prototypes
  -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -pipe
-D_GNU_S
  OURCE -I/usr/src/openna/BUILD/udev-060/libsysfs/sysfs
-I/usr/src/openna/BUILD
  /udev-060/libsysfs -DUSE_LOG -Os -fomit-frame-pointer -Wshadow
-Wstrict-proto
  types -Wmissing-prototypes -Wmissing-declarations -c -o udevd.o udevd.c
  In file included from udevd.c:41:
  /usr/include/linux/netlink.h:22: error: parse error before '__u32'
  /usr/include/linux/netlink.h:28: error: parse error before '__u32'
  /usr/include/linux/netlink.h:30: error: parse error before 'nlmsg_flags'
  /usr/include/linux/netlink.h:31: error: parse error before 'nlmsg_seq'
  /usr/include/linux/netlink.h:32: error: parse error before 'nlmsg_pid'
  /usr/include/linux/netlink.h:82: error: field 'msg' has incomplete type
  udevd.c: In function 'init_uevent_netlink_sock':
  udevd.c:755: error: storage size of 'snl' isn't known
  udevd.c:758: error: invalid application of 'sizeof' to incomplete type
'struc
  t sockaddr_nl'
  udevd.c:770: error: invalid application of 'sizeof' to incomplete type
'struc
  t sockaddr_nl'
  udevd.c:755: warning: unused variable 'snl'
make: *** [udevd.o] Error 1

udev 058 compiled successfuly without problem or error, does some know
what this happen with latest stable realese of udev 060??

Thanks,



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: udevd failt to compile!
  2005-07-04 20:20 udevd failt to compile! gmourani
@ 2005-07-04 20:24 ` Michael Buesch
  2005-07-04 20:30 ` Kay Sievers
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Michael Buesch @ 2005-07-04 20:24 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

Quoting gmourani@privalodc.com:
> Hello,
> 
> I'm trying to compile latest version of udev (version 060) and it fail
> with the following error messages:
> 
> Compiling udevd.c:                                                    [ERROR]
>   gcc -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith
> -Wstrict-prototypes
>   -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -pipe
> -D_GNU_S
>   OURCE -I/usr/src/openna/BUILD/udev-060/libsysfs/sysfs
> -I/usr/src/openna/BUILD
>   /udev-060/libsysfs -DUSE_LOG -Os -fomit-frame-pointer -Wshadow
> -Wstrict-proto
>   types -Wmissing-prototypes -Wmissing-declarations -c -o udevd.o udevd.c
>   In file included from udevd.c:41:
>   /usr/include/linux/netlink.h:22: error: parse error before '__u32'

Your glibc-kernel-headers are broken.

-- 
Greetings, Michael



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: udevd failt to compile!
  2005-07-04 20:20 udevd failt to compile! gmourani
  2005-07-04 20:24 ` Michael Buesch
@ 2005-07-04 20:30 ` Kay Sievers
  2005-07-11 20:39 ` Frédéric L. W. Meunier
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2005-07-04 20:30 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Jul 04, 2005 at 04:20:02PM -0400, gmourani@privalodc.com wrote:
> Hello,
> 
> I'm trying to compile latest version of udev (version 060) and it fail
> with the following error messages:
> 
>   types -Wmissing-prototypes -Wmissing-declarations -c -o udevd.o udevd.c
>   In file included from udevd.c:41:
>   /usr/include/linux/netlink.h:22: error: parse error before '__u32'
>   /usr/include/linux/netlink.h:28: error: parse error before '__u32'
>   /usr/include/linux/netlink.h:30: error: parse error before 'nlmsg_flags'
>   /usr/include/linux/netlink.h:31: error: parse error before 'nlmsg_seq'
>   /usr/include/linux/netlink.h:32: error: parse error before 'nlmsg_pid'
>   /usr/include/linux/netlink.h:82: error: field 'msg' has incomplete type

Seems you messed around your glibc-kernel-headers. Did you copy the
linux-kernel includes to /usr/include/linux?

Kay


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: udevd failt to compile!
  2005-07-04 20:20 udevd failt to compile! gmourani
  2005-07-04 20:24 ` Michael Buesch
  2005-07-04 20:30 ` Kay Sievers
@ 2005-07-11 20:39 ` Frédéric L. W. Meunier
  2005-07-12  3:02 ` Greg KH
  2005-07-12  3:20 ` Frédéric L. W. Meunier
  4 siblings, 0 replies; 6+ messages in thread
From: Frédéric L. W. Meunier @ 2005-07-11 20:39 UTC (permalink / raw)
  To: linux-hotplug

On Mon, 4 Jul 2005 gmourani@privalodc.com wrote:

> Hello,
>
> I'm trying to compile latest version of udev (version 060) and it fail
> with the following error messages:
>
> Compiling udevd.c:                                                    [ERROR]
>  gcc -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith
> -Wstrict-prototypes
>  -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -pipe
> -D_GNU_S
>  OURCE -I/usr/src/openna/BUILD/udev-060/libsysfs/sysfs
> -I/usr/src/openna/BUILD
>  /udev-060/libsysfs -DUSE_LOG -Os -fomit-frame-pointer -Wshadow
> -Wstrict-proto
>  types -Wmissing-prototypes -Wmissing-declarations -c -o udevd.o udevd.c
>  In file included from udevd.c:41:
>  /usr/include/linux/netlink.h:22: error: parse error before '__u32'
>  /usr/include/linux/netlink.h:28: error: parse error before '__u32'
>  /usr/include/linux/netlink.h:30: error: parse error before 'nlmsg_flags'
>  /usr/include/linux/netlink.h:31: error: parse error before 'nlmsg_seq'
>  /usr/include/linux/netlink.h:32: error: parse error before 'nlmsg_pid'
>  /usr/include/linux/netlink.h:82: error: field 'msg' has incomplete type
>  udevd.c: In function 'init_uevent_netlink_sock':
>  udevd.c:755: error: storage size of 'snl' isn't known
>  udevd.c:758: error: invalid application of 'sizeof' to incomplete type
> 'struc
>  t sockaddr_nl'
>  udevd.c:770: error: invalid application of 'sizeof' to incomplete type
> 'struc
>  t sockaddr_nl'
>  udevd.c:755: warning: unused variable 'snl'
> make: *** [udevd.o] Error 1
>
> udev 058 compiled successfuly without problem or error, does some know
> what this happen with latest stable realese of udev 060??

The same for me. Using kernel-headers-2.4.31-i386-1 from 
Slackware-current. Nothing broken on my system.


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: udevd failt to compile!
  2005-07-04 20:20 udevd failt to compile! gmourani
                   ` (2 preceding siblings ...)
  2005-07-11 20:39 ` Frédéric L. W. Meunier
@ 2005-07-12  3:02 ` Greg KH
  2005-07-12  3:20 ` Frédéric L. W. Meunier
  4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2005-07-12  3:02 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Jul 11, 2005 at 05:39:35PM -0300, Fr?d?ric L. W. Meunier wrote:
> On Mon, 4 Jul 2005 gmourani@privalodc.com wrote:
> 
> >Hello,
> >
> >I'm trying to compile latest version of udev (version 060) and it fail
> >with the following error messages:
> >
> >Compiling udevd.c:                                                    
> >[ERROR]
> > gcc -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith
> >-Wstrict-prototypes
> > -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -pipe
> >-D_GNU_S
> > OURCE -I/usr/src/openna/BUILD/udev-060/libsysfs/sysfs
> >-I/usr/src/openna/BUILD
> > /udev-060/libsysfs -DUSE_LOG -Os -fomit-frame-pointer -Wshadow
> >-Wstrict-proto
> > types -Wmissing-prototypes -Wmissing-declarations -c -o udevd.o udevd.c
> > In file included from udevd.c:41:
> > /usr/include/linux/netlink.h:22: error: parse error before '__u32'
> > /usr/include/linux/netlink.h:28: error: parse error before '__u32'
> > /usr/include/linux/netlink.h:30: error: parse error before 'nlmsg_flags'
> > /usr/include/linux/netlink.h:31: error: parse error before 'nlmsg_seq'
> > /usr/include/linux/netlink.h:32: error: parse error before 'nlmsg_pid'
> > /usr/include/linux/netlink.h:82: error: field 'msg' has incomplete type
> > udevd.c: In function 'init_uevent_netlink_sock':
> > udevd.c:755: error: storage size of 'snl' isn't known
> > udevd.c:758: error: invalid application of 'sizeof' to incomplete type
> >'struc
> > t sockaddr_nl'
> > udevd.c:770: error: invalid application of 'sizeof' to incomplete type
> >'struc
> > t sockaddr_nl'
> > udevd.c:755: warning: unused variable 'snl'
> >make: *** [udevd.o] Error 1
> >
> >udev 058 compiled successfuly without problem or error, does some know
> >what this happen with latest stable realese of udev 060??
> 
> The same for me. Using kernel-headers-2.4.31-i386-1 from 
> Slackware-current. Nothing broken on my system.

Use a kernel-headers from a 2.6 kernel please.

Also, does this still happen on 062?

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: udevd failt to compile!
  2005-07-04 20:20 udevd failt to compile! gmourani
                   ` (3 preceding siblings ...)
  2005-07-12  3:02 ` Greg KH
@ 2005-07-12  3:20 ` Frédéric L. W. Meunier
  4 siblings, 0 replies; 6+ messages in thread
From: Frédéric L. W. Meunier @ 2005-07-12  3:20 UTC (permalink / raw)
  To: linux-hotplug

On Mon, 11 Jul 2005, Greg KH wrote:

> On Mon, Jul 11, 2005 at 05:39:35PM -0300, Fr?d?ric L. W. Meunier wrote:
>>
>> The same for me. Using kernel-headers-2.4.31-i386-1 from
>> Slackware-current. Nothing broken on my system.
>
> Use a kernel-headers from a 2.6 kernel please.

I'll.

> Also, does this still happen on 062?

Yes. I replied to his messages, but was compiling the 
latest version, 062.

-- 
How to contact me - http://www.pervalidus.net/contact.html


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2005-07-12  3:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-04 20:20 udevd failt to compile! gmourani
2005-07-04 20:24 ` Michael Buesch
2005-07-04 20:30 ` Kay Sievers
2005-07-11 20:39 ` Frédéric L. W. Meunier
2005-07-12  3:02 ` Greg KH
2005-07-12  3:20 ` Frédéric L. W. Meunier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).