Click to See Complete Forum and Search --> : 56k Modem driver issues


panthrax
04-25-2004, 03:44 AM
I am a newbie to linux almost entirely. I started playing with Slackware 9.1 for a few weeks untill I moved over to Fedora Core 1 which I am using now.

I have a HSF Conexant modem, along with linux drivers for it. In Slackware 9.1, I could easily install these drivers and be on the internet in no time. In Fedora Core 1 however, it is a different story.

After seeing it error towards the very end, it told me about a log file it generated, and for me to check it. Since I am a total newb to this, I'll let you gurus out there take a gander at this gobbly-gook and see if you can help me out.

../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
rm -f *.o *.a
../../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
make[1]: Entering directory `/usr/lib/hsf/modules/osspec'
rm -f *.o *.a
make[1]: Leaving directory `/usr/lib/hsf/modules/osspec'
* compiling (gcc) mod_osspec.c
make -C osspec all
../../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
make[1]: Entering directory `/usr/lib/hsf/modules/osspec'
* compiling (gcc) osmemory.c
* compiling (gcc) osstring.c
* compiling (gcc) osdebug.c
* compiling (gcc) osfloat.c
* compiling (gcc) osstdio.c
* compiling (gcc) osmodule.c
* compiling (gcc) osnvm.c
* compiling (gcc) ostime.c
* compiling (gcc) linuxres.c
ar cr libosspec.a osmemory.o osstring.o osdebug.o osfloat.o osstdio.o osmodule.o osnvm.o ostime.o linuxres.o
make[1]: Leaving directory `/usr/lib/hsf/modules/osspec'
> linking kernel module hsfosspec.o

* compiling (gcc) mod_basic2.c
> linking kernel module hsfbasic2.o

* compiling (gcc) mod_ich.c
> linking kernel module hsfich.o

* compiling (gcc) mod_via.c
> linking kernel module hsfvia.o

* compiling (gcc) mod_ali.c
> linking kernel module hsfali.o

* compiling (gcc) mod_yukon.c
> linking kernel module hsfyukon.o

* compiling (gcc) mod_engine.c
> linking kernel module hsfengine.o

* compiling (gcc) serial_hsf.c
In file included from serial_hsf.c:897:
serial_core.c: In function `uart_close':
serial_core.c:1073: error: invalid operands to binary ==
make: *** [serial_hsf.o] Error 1

mdwatts
04-25-2004, 10:59 AM
I only received two hits while searching G4L for "cannot find compiler matching" (http://www.google.com/linux?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22cannot+find+compiler+matching%22&btnG=Google+Search) and neither were very helpful.

All I can think of is to ensure you have the development packages installed (including gcc) and the kernel source for your running kernel version.

Anyone else ever had this problem?

GaryJones32
04-26-2004, 01:56 AM
first backup the file /usr/lib/hsf/modules/serial_core.c

then change line 1073 to:

if ((atomic_read(&(tty->count)) == 1) && (state->count != 1)) {


the complaint about gcc is the module may contain precompiled code
created with gcc 2.95
still 2.95 is the default for kernel compiling and some people keep it around along with their new gcc3 one for this reason.
it might work ok though even though it's complaining

you might have to use add the -f (force)
option after the lines that load the module in modules.conf
or
insmod modulename -f
if you do it that way

panthrax
04-26-2004, 02:09 AM
Could you run that by me again? Except this time in newbie-mode?

I have a basic understanding of what you are trying to tell me but I am still a bit confused over the whole process.

I guess I am kinda asking for a "Step one: do this", "Step two: do that" kinda thing if you don't mind.

Thanks for your help. BTW, how sure are you that this is going to solve the problem? Thanks

mdwatts
04-26-2004, 11:01 AM
Originally posted by panthrax
Could you run that by me again? Except this time in newbie-mode?


From the instructions GaryJones32 posted, first make a backup copy of the file you will need to manually edit.

As root

su -
<root password>

cd /usr/lib/hsf/modules

cp serial_core.c serial_core.c.orig

Now use whatever editor (commandline or gui) you are comfortable with and edit serial_core.c.

Go down to line 1073 and change it to

if ((atomic_read(&(tty->count)) == 1) && (state->count != 1)) {

and then save the file. Now start the driver installation again.