From: Dermot Daly (dermot.daly at domain itsmobile.com)
Date: Tue 03 Sep 2002 - 14:13:42 IST
Eric,
I too had woes trying to install a modem driver - My problems were
similar to those below. Fortunately with help from ilug I got it
solved.
The problem lies in the header files that are installed by default - You
problably didn't install the "kernel development" package when
installing RH. All you need to do is to find the kernel sources rpm
(its on one of the RH disks) and install this.
I can't remember the package name but it is something like
kernel-source-..rpm
To install it you type rpm -iv <path to rpm file>
Then re-run your configure and make and it should work fine.
Hope this helps,
Dermot.
-----Original Message-----
From: eric nichols [mailto:matchsprint at domain trackbike.com]
Sent: 03 September 2002 14:00
To: ilug at domain linux.ie
Subject: [ILUG] Please help "make"ing PCTel modules
Hello, I'm completely new to Linux, and to ILUG. Recently I partitioned
my hard drive and installed RedHat7.3. Then I discovered what a winmodem
was. I have a HSP56 World MicroModem, model PCT1789W-CS. I downloaded
PC-TEL's driver (0.9.4) for the modem, opened Linux, mounted the windows
partition and moved the file away from the Dark side. I then unzipped
it, unpacked the tarball and went into the directory, read the README
and INSTALL, then typed:
./configure --with-hal=pct789 --with-kernel-includes=/usr/src/linux-2.4
That went smoothly. I was brought back to the bash#. I then typed
make
and that's where I need help. As a newbie, I don't understand the output
I got. I read the FAQ, INSTALL, README, tried it a second time, and no
luck. Could someone tell me how I can fix it and where I can learn about
it? Thanks a million!!! -Eric
[root at domain HP pctel-0.9.4]# make
Making all in src
make[1]: Entering directory `/usr/tar.gz/pctel-0.9.4/src' Making all in
module
make[2]: Entering directory `/usr/tar.gz/pctel-0.9.4/src/module'
rm -f *~ \#* .*~ .\#*
rm -f ptmodule.o
rm -f ptmodule.o
rm -f ../../modules/pctel.o
gcc -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -f
no-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS
-DEXPORT_SYMTAB -DHAL_PCT789 -I../../i nclude -I/usr/src/linux-2.4
-include /usr/src/linux-2.4/linux/modversions.h -DPACKAGE=\"pctel\"
-DVERSION=\"
0.9.4\" -c -o ptmodule.o ptmodule.c
In file included from ptmodule.c:8:
/usr/include/linux/module.h:60: parse error before `atomic_t'
cc1: warnings being treated as errors
/usr/include/linux/module.h:60: warning: no semicolon at end of struct
or union
/usr/include/linux/module.h:60: warning: no semicolon at end of struct
or union
/usr/include/linux/module.h:62: parse error before `}'
/usr/include/linux/module.h:62: warning: data definition has no type or
storage class
/usr/include/linux/module.h:91: parse error before `}'
In file included from /usr/include/linux/timex.h:152,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from ptmodule.c:12:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory In
file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from ptmodule.c:12:
/usr/include/linux/timex.h:173: field `time' has incomplete type In file
included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from ptmodule.c:12:
/usr/include/asm/signal.h:107: parse error before `sigset_t'
/usr/include/asm/signal.h:107: warning: no semicolon at end of struct or
union
/usr/include/asm/signal.h:110: parse error before `}'
In file included from ptmodule.c:12:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from /usr/include/linux/timer.h:18,
from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from ptmodule.c:12:
/usr/include/linux/spinlock.h:131: parse error before `*'
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:19: warning: implicit declaration of function `atomic_inc'
ptmodule.c:19: invalid use of undefined type `struct module'
ptmodule.c:19: invalid use of undefined type `struct module'
ptmodule.c:19: warning: value computed is not used
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:24: warning: implicit declaration of function `atomic_dec'
ptmodule.c:24: invalid use of undefined type `struct module'
ptmodule.c:24: invalid use of undefined type `struct module'
ptmodule.c:24: warning: value computed is not used
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:29: dereferencing pointer to incomplete type
ptmodule.c:29: invalid use of undefined type `struct module'
ptmodule.c:29: invalid use of undefined type `struct module'
ptmodule.c:29: invalid use of undefined type `struct module'
ptmodule.c:29: warning: implicit declaration of function `atomic_read'
ptmodule.c:29: invalid use of undefined type `struct module'
ptmodule.c:30: warning: control reaches end of non-void function
ptmodule.c: In function `pctel_kmalloc':
ptmodule.c:35: warning: implicit declaration of function `kmalloc'
ptmodule.c:35: `GFP_KERNEL' undeclared (first use in this function)
ptmodule.c:35: (Each undeclared identifier is reported only once
ptmodule.c:35: for each function it appears in.)
ptmodule.c:35: `GFP_ATOMIC' undeclared (first use in this function)
ptmodule.c:35: warning: return makes pointer from integer without a cast
ptmodule.c: In function `pctel_kfree':
ptmodule.c:40: warning: implicit declaration of function `kfree'
ptmodule.c: In function `pctel___udelay':
ptmodule.c:45: warning: implicit declaration of function `__udelay'
make[2]: *** [ptmodule.o] Error 1
make[2]: Leaving directory `/usr/tar.gz/pctel-0.9.4/src/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tar.gz/pctel-0.9.4/src'
make: *** [all-recursive] Error 1
[root at domain HP pctel-0.9.4]#
_____________________________________________________________
email services provided by trackbike.com, your source for alleycat and
trackbike photos. submissions welcome.
_____________________________________________________________
Promote your group and strengthen ties to your members with
email at domain yourgroup.org by Everyone.net http://www.everyone.net/?btn=tag
-- Irish Linux Users' Group: ilug at domain linux.ie http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information. List maintainer: listmaster at domain linux.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:36 GMT