Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ax25-tools emerge problem
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
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Mon Jun 27, 2005 12:25 am    Post subject: ax25-tools emerge problem Reply with quote

Any idea how to emerge ax25-tools? Here is what I get:

Code:
$ sudo emerge ax25-tools

Calculating dependencies ...done!
[ebuild  N    ] media-radio/ax25-tools-0.0.8-r1

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 1) media-radio/ax25-tools-0.0.8-r1 to /
>>> md5 files   ;-) ax25-tools-0.0.8-r1.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) files/digest-ax25-tools-0.0.8-r1
>>> md5 files   ;-) files/ttylinkd.rc
>>> md5 files   ;-) files/ax25-tools-soundmodem.patch
>>> md5 files   ;-) files/ax25d.rc
>>> md5 files   ;-) files/rip98d.rc
>>> md5 files   ;-) files/mheardd.rc
>>> md5 files   ;-) files/rxecho.rc
>>> md5 files   ;-) files/netromd.rc
>>> md5 src_uri ;-) ax25-tools-0.0.8.tar.gz
>>> Unpacking source...
>>> Unpacking ax25-tools-0.0.8.tar.gz to /var/tmp/portage/ax25-tools-0.0.8-r1/work
>>> Source unpacked.
 * Please verify that your /usr/src/linux symlink is pointing
 * to your current kernel sources, and that you did run:
 *
 *   # make dep
 *
 * (//usr/src/linux/include/linux/version.h does not exist)

!!! ERROR: media-radio/ax25-tools-0.0.8-r1 failed.
!!! Function check_version_h, Line 28, Exitcode 0
!!! /usr/src/linux symlink not setup!
!!! If you need support, post the topmost build error, NOT this status message.


TIA,

Mike


Last edited by mslinn on Mon Jun 27, 2005 1:16 am; edited 1 time in total
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Mon Jun 27, 2005 12:57 am    Post subject: Reply with quote

What was your original emerge command? And tell us more about what you're trying to do.

Standard stuff emerges, or it wouldn't be standard. Why? Because it wouldn't get into normal portage.
Back to top
View user's profile Send private message
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Mon Jun 27, 2005 1:17 am    Post subject: Showed the emerge command Reply with quote

I edited my previous posting to show the emerge command

Mike
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Mon Jun 27, 2005 12:08 pm    Post subject: Reply with quote

Two things, first, I'd emerge as root, not su or sudo. su and sudo are NOT the same as root. emerging as root may clear your problem.

Second, the emerge isn't seeing the symlink to your kernel sources:

ls -l /usr/src

You should see a file called linux that points to a longer linux name, that has the word gentoo in it. If it isn't there, then:

ln -s /usr/src/linux-2.6.11-gentoo-rc9 /usr/src/linux

Put in the proper linux-2.x.x... name. bash's autocompletion is helpful, hit <TAB> once you've entered the first part of the name.
Back to top
View user's profile Send private message
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Mon Jun 27, 2005 2:05 pm    Post subject: Reply with quote

dkmweeks wrote:
I'd emerge as root, not su or sudo. su and sudo are NOT the same as root. emerging as root may clear your problem.

I've been using sudo for quite a while with emerge. I rather doubt that is the problem. I'm a 'sudo all' user.

dkmweeks wrote:

Second, the emerge isn't seeing the symlink to your kernel sources:

I don't believe that is the problem either, although we're possibly moving in the right direction:

Code:

$ ls -l /usr/src
total 7
lrwxrwxrwx   1 root root   23 Jun 23 21:23 linux -> linux-2.6.11-gentoo-r11/
drwxr-xr-x  19 root root 1336 Jan 19 11:40 linux-2.6.10-gentoo-r5/
drwxr-xr-x  19 root root 1368 Mar  7 13:15 linux-2.6.10-gentoo-r6/
drwxr-xr-x  18 root root  664 Jun 23 21:23 linux-2.6.11-gentoo-r11/
drwxr-xr-x  19 root root 1280 Apr  9 23:13 linux-2.6.11-gentoo-r4/
drwxr-xr-x  19 root root  656 Apr 13 23:01 linux-2.6.11-gentoo-r5/
drwxr-xr-x  19 root root 1280 Apr 19 08:16 linux-2.6.11-gentoo-r6/
drwxr-xr-x  19 root root 1280 May 24 21:36 linux-2.6.11-gentoo-r8/
drwxr-xr-x  19 root root 1312 Jun  4 22:25 linux-2.6.11-gentoo-r

$ sudo locate version.h|grep include/linux/version.h
/usr/src/linux-2.6.11-gentoo-r4/include/linux/version.h
/usr/src/linux-2.6.11-gentoo-r6/include/linux/version.h
/usr/src/linux-2.6.11-gentoo-r8/include/linux/version.h
/usr/src/linux-2.6.11-gentoo-r9/include/linux/version.h
/usr/src/linux-2.6.10-gentoo-r5/include/linux/version.h
/usr/src/linux-2.6.10-gentoo-r6/include/linux/version.h
/usr/include/linux/version.h


Looks like the path that the install script wants (//usr/src/linux/include/linux/version.h) is a bit off. There are 653 files in /usr/src/linux/include/linux, including 636 .h files, but none called version.h

Mike
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Mon Jun 27, 2005 2:53 pm    Post subject: Reply with quote

Yeah, but your first post's error report complains that the link isn't there. Huh? I see it in your ls -l. Try:

ln -lf /usr/src/linux-2.6.11-gentoo-r11 /usr/src/linux

This will reset the link, which will help if that is the problem.
Back to top
View user's profile Send private message
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Mon Jun 27, 2005 3:16 pm    Post subject: No luck Reply with quote

I tried recreating the symlink, without using a hard link, with the same result.

Code:
$ sudo ln -sf /usr/src/linux-2.6.11-gentoo-r11 /usr/src/linux
$ sudo emerge ax25-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) media-radio/ax25-tools-0.0.8-r1 to /
>>> md5 files   ;-) ax25-tools-0.0.8-r1.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) files/digest-ax25-tools-0.0.8-r1
>>> md5 files   ;-) files/ttylinkd.rc
>>> md5 files   ;-) files/ax25-tools-soundmodem.patch
>>> md5 files   ;-) files/ax25d.rc
>>> md5 files   ;-) files/rip98d.rc
>>> md5 files   ;-) files/mheardd.rc
>>> md5 files   ;-) files/rxecho.rc
>>> md5 files   ;-) files/netromd.rc
>>> md5 src_uri ;-) ax25-tools-0.0.8.tar.gz
>>> Unpacking source...
>>> Unpacking ax25-tools-0.0.8.tar.gz to /var/tmp/portage/ax25-tools-0.0.8-r1/work
>>> Source unpacked.
 * Please verify that your /usr/src/linux symlink is pointing
 * to your current kernel sources, and that you did run:
 *
 *   # make dep
 *
 * (//usr/src/linux/include/linux/version.h does not exist)

!!! ERROR: media-radio/ax25-tools-0.0.8-r1 failed.
!!! Function check_version_h, Line 28, Exitcode 0
!!! /usr/src/linux symlink not setup!
!!! If you need support, post the topmost build error, NOT this status message.


Can anyone verify if /usr/src/linux/include/linux/version.h is *supposed* to exist?

Mike
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Mon Jun 27, 2005 3:29 pm    Post subject: Reply with quote

dweeks@david01 ~ $ ls -l /usr/src/linux/include/linux/version.h
-rw-r--r-- 1 root root 136 Jun 7 23:05 /usr/src/linux/include/linux/version.h
dweeks@david01 ~ $

It's there. I noticed that your error is looking for: //usr/src/.... Uh, looks like a bad build/packaging. //usr doesn't exist.

I think that is it; there's a legitimate bug.
Back to top
View user's profile Send private message
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Mon Jun 27, 2005 8:43 pm    Post subject: Reply with quote

Typically double slashes are not problematic. The *real* problem is that there is no file called version.h there.

I agree, it looks like a bug.

Mike
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Mon Jun 27, 2005 9:23 pm    Post subject: Reply with quote

Look for it in your earlier rc's. I'm guessing those have it, and rc11 doesn't.
Back to top
View user's profile Send private message
mslinn
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 206
Location: Half Moon Bay, CA

PostPosted: Tue Jun 28, 2005 2:12 am    Post subject: Reply with quote

It's true, slightly older sources have the file:
Code:
$ find . -name version.h|grep "/include/linux/version.h"
./linux-2.6.11-gentoo-r4/include/linux/version.h
./linux-2.6.11-gentoo-r6/include/linux/version.h
./linux-2.6.11-gentoo-r8/include/linux/version.h
./linux-2.6.11-gentoo-r9/include/linux/version.h
./linux-2.6.10-gentoo-r5/include/linux/version.h
./linux-2.6.10-gentoo-r6/include/linux/version.h
.

However, the path to the file is incorrect, so even after I change the symlink it doesn't compile anyway. Time to file a bug report.

Mike
Back to top
View user's profile Send private message
dkmweeks
Apprentice
Apprentice


Joined: 26 Apr 2005
Posts: 202
Location: Tampa, Florida, USA

PostPosted: Tue Jun 28, 2005 10:17 pm    Post subject: Reply with quote

Good luck. I'm glad we got to it.
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