LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I get a missing modeversions.h in compiling the conexant hcf driver (https://www.linuxquestions.org/questions/linux-software-2/i-get-a-missing-modeversions-h-in-compiling-the-conexant-hcf-driver-300134/)

the_one2003a 03-10-2005 04:23 PM

I get a missing modeversions.h in compiling the conexant hcf driver
 
Hi,
I just tried to compile a modem driver (hcf conexant driver 0.99 I know that new version exist but this one is free) and my linux kernel is 2.6.10

when I wanted to compile the driver it messages me :

WARNING: missing file /lib/modules/2.6.10/build/include/linux/modversions.h

I don't know how to make this include file I also used "make dep" before runnig "make" in compiling kernel but it didn't make any sense.

below is whole of the messages in compiling the driver source:



[root@localhost hcfpcimodem-0.99lnxtbeta03042700]# make install
make[1]: Entering directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/inf'
install -m 644 hcf_linux.cty hcfv90_lan_linux.inf hcfv90_linux.inf hcfv92_linux.inf hcfv92_riptide_linux.inf /etc/hcfpci/inf
make[1]: Leaving directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/inf'
make[1]: Entering directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/scripts'
install -m 755 hcfpciconfig hcfpcistop /usr/sbin
make[1]: Leaving directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/scripts'
make[1]: Entering directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/modules'
rm -rf "/usr/lib/hcfpci/config.mak" "/usr/lib/hcfpci/imported" "/usr/lib/hcfpci/modules"
mkdir -m 755 -p /usr/lib/hcfpci/modules
prevsum=""; md5sum `find binaries -type f -print` </dev/null | sort | while read sum file ; do \
if [ "$sum" = "$prevsum" ] && cmp -s "$file" "$prevfile"; then \
rm -f "$file"; \
ln "$prevfile" "$file"; \
else \
prevsum="$sum"; \
prevfile="$file"; \
fi; \
done
(cd .. && find config.mak imported -depth -print | cpio -pdm /usr/lib/hcfpci)
2636 blocks
find . \( -name COPYING -o -name '*.sh' -o -name '*.[ch]' -o -name '*.mak' -o -name '[Mm]akefile' \) -print | cpio -pdm /usr/lib/hcfpci/modules
388 blocks
find binaries -depth -print | cpio -pdm /usr/lib/hcfpci/modules
0 blocks
make[1]: Leaving directory `/root/Desktop/modem/SourceCodes/hcfpcimodem-0.99lnxtbeta03042700/modules'
make: *** No rule to make target `LICENSE', needed by `install'. Stop.
[root@localhost hcfpcimodem-0.99lnxtbeta03042700]# hcfpciconfig
Linux HCF controllerless modem drivers, version 0.99lnxtbeta03042700

WARNING: this is an EXPERIMENTAL BETA VERSION of the HCF drivers for Linux.
USE AT YOUR OWN RISK! See the file /usr/lib/hcfpci/LICENSE for details.

Conexant Systems neither distributes nor maintains this package.
PLEASE DO NOT CONTACT CONEXANT REGARDING THIS SOFTWARE!!!

If you require assistance or need more information, go to:
h**p:// www linuxant com/drivers

When reporting a problem for the first time, please send
us the file generated by "hcfpciconfig --dumpdiag".
grep: /proc/ksyms: No such file or directory
/usr/sbin/hcfpciconfig: line 1298: [: too many arguments

Should we attempt to automatically configure your hardware? [yes]

Selected PCI VendorID=14F1 DeviceID=1056
and INF file /etc/hcfpci/inf/hcfv92_linux.inf

Supported countries:

ARGENTINA, AUSTRALIA, AUSTRIA, BELGIUM,
BRAZIL, BULGARIA, CANADA, CHILE, CHINA,
CROATIA, CZECH_REPUBLIC, DENMARK, FINLAND, FRANCE,
GERMANY, GREECE, HONG-KONG, HUNGARY, ICELAND,
INDIA, INDONESIA, IRELAND, ISRAEL, ITALY,
JAPAN, KOREA, LUXEMBOURG, MALAYSIA, MEXICO,
NETHERLANDS, NEW_ZEALAND, NORWAY, PHILIPPINES, POLAND,
PORTUGAL, RUSSIA, SINGAPORE, SLOVAKIA, SLOVENIA,
SOUTH_AFRICA, SPAIN, SWEDEN, SWITZERLAND, TAIWAN,
THAILAND, TURKEY, UK, UNITED_ARAB_EMIRATES, USA

Please enter your country name [USA]:

Configuring modem for country: "USA"
You can change this setting later with the command "hcfpciconfig --country"

This package does not contain pre-built modules suitable for your system:
Distribution: RedHat-3
Kernel arch: i686
Kernel version: linux-2.6.10

Trying to automatically re-compile the modules..
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/lib/modules/2.6.10/build]

WARNING: missing file /lib/modules/2.6.10/build/include/linux/modversions.h
The cause of this problem is usually a missing or misconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).

First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.

The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).

Verify that the proper options for your system are selected,
and that CONFIG_SMP ("Symmetric multi-processing support" under
"Processor type and features") is disabled, as this driver is
presently designed to work on single-processor machines.

Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "hcfpciconfig".
[root@localhost hcfpcimodem-0.99lnxtbeta03042700]# make dep
make: *** No rule to make target `dep'. Stop.
[root@localhost hcfpcimodem-0.99lnxtbeta03042700]#

Darin 03-11-2005 09:41 AM

Re: I get a missing modeversions.h in compiling the conexant hcf driver
 
Quote:

Originally posted by the_one2003a
...Trying to automatically re-compile the modules..
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/lib/modules/2.6.10/build]

WARNING: missing file /lib/modules/2.6.10/build/include/linux/modversions.h
The cause of this problem is usually a missing or misconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).

First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.
There should be a package for your distro that has kernel sources. Once it is installed you should have a /usr/src/linux directory which includes /usr/src/linux/include/linux/modversions.h and everything else it needs to compile against the kernel.

the_one2003a 03-11-2005 04:18 PM

hmm
 
I think you didn't understand my question correctly

I have complete kernel 2.6.10 and source code and I compiled it completely and it works correctly but this message is show when the modem driver whants to recompile with kernel source code? (I have read that it works with kernel 2.4.x but perhaps it is deprecated or somthing like that) I want to make it how??


All times are GMT -5. The time now is 07:49 PM.