LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2004, 12:51 AM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
NIC card problem


I am trying to install lancard driver , i am using Adcom lancard and i am using redhat 8.0


[root@hello linux-2.4.x]# make clean
rm -f *.o
[root@hello linux-2.4.x]# make
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4/include -O NS -c -o pci-scan.o pci-scan.c
In file included from pci-scan.c:67:

/usr/src/linux-2.4/include/linux/malloc.h:4:2: #error linuxab.h instead.
make: *** [pci-scan.o] Error 1

[root@hello linux-2.4.x]# insmod pciscan.o
insmod: pciscan.o: No such file or directory


for reference readme of landriver is provided :-

*****************************************************
Myson MTD80X Based Fast Ethernet Card

Linux 2.4.X Driver Installation Guide
*****************************************************

3. Make network adapter driver modules
touch *
make clean
make

*Under some distribution, such as SuSe 7.2 and BluePoi
nt 2.0, there is no version.h.
You have to run "make config" or "make menuconfig" at
/usr/src/linux to create it.

**If you are using Mandrake 8.0/RedHat 7.3 and you have
problems when insmod the dirver, please
remove "-DMODVERSIONS" option from makefile.

**When use the driver under RedHat 7.3, you will see so
me warning message,
you can ignore it.

***On SMP system, the driver may NOT work well. The bug
will be fixed in the future.

4. Insert network adapter driver modules

insmod pciscan.o
insmod mtd80x.o 5. Bind your card to an IP address

ifconfig eth0 {IPADDR} netmask {NETMASK}

6. Now, you should be able to ping local network.

*Every time you reboot the system, you must execute step 4
and step 5
again to bind your card.
 
Old 08-24-2004, 07:37 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Quote:
[root@hello linux-2.4.x]# make clean
rm -f *.o
[root@hello linux-2.4.x]# make
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4/include -O NS -c -o pci-scan.o pci-scan.c
In file included from pci-scan.c:67:

/usr/src/linux-2.4/include/linux/malloc.h:4:2: #error linuxab.h instead.
make: *** [pci-scan.o] Error 1

[root@hello linux-2.4.x]# insmod pciscan.o
insmod: pciscan.o: No such file or directory
Firstly, as you can see above - you have forgotten the hyphen when insmod'ding.
Secondly, it seems as though your compiler doesn't much care for malloc.h - and would like for you to use linuxab.h instead. This should be easy to fix. Try this:

Open /usr/src/linux-2.4/include/linux/malloc.h.
On or around line 4 - you will see an entry like this:
Code:
#include <malloc.h>
Change it to read like this:
Code:
//*#include <malloc.h>
Hit enter to go to a newline, and add the following:
Code:
#include <linuxab.h>
Recompile as you were above, and see what happens. Good luck!
 
Old 08-28-2004, 10:12 PM   #3
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
#cat malloc.h

-------------------------------------------------
#ifndef _LINUX_MALLOC_H
#define _LINUX_MALLOC_H

#error linux/malloc.h is deprecated, use linux/slab.h instead.

#include <linux/slab.h>
#endif /* _LINUX_MALLOC_H */
---------------------------------------------------

could u tell me what should i change in this file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
Insmod problem+NIC card LinuxRam Linux - Networking 2 09-03-2004 02:43 AM
Asound NIC card driver problem GedConk Linux - Hardware 6 04-06-2003 10:28 PM
NIC Card Driver Problem .... yasir_kh Linux - Networking 1 05-17-2001 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration