Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135192

Summary: sys-power/cpufrequtils-002 fails: cannot find libsysfs.so.1
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: gentoobugs
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Whitlock 2006-06-01 11:57:42 UTC
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: warning: libsysfs.so.1, needed by /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so: undefined reference to `sysfs_write_attribute'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so: undefined reference to `sysfs_read_attribute'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so: undefined reference to `sysfs_close_attribute'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so: undefined reference to `sysfs_path_is_dir'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libcpufreq.so: undefined reference to `sysfs_open_attribute'
collect2: ld returned 1 exit status


# locate 'libsysfs.*'
/lib/libsysfs.so
/lib/libsysfs.so.2.0.0
/lib/libsysfs.so.2
/usr/lib/libsysfs.a
/usr/lib/libsysfs.la
/usr/lib/libsysfs.so
/usr/share/doc/sysfsutils-2.0.0/libsysfs.txt.gz
/usr/include/sysfs/libsysfs.h


# emerge -s sysfs
Searching...
[ Results for search key : sysfs ]
[ Applications found : 1 ]

*  sys-fs/sysfsutils
      Latest version available: 2.0.0
      Latest version installed: 2.0.0
      Size of files: 382 kB
      Homepage:      http://linux-diag.sourceforge.net/Sysfsutils.html
      Description:   System Utilities Based on Sysfs
      License:       GPL-2 LGPL-2.1


Looks like cpufrequtils is looking for the old libsysfs, but I have version 2 installed.  Does sysfsutils need to be slotted, or can the cpufrequtils build simply be modified to use the newer libsysfs.so.2?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 12:01:39 UTC
Run revdep-rebuild, then try again.
Comment 2 Matt Whitlock 2006-06-01 12:36:21 UTC
Yep, solved it.  Sorry to bug you.  Thanks for the help!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 12:38:04 UTC
Thanks for reporting back, closing.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-04 01:20:58 UTC
*** Bug 135475 has been marked as a duplicate of this bug. ***