LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   The FIle with no extension! (https://www.linuxquestions.org/questions/linux-general-1/the-file-with-no-extension-39530/)

JafferAB 12-27-2002 01:51 PM

The FIle with no extension!
 
Hiya! Im tryign to install some new drivers, and it has included a file called Makefile which is meant to sort it all out, but i dunno how to run it :(

can anybody help me ?? thanks :)

bulliver 12-27-2002 02:00 PM

Usually you run three steps:
./configure
make
make install

Is there not a file called README or INSTALL? If you read that file it should have installation instructions specific to what you are building.

DavidPhillips 12-27-2002 02:04 PM

You should always include the name of what your installing

JafferAB 12-27-2002 02:08 PM

Quote:

Originally posted by bulliver
Usually you run three steps:
./configure
make
make install

Is there not a file called README or INSTALL? If you read that file it should have installation instructions specific to what you are building.

okok...

the readme doesnt tell me what i have to do :)

there are 3 files...

Makefile
Readme.txt
8139too.c

the point of makefile is to compile 8139too.c. The read me tells me to run the Makefile file!

make Makefile doesnt work
exec Makefile doesnt work
run Makefile deosnt work

I dont know what else to do, i have attached the readme file...

Code:

Comments for 8139too.c version 1.0.0
2001/10/31 by ShuChen Shao

1.This driver was originally based on 8139too.c version "0.9.15".
       
2.It has been enhanced to support RTL8139C+ PCI ethernet chips and tested in 2.4.2 kernel.

3.RTL8139C+ PCI ethernet chips is set to support C+ mode by default.
  If FORCE_C_Mode below is enabled, the RTL8139C+ chip will be forced to support C mode
  after reboot.

4.This program can be compiled using the attached Makefile.
  And the object file named 8139too.o should be moved to the directory
  /lib/modules/2.4.2-2/kernel/drivers/net/

5.It can support Auto-Negotiation ability,that is
        10-half        0x01
        10-full        0x02
        100-half 0x04
        100-full 0x08
  If 10-half mode is expected, it can be achieved by the following steps:
        #ifconfig eth0 down
        #rmmod 8139too
        #insmod 8139too media=0x01

6.If the "Install Type", selected during the Linux install procedure, is "laptop",
  this driver can work normally for CardBus application without any modification.
  Otherwise, reinstall Linux and select "Install Type" as "laptop".
  Then this driver can also work.

##############################################################################################
Comments for 8139too.c version 1.0.1
2001/11/21 by ShuChen Shao

1.It is able to support RTL8139C+ PCI ethernet chips in RedHat 7.2 (kernel 2.4.7).
  In addition, it is backward compatiable with RedHat 7.1 (kerne 2.4.2).

If code works here that should look like I have it :)

thanks!

bulliver 12-27-2002 02:11 PM

Don't type "make Makefile", just try "make"

JafferAB 12-27-2002 02:25 PM

it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:

make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
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 8139too.c:115:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from 8139too.c:115:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
make: *** [8139too.o] Error 1

btw, thanks for all the help so far :)

DavidPhillips 12-27-2002 02:32 PM

try to make this link if you don't have /usr/src/linux


ln -s /usr/src/linux-2.4 /usr/src/linux

JafferAB 12-27-2002 03:00 PM

hmmm, i did that, but it just says exactly the same :-/

Aussie 12-27-2002 08:53 PM

Why are you building a module that is included in the kernel already?

tesdall 01-30-2003 05:44 PM

I am experiencing the same problem with another driver. Has anyone found the solution to this problem?

newpenguin 01-30-2003 06:45 PM

i think you dont have kernel headers installed.
install
kernel-headers-???.rpm
or
gcc-kernelheaders????.rpm
as you have a rpm based distribution.

but AUSIE is right dont need to compile it just modprobe it because its already in kernel.the module you are compiling is for kernel 2.4.2-2 (according to readme)and your distributin redhet 7.3 has a newer one 2.4.18-3.

rnturn 01-30-2003 08:17 PM

Quote:

Originally posted by bulliver
Don't type "make Makefile", just try "make"
Or use the syntax:

make -f Makefile

rnturn 01-30-2003 08:25 PM

Quote:

Originally posted by JafferAB
it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:


make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
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 8139too.c:115:


Say, what's up with the clock on the system? I think that might have an, um, adverse effect on whatever make is trying to do.

I'd suggect either setting up NTP or setting the clock from the radio or something. Having the date/time off by four years is bound to drive you batty. And I suspect it's having a similar effect on make.

DavidPhillips 01-30-2003 08:39 PM

I probably got changed somehow, Now the files on the system are in the future. No telling how much havoc this will cause.

moses 01-30-2003 09:54 PM

Quote:

Originally posted by JafferAB
it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:

make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
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 8139too.c:115:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from 8139too.c:115:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
make: *** [8139too.o] Error 1

btw, thanks for all the help so far :)


The error here is because the directory
Code:

/usr/src/linux-2.4.18-3/include/
either doesn't exist or doesn't contain the path:
Code:

asm/msr.h
If you didn't install your kernel source, you don't have the kernel
header files (as previously mentioned). You need to install the
source code for the kernel. This should come with RedHat.

You also should make sure your clock is reporting the correct
time. . .
If there does exist a directory like /usr/src/linux/include (or some
version of that), but is not exactly what the Makefile contains,
you'll also get an error. Either install what the Makefile expects,
or change it, but only if your kernel version is greater than 2.4.18
(-3 -- which is some modification version by RH).


All times are GMT -5. The time now is 11:40 PM.