Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Speedfreq fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bjchamb
n00b
n00b


Joined: 30 Jan 2004
Posts: 17

PostPosted: Sun Mar 21, 2004 6:18 pm    Post subject: Speedfreq fails to compile Reply with quote

For some reason, when I try to emerge speedfreq, it fails, complaining about numerous warnings and errors in the file python.c, most of them appear to be around line 380-382. Things such as NULL undeclared here, initializer element is not constant and several other problems. What is wrong? I had this emerge a couple of days ago, but had to reinstall because I messed things up. I am using mm-sources on an Acer Travelmate 800. It is a laptop with Pentium Centrino. I have ACPI compiled into the kernel as well as CPU frequenecy scaling and Intel Enhanced Speedstep. Can anyone help?
Back to top
View user's profile Send private message
gianpi
n00b
n00b


Joined: 20 Mar 2004
Posts: 24

PostPosted: Sun Mar 21, 2004 9:31 pm    Post subject: Re: Speedfreq fails to compile Reply with quote

I had the same problem and solved in this way:
download the sources and unpack them. Enter the new directory and edit the Makefile changing python version from 2.2 to 2.3. Then ./configure and make/make install. it should work (but pay attention to the scripts: infact it tries to install them in /etc/rc.d/init.d/ instead of /etc/init.d/).
hope it works.

bye
gianpi
Back to top
View user's profile Send private message
bjchamb
n00b
n00b


Joined: 30 Jan 2004
Posts: 17

PostPosted: Sun Mar 21, 2004 10:08 pm    Post subject: This didn't work Reply with quote

The compilation succeeded, but the installed scripts were vastly incorrect. It was a pain to uninstall these scripts. Any other ideas?
Back to top
View user's profile Send private message
bjchamb
n00b
n00b


Joined: 30 Jan 2004
Posts: 17

PostPosted: Sun Mar 21, 2004 10:20 pm    Post subject: Reply with quote

Never mind, I made it work. Instead of using make install, after finishing the make I copied the scripts that the ebuild would have used (read the ebuild file) instead of having the Makefile control it. This fixing both the scripts and the locations, but it's a pain in the ass... so much so that if I knew how to make new ebuilds I'd try and make a new one. Thanks for the help man
Back to top
View user's profile Send private message
gianpi
n00b
n00b


Joined: 20 Mar 2004
Posts: 24

PostPosted: Sun Mar 21, 2004 11:24 pm    Post subject: Reply with quote

bjchamb wrote:
Never mind, I made it work. Instead of using make install, after finishing the make I copied the scripts that the ebuild would have used (read the ebuild file) instead of having the Makefile control it. This fixing both the scripts and the locations, but it's a pain in the ass... so much so that if I knew how to make new ebuilds I'd try and make a new one. Thanks for the help man


thanks for suggestion, but I have one more for you ;)
just go in /usr/include and make a link from python2.3 renaming the link with python2.2. In this way the ebuild will emerge with no problem. then add to default runlevel, etc...
now it works perfectly.

bye
gianpi
Back to top
View user's profile Send private message
bjchamb
n00b
n00b


Joined: 30 Jan 2004
Posts: 17

PostPosted: Mon Mar 22, 2004 12:08 am    Post subject: Reply with quote

Good idea... why didn't I do that first?
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Tue Mar 23, 2004 8:31 am    Post subject: Reply with quote

...I was under the impression that python2.2 was kept around by the gentoo python builds (as python2.2) because it was generally useful, even though 2.3 is now the default...isn't what we really want to do is to tell speedfreq to use 2.2, not just go around making symlinks?

~Mac~
Back to top
View user's profile Send private message
gianpi
n00b
n00b


Joined: 20 Mar 2004
Posts: 24

PostPosted: Tue Mar 23, 2004 5:36 pm    Post subject: Reply with quote

well, you could be right...but should we keep 2 versions of python just because of speedfreq?
Back to top
View user's profile Send private message
NiXZe
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 77
Location: Uppsala Sweden

PostPosted: Sun Mar 28, 2004 3:15 pm    Post subject: Reply with quote

my way:
Code:
ebuild /usr/portage/sys-apps/speedfreq/speedfreq-0.7.2.ebuild merge

it will fails so now we do:
Code:
mcedit /var/tmp/portage/speedfreq-0.7.2/work/speedfreq-0.7.2/Makefile

and change the 2.2 to 2.3
and then we rerun the
Code:
ebuild /usr/portage/sys-apps/speedfreq/speedfreq-0.7.2.ebuild merge

_________________
What? Where? Oh! this one, it's Gentoo.
If you don't have anything constructive to say, you might want to consider staying quiet instead.
To many destructive comments, which in no way will help making the Gentoo community better.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum