Skip to contentSkip to conversation

udev - changing libsysfs header file location

DISCUSSION Patrick Mansfield 2 participants 2 messages Feb 17, 2004 – Feb 18, 2004

lore
Share & tools
lore
#0 lore raw

Hi Greg -

The location of the libsysfs headers is different when building with udev versus building against the installed sysfsutils.

Can you bk mv the libsysfs header files to the same subdirectory as seen after installing sysfsutil? And then apply patch being sent as a followup email.

That is, move the headers located under udev libsysfs to libsysfs/sysfs.

This would avoid problems with extras programs that want to build with and without udev, for example scsi_id ;-)

To clarify here's the current scsi_id hack, it will not always work right when building udev without klibc, as it will either pick up the locally installed versions of /usr/include/sysfs/libsysfs.h, or if sysfsutils is not installed fail compilation:

#ifdef __KLIBC__
/*
* Assume built under udev with KLIBC
*/
#include <libsysfs.h>
#else
#include <sysfs/libsysfs.h>
#endif

-- Patrick Mansfield

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 8 lines · Patrick Mansfield

Hi Greg -

The location of the libsysfs headers is different when building with udev versus building against the installed sysfsutils.

Can you bk mv the libsysfs header files to the same subdirectory as seen after installing sysfsutil? And then apply patch being sent as a followup email.

Ok, I just moved the libsysfs.h file, the other ones were not necessary. I then edited your patch to handle this and applied it.

thanks,

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel