Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244588 - sys-power/cpufreqd-2.2.1 compilation problem
Summary: sys-power/cpufreqd-2.2.1 compilation problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-27 05:30 UTC by Andrey
Modified: 2009-10-16 13:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build.log (build.log,42.22 KB, text/plain)
2008-10-27 05:32 UTC, Andrey
Details
emerge --info (emerge.info,3.44 KB, text/plain)
2008-10-27 05:34 UTC, Andrey
Details
cpufreqd-2.2.1 lm_sensors dependency patch (cpufreqd-2.2.1-lm_sensors-dep.patch,356 bytes, patch)
2008-10-29 18:46 UTC, impulze
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2008-10-27 05:30:59 UTC
Problem compiling the package. Probable cause: lm_sensors-3.0.2

(cd .libs && rm -f cpufreqd_nvclock.la && ln -s ../cpufreqd_nvclock.la cpufreqd_nvclock.la)
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -W -Wall -Wshadow -W -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wundef -Wbad-function-cast -Waggregate-return -std=c99 -D_POSIX_SOURCE -D_GNU_SOURCE -I.. -I//usr/include -march=nocona -O2 -pipe -MT cpufreqd_sensors_la-cpufreqd_sensors.lo -MD -MP -MF .deps/cpufreqd_sensors_la-cpufreqd_sensors.Tpo -c -o cpufreqd_sensors_la-cpufreqd_sensors.lo `test -f 'cpufreqd_sensors.c' || echo './'`cpufreqd_sensors.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -W -Wall -Wshadow -W -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wundef -Wbad-function-cast -Waggregate-return -std=c99 -D_POSIX_SOURCE -D_GNU_SOURCE -I.. -I//usr/include -march=nocona -O2 -pipe -MT cpufreqd_sensors_la-cpufreqd_sensors.lo -MD -MP -MF .deps/cpufreqd_sensors_la-cpufreqd_sensors.Tpo -c cpufreqd_sensors.c  -fPIC -DPIC -o .libs/cpufreqd_sensors_la-cpufreqd_sensors.o
cpufreqd_sensors.c:29: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
cpufreqd_sensors.c: In function 'sensors_exit':
cpufreqd_sensors.c:104: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c: In function 'sensors_get':
cpufreqd_sensors.c:136: warning: implicit declaration of function 'sensors_get_feature'
cpufreqd_sensors.c:136: warning: nested extern declaration of 'sensors_get_feature'
cpufreqd_sensors.c:136: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:136: error: 'struct sensors_monitor' has no member named 'value'
cpufreqd_sensors.c:137: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:137: error: 'struct sensors_monitor' has no member named 'value'
cpufreqd_sensors.c:138: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c: In function 'validate_feature_name':
cpufreqd_sensors.c:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
cpufreqd_sensors.c:149: error: 'feat' undeclared (first use in this function)
cpufreqd_sensors.c:149: error: (Each undeclared identifier is reported only once
cpufreqd_sensors.c:149: error: for each function it appears in.)
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:156: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:159: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c:163: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
cpufreqd_sensors.c:163: error: too few arguments to function 'sensors_get_detected_chips'
cpufreqd_sensors.c:165: warning: implicit declaration of function 'sensors_get_all_features'
cpufreqd_sensors.c:165: warning: nested extern declaration of 'sensors_get_all_features'
cpufreqd_sensors.c:167: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
cpufreqd_sensors.c:179: error: 'struct sensors_monitor' has no member named 'feat'
cpufreqd_sensors.c:180: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c:184: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c:185: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c:187: error: 'struct sensors_monitor' has no member named 'next'
cpufreqd_sensors.c: In function 'sensor_evaluate':
cpufreqd_sensors.c:239: error: 'struct sensors_monitor' has no member named 'value'
cpufreqd_sensors.c:242: error: 'struct sensors_monitor' has no member named 'value'
cpufreqd_sensors.c:242: error: 'struct sensors_monitor' has no member named 'value'
make[1]: *** [cpufreqd_sensors_la-cpufreqd_sensors.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-power/cpufreqd-2.2.1/work/cpufreqd-2.2.1/src'
make: *** [install-recursive] Error 1
 * 
 * ERROR: sys-power/cpufreqd-2.2.1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_install
 * environment, line 2841:  Called die
 * The specific snippet of code:
 * make DESTDIR="${D}" install || die "make install failed";
 * The die message:
 * make install failed


Reproducible: Always
Comment 1 Andrey 2008-10-27 05:32:06 UTC
Created attachment 169984 [details]
Complete build.log
Comment 2 Andrey 2008-10-27 05:34:28 UTC
Created attachment 169986 [details]
emerge --info
Comment 3 impulze 2008-10-29 18:36:59 UTC
you most likely have lm_sensors-3* installed, which is not supported by cpufreqd, see
http://www.linux.it/~malattia/wiki/index.php/Cpufreqd
[...]
libsensors3 (not ported to libsensors4 yet)
[...]
Comment 4 impulze 2008-10-29 18:46:43 UTC
Created attachment 170247 [details, diff]
cpufreqd-2.2.1 lm_sensors dependency patch
Comment 5 Andrey 2008-10-29 19:49:30 UTC
(In reply to comment #3)
> you most likely have lm_sensors-3* installed, which is not supported by
> cpufreqd, see
> http://www.linux.it/~malattia/wiki/index.php/Cpufreqd
> [...]
> libsensors3 (not ported to libsensors4 yet)
> [...]
> 

Yes, I've mentioned that I have lm_sensors-3.0.2. Thanks for the info.
Comment 6 Andrey 2008-10-31 22:59:43 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > you most likely have lm_sensors-3* installed, which is not supported by
> > cpufreqd, see
> > http://www.linux.it/~malattia/wiki/index.php/Cpufreqd
> > [...]
> > libsensors3 (not ported to libsensors4 yet)
> > [...]
> > 
> 
> Yes, I've mentioned that I have lm_sensors-3.0.2. Thanks for the info.
> 

No problem compiling with 2.10.7
Comment 7 Gregg Casillo 2009-06-02 07:29:53 UTC
I confirm that the patch submitted in comment #4 does The Right Thing, and cpufreqd-2.2.1 will compile against lm_sensors-2.10.7. So is there any interest in patching, bumping, and closing this? And is there any word on when/how we might be able to build against lm_sensors-3?
Comment 8 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-16 13:22:20 UTC
comitted to cvs. thanks