View previous topic :: View next topic |
Author |
Message |
bjchamb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Jan 2004 Posts: 17
|
Posted: Sun Mar 21, 2004 6:18 pm Post subject: Speedfreq fails to compile |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
gianpi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2004 Posts: 24
|
Posted: Sun Mar 21, 2004 9:31 pm Post subject: Re: Speedfreq fails to compile |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bjchamb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Jan 2004 Posts: 17
|
Posted: Sun Mar 21, 2004 10:08 pm Post subject: This didn't work |
|
|
The compilation succeeded, but the installed scripts were vastly incorrect. It was a pain to uninstall these scripts. Any other ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bjchamb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Jan 2004 Posts: 17
|
Posted: Sun Mar 21, 2004 10:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
gianpi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2004 Posts: 24
|
Posted: Sun Mar 21, 2004 11:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bjchamb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Jan 2004 Posts: 17
|
Posted: Mon Mar 22, 2004 12:08 am Post subject: |
|
|
Good idea... why didn't I do that first? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MacMasta Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18edd90a3d630412b34d5.jpg)
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Tue Mar 23, 2004 8:31 am Post subject: |
|
|
...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 |
|
![](templates/gentoo/images/spacer.gif) |
gianpi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2004 Posts: 24
|
Posted: Tue Mar 23, 2004 5:36 pm Post subject: |
|
|
well, you could be right...but should we keep 2 versions of python just because of speedfreq? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NiXZe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/109044482146d3d5ba6c84a.png)
Joined: 22 May 2003 Posts: 77 Location: Uppsala Sweden
|
Posted: Sun Mar 28, 2004 3:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|