PDA

View Full Version : SLES 11 SP4 libudev.h is missing



trdillon1
14-Oct-2015, 17:11
I am trying to install an application and the make fails because libudev.h is not found. I have install basically all of the libudev things. What am I missing?

S | Name | Summary | Type
--+----------------+---------------------------------------------------+--------
i | libudev-mm0 | A Rule-Based Device Node and Kernel Event Manager | package
i | libudev0 | A Rule-Based Device Node and Kernel Event Manager | package
i | libudev0-32bit | A Rule-Based Device Node and Kernel Event Manager | package

Below is the exact error:

In file included from disk/disk.cc:15:
disk/disk.h:13:21: error: libudev.h: No such file or directory
disk/disk.cc: In function ‘void broadcastEvent(udev_device*)’:
disk/disk.cc:114: error: ‘udev_device_get_action’ was not declared in this scope
disk/disk.cc: In function ‘void threadCleanup(void*)’:
disk/disk.cc:144: error: ‘udev_unref’ was not declared in this scope
disk/disk.cc: In function ‘void* eventListenerThread(void*)’:
disk/disk.cc:156: error: ‘udev_new’ was not declared in this scope
disk/disk.cc:162: error: ‘udev_monitor_new_from_netlink’ was not declared in this scope
disk/disk.cc:164: error: ‘udev_unref’ was not declared in this scope
disk/disk.cc:169: error: ‘udev_monitor_filter_add_match_subsystem_devtype’ was not declared in this scope
disk/disk.cc:170: error: ‘udev_monitor_enable_receiving’ was not declared in this scope
disk/disk.cc:176: error: ‘udev_monitor_receive_device’ was not declared in this scope
disk/disk.cc:182: error: ‘udev_device_get_devnum’ was not declared in this scope
disk/disk.cc:190: error: ‘udev_device_unref’ was not declared in this scope
disk/disk.cc: In function ‘bool forEachDevice(bool (*)(udev_device*, void*), void*, BCDiskRef*)’:
disk/disk.cc:244: error: ‘udev_new’ was not declared in this scope
disk/disk.cc:249: error: ‘udev_enumerate_new’ was not declared in this scope
disk/disk.cc:251: error: ‘udev_unref’ was not declared in this scope
disk/disk.cc:255: error: ‘udev_enumerate_add_match_subsystem’ was not declared in this scope
disk/disk.cc:256: error: ‘udev_enumerate_scan_devices’ was not declared in this scope
disk/disk.cc:259: error: ‘udev_enumerate_get_list_entry’ was not declared in this scope
disk/disk.cc:261: error: ‘udev_list_entry_foreach’ was not declared in this scope
disk/disk.cc:261: error: expected `;' before ‘{’ token
disk/disk.cc:441: error: expected `}' at end of input
disk/disk.cc: At global scope:
disk/disk.cc:236: warning: ‘bool forEachDevice(bool (*)(udev_device*, void*), void*, BCDiskRef*)’ defined but not used
make: *** [disk/disk.o] Error 1

jmozdzen
14-Oct-2015, 17:25
Hi trdillon1,

I am trying to install an application and the make fails because libudev.h is not found. I have install basically all of the libudev things. What am I missing?

S | Name | Summary | Type
--+----------------+---------------------------------------------------+--------
i | libudev-mm0 | A Rule-Based Device Node and Kernel Event Manager | package
i | libudev0 | A Rule-Based Device Node and Kernel Event Manager | package
i | libudev0-32bit | A Rule-Based Device Node and Kernel Event Manager | package

I'd have expected a corresponding "-devel" package - have you installed the SDK (you can download it for free and install it as an add-on product)? I'm off-site, so I currently cannot check if some matching package is provided with the SDK...

Regards,
Jens

smflood
14-Oct-2015, 17:39
On 14/10/2015 17:34, jmozdzen wrote:

> I'd have expected a corresponding "-devel" package - have you installed
> the SDK (you can download it for free and install it as an add-on
> product)? I'm off-site, so I currently cannot check if some matching
> package is provided with the SDK...

The libudev-devel package included within the SLE11 SP4 SDK installs
/usr/include/libudev.h.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

trdillon1
14-Oct-2015, 19:02
How do I install the SDK?

thsundel
15-Oct-2015, 08:04
How do I install the SDK?

https://www.suse.com/documentation/sles11/book_sle_deployment/data/sect1_2_chapter_book_sle_deployment.html / https://www.suse.com/documentation/sled-12/book_sle_deployment/data/sec_add-ons_sdk.html
https://www.novell.com/support/kb/doc.php?id=7015337

Thomas

trdillon1
16-Oct-2015, 16:43
Thanks everyone. This is now resovled.