* Udev 0.75 fail to compile
@ 2005-11-10 13:30 gmourani
2005-11-10 14:05 ` Piter Punk
2005-11-10 14:16 ` Kay Sievers
0 siblings, 2 replies; 3+ messages in thread
From: gmourani @ 2005-11-10 13:30 UTC (permalink / raw)
To: linux-hotplug
Hello,
I've tried to compile udev 0.75 on my linux system and get the following
error:
Creating udev_version.h
Compiling sysfs_class.c: [OK]
Compiling sysfs_device.c: [OK]
Compiling sysfs_dir.c: [OK]
Compiling sysfs_driver.c: [OK]
Compiling sysfs_utils.c: [OK]
Compiling dlist.c: [OK]
Creating library libsysfs.a: [OK]
Running ranlib: [OK]
Compiling udev_event.c: [OK]
Compiling udev_device.c: [OK]
Compiling udev_config.c: [OK]
Compiling udev_add.c: [OK]
Compiling udev_remove.c: [OK]
Compiling udev_sysfs.c: [OK]
Compiling udev_db.c: [OK]
Compiling udev_rules.c: [OK]
Compiling udev_rules_parse.c: [OK]
Compiling udev_utils.c: [OK]
Compiling udev_utils_string.c: [OK]
Compiling udev_utils_file.c: [OK]
Compiling udev_utils_run.c: [OK]
Compiling udev_libc_wrapper.c: [OK]
Compiling udev_selinux.c: [OK]
Creating library libudev.a: [OK]
Running ranlib: [OK]
Compiling udev.c: [OK]
Linking udev: [OK]
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../libc.a(dl-open.o):
warning: def
inition of `_dl_tls_static_size' overriding common
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../libc.a(libc-tls.o):
warning: co
mmon is here
Running true: [OK]
Compiling udevd.c: [ERROR]
gcc -Os -march=pentium2 -fomit-frame-pointer -c -g -Wall -pipe
-D_GNU_SOURCE
-D_FILE_OFFSET_BITSd -Wstrict-prototypes -Wsign-compare -Wshadow
-Wchar-sub
scripts -Wmissing-declarations -Wnested-externs -Wpointer-arith
-Wcast-align
-Wsign-compare -Wmissing-prototypes -Wdeclaration-after-statement -Os
-I/usr/
src/openna/BUILD/udev-075/libsysfs/sysfs
-I/usr/src/openna/BUILD/udev-075/lib
sysfs -DUSE_SELINUX -DUSE_STATIC udevd.c -o udevd.o
In file included from udevd.c:42:
/usr/include/linux/netlink.h:22: error: syntax error before '__u32'
/usr/include/linux/netlink.h:28: error: syntax error before '__u32'
/usr/include/linux/netlink.h:30: error: syntax error before 'nlmsg_flags'
/usr/include/linux/netlink.h:31: error: syntax error before 'nlmsg_seq'
/usr/include/linux/netlink.h:32: error: syntax 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:665: error: storage size of 'snl' isn't known
udevd.c:669: error: invalid application of 'sizeof' to incomplete type
'struc
t sockaddr_nl'
udevd.c:683: error: invalid application of 'sizeof' to incomplete type
'struc
t sockaddr_nl'
udevd.c:665: warning: unused variable 'snl'
make: *** [udevd.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.25233 (%build)
Work fine with version 0.71
Gerhard,
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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] 3+ messages in thread
* Re: Udev 0.75 fail to compile
2005-11-10 13:30 Udev 0.75 fail to compile gmourani
@ 2005-11-10 14:05 ` Piter Punk
2005-11-10 14:16 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Piter Punk @ 2005-11-10 14:05 UTC (permalink / raw)
To: linux-hotplug
gmourani@privalodc.com wrote:
> /usr/include/linux/netlink.h:22: error: syntax error before '__u32'
> /usr/include/linux/netlink.h:28: error: syntax error before '__u32'
> /usr/include/linux/netlink.h:30: error: syntax error before 'nlmsg_flags'
> /usr/include/linux/netlink.h:31: error: syntax error before 'nlmsg_seq'
> /usr/include/linux/netlink.h:32: error: syntax 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:665: error: storage size of 'snl' isn't known
> udevd.c:669: error: invalid application of 'sizeof' to incomplete type
> 'struc
> t sockaddr_nl'
> udevd.c:683: error: invalid application of 'sizeof' to incomplete type
> 'struc
> t sockaddr_nl'
> udevd.c:665: warning: unused variable 'snl'
> make: *** [udevd.o] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.25233 (%build)
I solved that using:
1. Download 2.6.14
2. Make a link from /usr/src/linux/include/linux to
/usr/include/linux
3. Make a link from /usr/src/linux/include/asm-i386 to
/usr/include/asm
4. Make a link from /usr/src/linux/include/asm-generic to
/usr/include/asm-generic
5. Compile udevd -:)
6. Back all links to the normal place. The correct is to
have this links under /usr/include with the same headers
used to compiled your glibc. But, to compile kernel
related stuff, is common need the actual kernel headers.
It's all.
---
Piter PUNK
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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] 3+ messages in thread
* Re: Udev 0.75 fail to compile
2005-11-10 13:30 Udev 0.75 fail to compile gmourani
2005-11-10 14:05 ` Piter Punk
@ 2005-11-10 14:16 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-11-10 14:16 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 10, 2005 at 12:05:03PM -0200, Piter Punk wrote:
> gmourani@privalodc.com wrote:
> > /usr/include/linux/netlink.h:22: error: syntax error before '__u32'
> > /usr/include/linux/netlink.h:28: error: syntax error before '__u32'
> > /usr/include/linux/netlink.h:30: error: syntax error before 'nlmsg_flags'
> > /usr/include/linux/netlink.h:31: error: syntax error before 'nlmsg_seq'
> > /usr/include/linux/netlink.h:32: error: syntax 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:665: error: storage size of 'snl' isn't known
> > udevd.c:669: error: invalid application of 'sizeof' to incomplete type
> >'struc
> > t sockaddr_nl'
> > udevd.c:683: error: invalid application of 'sizeof' to incomplete type
> >'struc
> > t sockaddr_nl'
> > udevd.c:665: warning: unused variable 'snl'
> >make: *** [udevd.o] Error 1
> >error: Bad exit status from /var/tmp/rpm-tmp.25233 (%build)
>
> I solved that using:
>
> 1. Download 2.6.14
> 2. Make a link from /usr/src/linux/include/linux to
> /usr/include/linux
> 3. Make a link from /usr/src/linux/include/asm-i386 to
> /usr/include/asm
> 4. Make a link from /usr/src/linux/include/asm-generic to
> /usr/include/asm-generic
> 5. Compile udevd -:)
> 6. Back all links to the normal place. The correct is to
> have this links under /usr/include with the same headers
> used to compiled your glibc. But, to compile kernel
> related stuff, is common need the actual kernel headers.
Well, it _is_ common to have recent glibc-kernel-headers, and not
to mess around with the headers from the kernel tree in userspace. :)
Seems your distro has 2.4 headers which may work, if you include
<linux/types.h>.
Kay
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2005-11-10 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-10 13:30 Udev 0.75 fail to compile gmourani
2005-11-10 14:05 ` Piter Punk
2005-11-10 14:16 ` Kay Sievers
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).