View previous topic :: View next topic |
Author |
Message |
etrek n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Jun 2002 Posts: 58
|
Posted: Mon Aug 16, 2004 1:12 pm Post subject: Genkernel - ERROR: Failed to compile.... (resolved) |
|
|
I tried searching the forums before posting but not much luck (to be fair, my searching skills may not be all that good). I'm trying to compile the 2.6.8 kernel and I keep getting errors. I emerged udev thinking that might be the issue but still no go. Should I set a USE flag or something? I am very much a n00b in these matters so AIA.
From the genkernel log here's what I get:
Code: |
.
.
.
.
../klibc/include/stdio.h:67: warning: return type defaults to `int'
../klibc/include/stdio.h: In function `ftell':
../klibc/include/stdio.h:68: error: syntax error before "lseek"
make[2]: *** [snprintf.o] Error 1
make[2]: Leaving directory `/var/tmp/genkernel/udev-030/klibc/klibc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/genkernel/udev-030/klibc'
make: *** [/var/tmp/genkernel/udev-030/klibc/klibc/crt0.o] Error 2
* Gentoo Linux Genkernel; Version 3.0.2e
* ERROR: Failed to compile the "USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf" target...
.
.
.
|
Last edited by etrek on Mon Aug 16, 2004 11:15 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babab00m n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_flexo.gif)
Joined: 10 May 2004 Posts: 12
|
Posted: Mon Aug 16, 2004 3:02 pm Post subject: |
|
|
same problem here |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
etrek n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Jun 2002 Posts: 58
|
Posted: Mon Aug 16, 2004 11:14 pm Post subject: Got the answer! |
|
|
I finally got the answer in the bugtraq system. Of course as a n00b I searched everywhere but there - I did mention earlier my searching ability was suspect! I've documented this in case others share my deficiency!
Here's the bugtraq entry:
Here's the relevent patch info (that worked for me anyway):
All I did was edit the "/usr/share/genkernel/gen_compile.sh" file, skipped down to the lines indicated in the patch (see link above) and simply commented out (using a "#") the line indicated by the "-" and added the line indicated by the "+" (excluding the "+" of course). I then did a
Code: | genkernel --install all |
and all was well. YMMV of course. I am still inexperienced with this.
Note: It is interesting that the "patch" file in this case was just a documentation of the fix. At first I was a confused expecting it to be something I executed or compiled in... It appears I still have a long long way to go..
Cheers,
E. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OneOfMany Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 19 Nov 2003 Posts: 108 Location: Portland, OR USA
|
Posted: Tue Aug 17, 2004 2:58 am Post subject: |
|
|
Only differences I see between the lines are the double versus single quotes (doubt that matters) and the addition of...
Code: | KERNEL_DIR=$KERNEL_DIR |
Inside the quotes. I'm gonna test if just changing that fixes it in a second.
<edit>
Looks like you need to use double quotes if you're using one of the environment variables (the things preceeded by a dollar sign). So that probably is needed too.
</edit> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
etrek n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Jun 2002 Posts: 58
|
Posted: Tue Aug 17, 2004 2:11 pm Post subject: Line diffs |
|
|
I'm not so sure - I think single and double quotes mean subtly different things.
Anyhow for me the change listed in the patch worked as advertised.
I'd still recommend commenting out the existing line no matter how trivial. In my experience simple mods like that can trip you up later on especially if you need to restore.
As a side note (and quite possibly a major overstatement of the obvious) I just realized the +/- nomenclature of the patch file is a CSV/Subversion style DIFF report. Go figure..
Cheers.
E. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drescherjm Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Fri Sep 10, 2004 3:59 pm Post subject: |
|
|
I have the same problem now with genkernel Version 3.0.2f and gentoo-dev-sources 2.6.8-r3. I am not using udev. I never emerged it but genkernel is failing while compiling udev. I see that genkernel 3.0.2f is already patched so that will not fix my problem. Any ideas. The problem is on a Dell centrino laptop as my Athlon desktops worked fine... _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|