From: "Gabor Z. Papp" <gzp@papp.hu>
To: linux-hotplug@vger.kernel.org
Subject: Re: compiling udev 141 on linux 2.4
Date: Wed, 29 Apr 2009 18:39:54 +0000 [thread overview]
Message-ID: <x6my9zuww5@gzp> (raw)
In-Reply-To: <310ca25e50765edce514c2eaa65ea3ff@gzp>
* Kay Sievers <kay.sievers@vrfy.org>:
| Maybe you can copy netlink.h from more recent package, never tried
| that.
Done.
| Or maybe just adding #include <linux/types.h> may make most of the
| warnings go away, and NETLINK_KOBJECT_UEVENT you can define to 15, if
| that still fails.
libudev-monitor.c: In function 'udev_monitor_set_receive_buffer_size':
libudev-monitor.c:170: error: 'SO_RCVBUFFORCE' undeclared (first use in this function)
Is this ok? #define SO_RCVBUFFORCE 33
udev-watch.o: In function `udev_watch_end':
/home/gzp/src/udev-141/udev/udev-watch.c:157: undefined reference to `inotify_rm_watch'
Solved with:
#ifdef HAVE_INOTIFY
inotify_rm_watch(inotify_fd, wd);
#endif
udevd.c: In function 'handle_inotify':
udevd.c:549: error: invalid application of 'sizeof' to incomplete type 'struct inotify_event'
udevd.c:549: error: dereferencing pointer to incomplete type
udevd.c:553: error: dereferencing pointer to incomplete type
udevd.c:554: error: dereferencing pointer to incomplete type
udevd.c:554: error: dereferencing pointer to incomplete type
udevd.c:559: error: dereferencing pointer to incomplete type
udevd.c:561: error: dereferencing pointer to incomplete type
udevd.c:562: error: dereferencing pointer to incomplete type
udevd.c:574: error: dereferencing pointer to incomplete type
udevd.c:574: error: 'IN_IGNORED' undeclared (first use in this function)
udevd.c:574: error: 'IN_IGNORED' undeclared solved with:
#define IN_IGNORED 0x00008000
but what about udevd.c:549: error: invalid application of 'sizeof' to incomplete type 'struct inotify_event'?
Its ok to put the whole 'handle_inotify' into #ifdef HAVE_INOTIFY?
If yes, next error:
udevd.o: In function `main':
/home/gzp/src/udev-141/udev/udevd.c:981: undefined reference to `ppoll'
/home/gzp/src/udev-141/udev/udevd.c:1012: undefined reference to `handle_inotify'
prev parent reply other threads:[~2009-04-29 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 21:27 compiling udev 141 on linux 2.4 Gabor Z. Papp
2009-04-23 22:10 ` Kay Sievers
2009-04-23 22:14 ` Gabor Z. Papp
2009-04-23 22:19 ` Kay Sievers
2009-04-29 18:39 ` Gabor Z. Papp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x6my9zuww5@gzp \
--to=gzp@papp.hu \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).