View previous topic :: View next topic |
Author |
Message |
everolth n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jan 2007 Posts: 10
|
Posted: Sun Jan 21, 2007 5:26 pm Post subject: Suspend2-sources install problem [SOLVED] |
|
|
Hi I have been trying to install this kernel on my system but apparently there is a dependence with with the package suspend2-userui, which fails to compile. Is anybody else having the same problem? My computer is a Dell Inspiron 9400 with 2gb ram, and a intel core duo t7000 at 2 ghz. This is the output that I get:
>>> Compiling source in /var/tmp/portage/sys-apps/suspend2-userui-0.6.4-r1/work/suspend2-userui-0.6.4 ...
x86_64-pc-linux-gnu-gcc -march=nocona -O2 -fomit-frame-pointer -pipe -c -o userui_core.o userui_core.c
x86_64-pc-linux-gnu-gcc -march=nocona -O2 -fomit-frame-pointer -pipe -c -o userui_text.o userui_text.c
In file included from userui_text.c:26:
userui.h: In function 'xgetpid':
userui.h:129: error: 'MAX_ERRNO' undeclared (first use in this function)
userui.h:129: error: (Each undeclared identifier is reported only once
userui.h:129: error: for each function it appears in.)
userui.h:129: error: 'errno' undeclared (first use in this function)
make: *** [userui_text.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from userui_core.c:35:
userui.h: In function 'xgetpid':
userui.h:129: error: 'MAX_ERRNO' undeclared (first use in this function)
userui.h:129: error: (Each undeclared identifier is reported only once
userui.h:129: error: for each function it appears in.)
userui_core.c: In function 'sig_hand':
userui_core.c:476: warning: cast to pointer from integer of different size
make: *** [userui_core.o] Error 1
!!! ERROR: sys-apps/suspend2-userui-0.6.4-r1 failed.
Call stack:
ebuild.sh, line 1611: Called dyn_compile
ebuild.sh, line 968: Called qa_call 'src_compile'
environment, line 3114: Called src_compile
suspend2-userui-0.6.4-r1.ebuild, line 37: Called die
!!! emake suspend2ui_text failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/suspend2-userui-0.6.4-r1/temp/build.log'.
On the other hand, the reason I want to use suspend2-sources is because I am unable to activate the sleep states option when I compile a new kernel using gentoo-sources. Apparently, only if I unmark the Symmetric Multi-Processing option then I can activate sleep states but I want to be able to use both of the cores of my processor so I guess I should mark the SMP option... I was kind of hoping to be able to do this by using the suspend2-sources in stead. If anyone knows how to get around this it would be also helpful because I may not need to use suspend2 at all.
Thank you in advance.
Last edited by everolth on Mon Jan 22, 2007 10:02 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
1am3r n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2003 Posts: 6
|
Posted: Mon Jan 22, 2007 4:08 am Post subject: |
|
|
Hi,
I have the same problem. It seems related to fbsplash, because suspend2-userui compiles wenn the fbsplash use-flag is turned off. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
everolth n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jan 2007 Posts: 10
|
Posted: Mon Jan 22, 2007 9:57 am Post subject: |
|
|
Hi,
thanks for the reply I turned off the the fbsplash flag but I am afraid that I still get the same error. ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
1am3r n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2003 Posts: 6
|
Posted: Mon Jan 22, 2007 11:58 am Post subject: |
|
|
I tried it again, and now for me it doesn't compile anymore without fbsplash.
I don't know what i changed between...
So i looked into to error and found that in the end of the file userui.h there is a "workaround" for glibc bugs. I changed that ifdef to an ifndef and now it compiles without problems.
I'm currently at an install and so i will try it on the real system when i'm done with installing. If the problem there still exists, i will fill a bug. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
everolth n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jan 2007 Posts: 10
|
Posted: Mon Jan 22, 2007 10:01 pm Post subject: |
|
|
Good news, I decided to modify the source myself like you pointed out before but I did emerge --sync before doing it and apparently suspend2-userui had been updated and it now compiles with no errors. Thank you very much for your help anyway 1am3r! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|