Re: compiling udev 141 on linux 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Kay Sievers <kay.sievers@xxxxxxxx>:

| 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'
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux