Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13197 - hsfconfig dies unable to find gcc. Also missing lspci dependancy
Summary: hsfconfig dies unable to find gcc. Also missing lspci dependancy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-03 18:02 UTC by jbooth
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jbooth 2003-01-03 18:02:55 UTC
After doing a fresh emerge rsync and emerge -u world/system, I installed
hsflinmodem so I could drive my winmodem on a vaio laptop. I ran hsfconfig and
it asked if I wanted to auto-detect the modem, I said yes then it died with no
lspci.

Installed lspci, and it detected [the modem card], then continued up until the
point it asked about where the linux kernel source is. I told it the default
answer (which is correct; /lib/modules/2.4.19/build a symlink to
/usr/src/linux-2.4.19). It then died with the following error:

/usr/sbin/hsfconfig: line 1: gcc: command not found

I checked, 'which gcc' (-> /usr/i686-pc-linux-gnu/gcc-bin/3.2/gcc) and 'whereis
gcc' (-> gcc: ). The location the binary resides is in my path, but the
hsfconfig script isn't seeing that for some reason.

I can come up with a couple bad 'fake' solutions offhand, but don't have a
single good clean solution. Thus in as a bug it goes. Hopefully to someone who
knows bash better than I do it'll be an easy fix.
Comment 1 SpanKY gentoo-dev 2003-01-03 18:55:39 UTC
do you have colorgcc on the box ?
if so update it and then try again
Comment 2 jbooth 2003-01-03 21:35:56 UTC
I didn't have it, I added colorgcc, tried hsfconfig; still no dice. Same error.
Comment 3 Hanno Böck gentoo-dev 2003-01-05 05:48:47 UTC
I also noticed that bug and i'm already working on it.
the problem is that hsfconfig seems to look for gcc only in /usr/bin, not in the
full path.
A workaround is to edit
/usr/lib/hsf/modules/common.mak
and change the cc-variable to point to the complete location of your gcc.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-05 11:27:30 UTC
Hanno, maybe change it to set it to `which gcc` ?
Comment 5 bytesmythe 2003-01-11 19:21:31 UTC
lspci is in sys-apps/pciutils, I believe. This package should be a dependency
for net-dialup/hsflinmodem.

I received the same error from hsfconfig and had to revert to an older version
of gcc to make it work. The "env-update && source /etc/profile" trick that fixes
the ncurses error when running make menuconfig to build the kernel doesn't work
in this case.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 13:32:52 UTC
Ok, this should be fixed by gcc-config-1.3.0 or later.
Comment 7 Hanno Böck gentoo-dev 2003-01-29 08:38:31 UTC
fixed.