Click to See Complete Forum and Search --> : how to install a .c file in mandrake 7.2 ?


lowvibes
01-10-2001, 01:02 AM
hi
i found the driver file for my usb network adapter.. its a "pegasus-0.4.15.c" file
but i dont know how to install it.

this is my first time using linux. can someone help me with step by step information on how to install this driver please. or link me to a website where i can learn how to. http://www.linuxnewbie.org/ubb/frown.gif



------------------
-------------------------
-lowvibes

pbharris
01-10-2001, 01:14 AM
hello,
that .c file should have come with some other stuff... like a Makefile...

the driver will need to know about your system, what kernel you are using, where stuff is, the Makefile takes care of much of this.


that said if the is no Makefile find out where the .c file came from and find out what options need to be passed to it with ld or gcc. try posting this to the programming and script depot too.

[This message has been edited by pbharris (edited 10 January 2001).]

PLBlaze
01-10-2001, 02:27 AM
A drive/module file should have the compile command specified in it.You might want to edit the source file and look at the bottom for such compile option.If none is found,you need to supply options from your kernel (that are specific to your kernel,cpu,arch...) most likely it will be the ones from make module_install.Hope this helps.

Strike
01-10-2001, 02:43 AM
Originally posted by PLBlaze:
A drive/module file should have the compile command specified in it.You might want to edit the source file and look at the bottom for such compile option.If none is found,you need to supply options from your kernel (that are specific to your kernel,cpu,arch...) most likely it will be the ones from make module_install.Hope this helps.

Very true, thanks for pointing that out (I had forgotten). An easy way to check the bottom is to

tail pegasus-0.4.15.c

That will display the last 10 (I think) lines of the file. If there is anything that begins with gcc, then that is the compiler command. If you're confused about it, then just post the output of the above command (the tail) here and we will help.

Strike
01-10-2001, 02:44 AM
Ah hell... I thought I posted an answer to this already? ... another forum maybe ... lemme go check.

Edit:

I did -- http://www.linuxnewbie.org/ubb/Forum13/HTML/003221.html

[This message has been edited by Strike (edited 10 January 2001).]

anti_seen
01-10-2001, 02:51 AM
I have always used this command to compile all of my modules. As root type:
gcc -DMODULE -D__KERNEL__ -06 -c driver.c This should create a driver.o file for you, then just issue this as root:
install -m 644 driver.o /lib/modules/`uname -r`/net/
(thats all one line) you should then be able to issue this as root:
insmod driver
Hope that helps you... Oh you will need the kernel source instaled to do this.

------------------
Radio Shack, You've got questions...
We've got blank stares.

lowvibes
01-10-2001, 03:54 AM
hi,

from the tail pegasus-0.4.15.c
this is the results i got


int __init pegasus_init(void)
{
info( "%s", version );
return usb_register( &pegasus_driver );
}

void __exit pegasus_exit(void)
{
usb_deregister( &pegasus_driver );
}

module_init( pegasus_init );
module_exit( pegasus_exit );


i opened up the whole file in a text editor and didnt find no gcc command anywhere


when i tried as anti_seen said
gcc -DMODULE -D__KERNEL__ -06 -c pegasus-0.4.15.c

I got errors and warnings

Strike when i tired gcc -D__KERNEL__ pegasus-0.4.15.c -c -o pegasus.o

i got the error message "gcc: no input file"
i did 'dir' to see if the driver was in the directory i was working in and it was.


this is the web address i got the driver file from http://www.dce.bg/~petkan/

maybe there is another driver on the site i can use? http://www.linuxnewbie.org/ubb/frown.gif

------------------
-------------------------
-lowvibes

Strike
01-10-2001, 04:25 AM
Okay, I should have checked my ordering, but anti_seen even remembered to do the whole MODULE thing so his should have worked okay (I just told you my command wrong, sorry http://www.linuxnewbie.org/ubb/smile.gif). I guess, print the error messages and warnings... I'll see if I can compile it.

Strike
01-10-2001, 04:28 AM
This is all I got:

pegasus-0.4.15.c:1030: warning: initialization from incompatible pointer type
/tmp/ccVel2Y2.s: Assembler messages:
/tmp/ccVel2Y2.s:26: Warning: Ignoring changed section attributes for .modinfo
And these are OKAY. Here's the command I used:

gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -O6 -c pegasus-0.4.15.c -o pegasus.o

Note, you have an extra thing there (-DMODVERSIONS, without it it will only run on 2.4.0-test12 apparently). So, compile with that command, and then su to root and type insmod pegasus.o. If you get stuff like:

pegasus.o: unresolved symbol eth_type_trans
pegasus.o: unresolved symbol __wake_up
pegasus.o: unresolved symbol __kfree_skb
pegasus.o: unresolved symbol alloc_skb
pegasus.o: unresolved symbol init_etherdev
pegasus.o: unresolved symbol kmalloc
pegasus.o: unresolved symbol usb_deregister
pegasus.o: unresolved symbol usb_free_dev
pegasus.o: unresolved symbol unregister_netdev
pegasus.o: unresolved symbol usb_inc_dev_use
pegasus.o: unresolved symbol usb_register
pegasus.o: unresolved symbol usb_set_configuration
pegasus.o: unresolved symbol interruptible_sleep_on
pegasus.o: unresolved symbol kfree
pegasus.o: unresolved symbol netif_rx
pegasus.o: unresolved symbol skb_over_panic
pegasus.o: unresolved symbol usb_submit_urb
pegasus.o: unresolved symbol jiffies
pegasus.o: unresolved symbol softnet_data
pegasus.o: unresolved symbol printk
pegasus.o: unresolved symbol irq_stat
pegasus.o: unresolved symbol usb_unlink_urb

you probably have not loaded your USB driver stuff yet and need to (for more info, post back http://www.linuxnewbie.org/ubb/smile.gif).

PLBlaze
01-10-2001, 02:11 PM
Try this:


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -c -o pegasus-0.4.15.o pegasus-0.4.15.c


Keep in mind that this is for kernel 2.4.0 and specific to my system,yours may avry but it never hurts to give it a try.If you're still get errors then cd to /usr/src/linux and exec make modules,copy the compile command and try again.Hope this helps.

lowvibes
01-10-2001, 04:05 PM
hey Strike i did as you say but i got errors http://www.linuxnewbie.org/ubb/frown.gif i got alot of errors and warnings.
these are what i got . i can't connect to the internet unless i get my network adapter to work so i keep having to reboot into windows. so the format of the messages got a little messed up.


[root@localhost /mnt]# gcc -DMODVERSIONS -DMODULE -D_KERNEL_ -O6 -c pegasus-0.4.15.c -o pegasus.o
In file included from /usr/include/linux/sched.h:13,
from pegasus-0.4.15.c:43:
/usr/include/linux/times.h:5: parse error before `clock_t'
/usr/include/linux/times.h:5: warning: no semicolon at end of struct or union
/usr/include/linux/times.h:6: warning: data definition has no type or storage class
/usr/include/linux/times.h:7: parse error before `tms_cutime'
/usr/include/linux/times.h:7: warning: data definition has no type or storage class
/usr/include/linux/times.h:8: parse error before `tms_cstime'
/usr/include/linux/times.h:8: warning: data definition has no type or storage class
In file included from /usr/include/linux/timex.h:142,
from /usr/include/linux/sched.h:14,
from pegasus-0.4.15.c:43:
/usr/include/linux/time.h:10: parse error before `time_t'
/usr/include/linux/time.h:10: warning: no semicolon at end of struct or union
/usr/include/linux/time.h:12: parse error before `}'
/usr/include/linux/time.h: In function `timespec_to_jiffies':
/usr/include/linux/time.h:32: dereferencing pointer to incomplete type/usr/include/linux/time.h:33: dereferencing pointer to incomplete type/usr/include/linux/time.h: In function `jiffies_to_timespec':
/usr/include/linux/time.h:45: dereferencing pointer to incomplete type/usr/include/linux/time.h:46: dereferencing pointer to incomplete type/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:51: parameter `a' has incomplete type
/usr/include/linux/time.h:51: parameter `b' has incomplete type
/usr/include/linux/time.h:60: parameter `a' has incomplete type
/usr/include/linux/time.h:60: parameter `b' has incomplete type
/usr/include/linux/time.h: In function `timespec_less':
/usr/include/linux/time.h:67: dereferencing pointer to incomplete type/usr/include/linux/time.h:68: dereferencing pointer to incomplete type/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:72: parse error before `time_t'
/usr/include/linux/time.h:72: warning: no semicolon at end of struct or union
/usr/include/linux/time.h:73: warning: data definition has no type or storage class
/usr/include/linux/time.h:79: parameter `a' has incomplete type
/usr/include/linux/time.h:79: parameter `b' has incomplete type
/usr/include/linux/time.h: In function `timeval_less':
/usr/include/linux/time.h:86: dereferencing pointer to incomplete type/usr/include/linux/time.h:87: dereferencing pointer to incomplete type/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:92: parameter `tv' has incomplete type
/usr/include/linux/time.h: In function `timeval_to_timespec':
/usr/include/linux/time.h:93: dereferencing pointer to incomplete type/usr/include/linux/time.h:94: dereferencing pointer to incomplete type/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:126: field `it_interval' has incomplete type/usr/include/linux/time.h:127: field `it_value' has incomplete type
/usr/include/linux/time.h:131: field `it_interval' has incomplete type/usr/include/linux/time.h:132: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:14,
from pegasus-0.4.15.c:43:
/usr/include/linux/timex.h:163: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:23,
from pegasus-0.4.15.c:43:
/usr/include/asm/signal.h:173: parse error before `size_t'
/usr/include/asm/signal.h:173: warning: no semicolon at end of struct or union
/usr/include/asm/signal.h:174: warning: data definition has no type or storage class
In file included from /usr/include/linux/signal.h:5,
from /usr/include/linux/sched.h:23,
from pegasus-0.4.15.c:43:
/usr/include/asm/siginfo.h:26: parse error before `pid_t'
/usr/include/asm/siginfo.h:26: warning: no semicolon at end of struct or union
/usr/include/asm/siginfo.h:26: warning: no semicolon at end of struct or union
/usr/include/asm/siginfo.h:27: warning: no semicolon at end of struct or union
/usr/include/asm/siginfo.h:28: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:38: parse error before `pid_t'
/usr/include/asm/siginfo.h:38: warning: no semicolon at end of struct or union
/usr/include/asm/siginfo.h:39: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:41: parse error before `}'
/usr/include/asm/siginfo.h:41: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:45: parse error before `pid_t'
/usr/include/asm/siginfo.h:45: warning: no semicolon at end of struct or union
/usr/include/asm/siginfo.h:46: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:48: parse error before `_utime'
/usr/include/asm/siginfo.h:48: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:49: parse error before `_stime'
/usr/include/asm/siginfo.h:49: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:50: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:62: parse error before `}'
/usr/include/asm/siginfo.h:62: warning: data definition has no type or storage class
/usr/include/asm/siginfo.h:63: parse error before `}'
/usr/include/asm/siginfo.h:63: warning: data definition has no type or storage class
In file included from /usr/include/linux/sched.h:71,
from pegasus-0.4.15.c:43:
/usr/include/linux/resource.h:22: field `ru_utime' has incomplete type/usr/include/linux/resource.h:23: field `ru_stime' has incomplete typeIn file included from /usr/include/linux/sched.h:74,
from pegasus-0.4.15.c:43:
/usr/include/asm/processor.h:287: warning: `struct task_struct' declared inside parameter list
/usr/include/asm/processor.h:287: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/include/asm/processor.h:291: warning: `struct task_struct' declared inside parameter list
In file included from /usr/include/linux/netdevice.h:30,
from pegasus-0.4.15.c:47:
/usr/include/linux/if.h:86: field `ifru_addr' has incomplete type
/usr/include/linux/if.h:87: field `ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:88: field `ifru_broadaddr' has incomplete type/usr/include/linux/if.h:89: field `ifru_netmask' has incomplete type
/usr/include/linux/if.h:90: field `ifru_hwaddr' has incomplete type
pegasus-0.4.15.c:148: field `ctrl_urb' has incomplete type
pegasus-0.4.15.c:148: field `rx_urb' has incomplete type
pegasus-0.4.15.c:148: field `tx_urb' has incomplete type
pegasus-0.4.15.c:148: field `intr_urb' has incomplete type
pegasus-0.4.15.c:149: parse error before `devrequest'
pegasus-0.4.15.c:149: warning: no semicolon at end of struct or union pegasus-0.4.15.c:150: warning: data definition has no type or storage class
pegasus-0.4.15.c:158: parse error before `}'
pegasus-0.4.15.c:158: warning: data definition has no type or storage class
pegasus-0.4.15.c:247: parse error before `*'
pegasus-0.4.15.c:249: parse error before `*'
pegasus-0.4.15.c: In function `ctrl_callback':
pegasus-0.4.15.c:251: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:251: (Each undeclared identifier is reported only once
pegasus-0.4.15.c:251: for each function it appears in.)
pegasus-0.4.15.c:251: `urb' undeclared (first use in this function)
pegasus-0.4.15.c:257: `USB_ST_NOERROR' undeclared (first use in this function)
pegasus-0.4.15.c:265: `USB_ST_URB_PENDING' undeclared (first use in this function)
pegasus-0.4.15.c:267: `USB_ST_URB_KILLED' undeclared (first use in this function)
pegasus-0.4.15.c:261: warning: unreachable code at beginning of switch statement
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:280: parse error before `*'
pegasus-0.4.15.c: In function `get_registers':
pegasus-0.4.15.c:284: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:291: `indx' undeclared (first use in this function)
pegasus-0.4.15.c:293: `size' undeclared (first use in this function)
pegasus-0.4.15.c:298: `data' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:311: parse error before `*'
pegasus-0.4.15.c: In function `set_registers':
pegasus-0.4.15.c:315: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:322: `indx' undeclared (first use in this function)
pegasus-0.4.15.c:324: `size' undeclared (first use in this function)
pegasus-0.4.15.c:329: `data' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:342: parse error before `*'
pegasus-0.4.15.c: In function `set_register':
pegasus-0.4.15.c:346: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:352: `data' undeclared (first use in this function)
pegasus-0.4.15.c:353: `indx' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:372: parse error before `*'
pegasus-0.4.15.c: In function `update_eth_regs_async':
pegasus-0.4.15.c:376: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:395: parse error before `*'
pegasus-0.4.15.c: In function `read_mii_word':
pegasus-0.4.15.c:398: `indx' undeclared (first use in this function)
pegasus-0.4.15.c:400: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:409: `regd' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:418: parse error before `*'
pegasus-0.4.15.c: In function `write_mii_word':
pegasus-0.4.15.c:421: `indx' undeclared (first use in this function)
pegasus-0.4.15.c:423: `regd' undeclared (first use in this function)
pegasus-0.4.15.c:424: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:440: parse error before `*'
pegasus-0.4.15.c: In function `read_eprom_word':
pegasus-0.4.15.c:444: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:445: `index' undeclared (first use in this function) pegasus-0.4.15.c:453: `retdata' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:462: parse error before `*'
pegasus-0.4.15.c: In function `enable_eprom_write':
pegasus-0.4.15.c:466: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:471: parse error before `*'
pegasus-0.4.15.c: In function `disable_eprom_write':
pegasus-0.4.15.c:475: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:481: parse error before `*'
pegasus-0.4.15.c: In function `write_eprom_word':
pegasus-0.4.15.c:486: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:488: `index' undeclared (first use in this function) pegasus-0.4.15.c:489: `data' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:505: parse error before `*'
pegasus-0.4.15.c: In function `get_node_id':
pegasus-0.4.15.c:510: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:510: `id' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:514: parse error before `*'
pegasus-0.4.15.c: In function `set_ethernet_addr':
pegasus-0.4.15.c:518: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:524: parse error before `*'
pegasus-0.4.15.c: In function `reset_mac':
pegasus-0.4.15.c:529: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: In function `enable_net_traffic':
pegasus-0.4.15.c:562: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:562: dereferencing pointer to incomplete type
pegasus-0.4.15.c:569: dereferencing pointer to incomplete type
pegasus-0.4.15.c: In function `read_bulk_callback':
pegasus-0.4.15.c:595: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:595: dereferencing pointer to incomplete type
pegasus-0.4.15.c:596: parse error before `struct'
pegasus-0.4.15.c:605: `net' undeclared (first use in this function)
pegasus-0.4.15.c:615: `rx_status' undeclared (first use in this function)
pegasus-0.4.15.c:615: `count' undeclared (first use in this function) pegasus-0.4.15.c:617: dereferencing pointer to incomplete type
pegasus-0.4.15.c:618: dereferencing pointer to incomplete type
pegasus-0.4.15.c:639: `pkt_len' undeclared (first use in this function)
pegasus-0.4.15.c:641: `skb' undeclared (first use in this function)
pegasus-0.4.15.c:659: `res' undeclared (first use in this function)
pegasus-0.4.15.c: In function `write_bulk_callback':
pegasus-0.4.15.c:667: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:667: dereferencing pointer to incomplete type
pegasus-0.4.15.c:675: dereferencing pointer to incomplete type
pegasus-0.4.15.c:676: dereferencing pointer to incomplete type
pegasus-0.4.15.c:678: `jiffies' undeclared (first use in this function)
pegasus-0.4.15.c: In function `intr_callback':
pegasus-0.4.15.c:685: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:685: dereferencing pointer to incomplete type
pegasus-0.4.15.c:686: parse error before `struct'
pegasus-0.4.15.c:691: `d' undeclared (first use in this function)
pegasus-0.4.15.c:691: dereferencing pointer to incomplete type
pegasus-0.4.15.c:692: `net' undeclared (first use in this function)
pegasus-0.4.15.c:704: dereferencing pointer to incomplete type
pegasus-0.4.15.c:705: `USB_ST_NOERROR' undeclared (first use in this function)
pegasus-0.4.15.c:707: `USB_ST_URB_KILLED' undeclared (first use in this function)
pegasus-0.4.15.c:710: dereferencing pointer to incomplete type
pegasus-0.4.15.c:706: warning: unreachable code at beginning of switch statement
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:730: warning: `struct sk_buff' declared inside parameter list
pegasus-0.4.15.c: In function `pegasus_start_xmit':
pegasus-0.4.15.c:732: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:732: dereferencing pointer to incomplete type
pegasus-0.4.15.c:733: parse error before `int'
pegasus-0.4.15.c:738: dereferencing pointer to incomplete type
pegasus-0.4.15.c:739: dereferencing pointer to incomplete type
pegasus-0.4.15.c:739: dereferencing pointer to incomplete type
pegasus-0.4.15.c:744: `count' undeclared (first use in this function) pegasus-0.4.15.c:745: `res' undeclared (first use in this function)
pegasus-0.4.15.c:751: dereferencing pointer to incomplete type
pegasus-0.4.15.c:752: dereferencing pointer to incomplete type
pegasus-0.4.15.c:752: `jiffies' undeclared (first use in this function)
pegasus-0.4.15.c: In function `pegasus_netdev_stats':
pegasus-0.4.15.c:763: parse error before `)'
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:767: parse error before `*'
pegasus-0.4.15.c: In function `disable_net_traffic':
pegasus-0.4.15.c:771: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:775: parse error before `*'
pegasus-0.4.15.c: In function `get_interrupt_interval':
pegasus-0.4.15.c:779: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: In function `pegasus_open':
pegasus-0.4.15.c:794: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:794: parse error before `)'
pegasus-0.4.15.c:801: `EIO' undeclared (first use in this function)
pegasus-0.4.15.c: In function `pegasus_close':
pegasus-0.4.15.c:827: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:827: dereferencing pointer to incomplete type
pegasus-0.4.15.c: In function `pegasus_ioctl':
pegasus-0.4.15.c:849: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:849: dereferencing pointer to incomplete type
pegasus-0.4.15.c:852: `SIOCDEVPRIVATE' undeclared (first use in this function)
pegasus-0.4.15.c:859: `EPERM' undeclared (first use in this function) pegasus-0.4.15.c:855: warning: unreachable code at beginning of switch statement
pegasus-0.4.15.c:863: `EOPNOTSUPP' undeclared (first use in this function)
pegasus-0.4.15.c: In function `pegasus_set_multicast':
pegasus-0.4.15.c:870: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:870: dereferencing pointer to incomplete type
pegasus-0.4.15.c:874: dereferencing pointer to incomplete type
pegasus-0.4.15.c:876: dereferencing pointer to incomplete type
pegasus-0.4.15.c:877: dereferencing pointer to incomplete type
pegasus-0.4.15.c:878: dereferencing pointer to incomplete type
pegasus-0.4.15.c:881: dereferencing pointer to incomplete type
pegasus-0.4.15.c:885: dereferencing pointer to incomplete type
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:909: parse error before `*'
pegasus-0.4.15.c: In function `mii_phy_probe':
pegasus-0.4.15.c:915: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:926: parse error before `*'
pegasus-0.4.15.c: In function `setup_pegasus_II':
pegasus-0.4.15.c:928: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c: In function `pegasus_probe':
pegasus-0.4.15.c:940: `pegasus' undeclared (first use in this function)
pegasus-0.4.15.c:941: parse error before `int'
pegasus-0.4.15.c:943: `dev_index' undeclared (first use in this function)
pegasus-0.4.15.c:943: dereferencing pointer to incomplete type
pegasus-0.4.15.c:943: dereferencing pointer to incomplete type
pegasus-0.4.15.c:947: dereferencing pointer to incomplete type
pegasus-0.4.15.c:952: sizeof applied to an incomplete type
pegasus-0.4.15.c:952: `GFP_KERNEL' undeclared (first use in this function)
pegasus-0.4.15.c:958: sizeof applied to an incomplete type
pegasus-0.4.15.c:962: warning: assignment makes pointer from integer without a cast
pegasus-0.4.15.c:970: dereferencing pointer to incomplete type
pegasus-0.4.15.c:971: dereferencing pointer to incomplete type
pegasus-0.4.15.c:972: dereferencing pointer to incomplete type
pegasus-0.4.15.c:977: dereferencing pointer to incomplete type
pegasus-0.4.15.c:978: dereferencing pointer to incomplete type
pegasus-0.4.15.c:979: dereferencing pointer to incomplete type
pegasus-0.4.15.c:980: dereferencing pointer to incomplete type
pegasus-0.4.15.c:981: dereferencing pointer to incomplete type
pegasus-0.4.15.c:992: dereferencing pointer to incomplete type
pegasus-0.4.15.c: In function `pegasus_disconnect':
pegasus-0.4.15.c:1020: dereferencing pointer to incomplete type
pegasus-0.4.15.c:1021: dereferencing pointer to incomplete type
pegasus-0.4.15.c: At top level:
pegasus-0.4.15.c:1028: variable `pegasus_driver' has initializer but incomplete type
pegasus-0.4.15.c:1029: unknown field `name' specified in initializer
pegasus-0.4.15.c:1029: warning: excess elements in struct initializer
pegasus-0.4.15.c:1029: warning: (near initialization for `pegasus_driver')
pegasus-0.4.15.c:1030: unknown field `probe' specified in initializer
pegasus-0.4.15.c:1030: warning: excess elements in struct initializer
pegasus-0.4.15.c:1030: warning: (near initialization for `pegasus_driver')
pegasus-0.4.15.c:1031: unknown field `disconnect' specified in initializer
pegasus-0.4.15.c:1031: warning: excess elements in struct initializer
pegasus-0.4.15.c:1031: warning: (near initialization for `pegasus_driver')
pegasus-0.4.15.c:1040: parse error before `pegasus_exit'
pegasus-0.4.15.c: In function `__cleanup_module_inline':
pegasus-0.4.15.c:1046: warning: return from incompatible pointer typeŃ—



[This message has been edited by lowvibes (edited 10 January 2001).]

lowvibes
01-10-2001, 04:34 PM
Originally posted by PLBlaze:
Try this:


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -c -o pegasus-0.4.15.o pegasus-0.4.15.c


Keep in mind that this is for kernel 2.4.0 and specific to my system,yours may avry but it never hurts to give it a try.If you're still get errors then cd to /usr/src/linux and exec make modules,copy the compile command and try again.Hope this helps.


i got the same errors when i tried this ..

lowvibes
01-10-2001, 04:51 PM
I don't know if this might help.
I am using linux mandrake 7.2
I didnt update anything yet so i think the kernel is 2.2.17.

Do you think updating to the recent kernel might help? If so can you tell me how to ? I think that might be easier.


Geez I feel just how i felt when i first got a computer and didn't know a thing about windows 95.

------------------
------------------
-lowvibes

Strike
01-10-2001, 07:03 PM
lowvibes - yeah, you need to upgrade to something with USB support. AFAIK, the USB stuff was back-ported to 2.2.18, but I'm absolutely sure it is in 2.4.0 - use 2.4.0 unless you have a reason to stick with the 2.2.x series (for me, it's that my vid card drivers only work with this series ... supposedly, we'll see http://www.linuxnewbie.org/ubb/smile.gif), and if you are going to use 2.2.x kernels, grab the latest one (I think 2.2.18 is the last stable/non-test one, but there are some 2.2.19pre__ kernels out there that might work).

Strike
01-11-2001, 01:09 AM
* bump *
http://www.linuxnewbie.org/ubb/smile.gif

PLBlaze
01-11-2001, 01:08 PM
Try this one,it should compile on any 2.2.xx series kernel

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict- aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c pegasus-0.4.15.c

[This message has been edited by PLBlaze (edited 11 January 2001).]

Cloak_Linux
01-11-2001, 06:16 PM
Hi! me again http://www.linuxnewbie.org/ubb/smile.gif

i'm watching the thread since i will install my usb adapter also http://www.linuxnewbie.org/ubb/wink.gif

Keep on trying http://www.linuxnewbie.org/ubb/smile.gif


Originally posted by lowvibes:
hi
i found the driver file for my usb network adapter.. its a "pegasus-0.4.15.c" file
but i dont know how to install it.

this is my first time using linux. can someone help me with step by step information on how to install this driver please. or link me to a website where i can learn how to. http://www.linuxnewbie.org/ubb/frown.gif

lowvibes
01-12-2001, 01:16 AM
hey
i have been trying for a day now to install the most recent kernel but i always get an error message when i arrive up to the make bzImage command... i keep gettin the same message if i use make zImage or make Install. these are the command i excuted to try and install the new kernel

1. cd /usr/src
gzip -cd linux-2.4.0.tar.gz | tar xfv -

2. cd /usr/src/linux
make mrproper

3. make config

i configured the kernel and choose the pegasus driver which is included in this kernel [got my hopes up ]

4. make dep

then when i did "make bzImage" or "make zImage" i keep getting this error


[root@localhost linux]# make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
In file included from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1


i am new to linux so i dont understand these error messages .. what directory or file is it looking for? is it looking for errno.h?
i made sure that file was in the bits and linux folders and it was ...
what does this error mean...

- linux newbie
http://www.linuxnewbie.org/ubb/frown.gif http://www.linuxnewbie.org/ubb/frown.gif


[This message has been edited by lowvibes (edited 12 January 2001).]

Strike
01-12-2001, 01:20 AM
Hold on, there was a post detailing all the stuff you need to get for 2.4 to compile right, I'll find it (or some other docs) and link it in a bit.

----edit----
I can't seem to find it, I remember modutils and ksymoops being on there, but not the other things

[This message has been edited by Strike (edited 12 January 2001).]

Strike
01-12-2001, 04:17 AM
I lied, I think this is it: http://www.linuxnewbie.org/ubb/Forum4/HTML/009315.html

Strike
01-12-2001, 10:56 AM
Too much effort has gone into this post to let it fall by the wayside (read: the second page), so...

*bump*

PLBlaze
01-12-2001, 01:39 PM
Originally posted by lowvibes:

[root@localhost linux]# make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
In file included from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1

To me it looks like a problem with symlinks...I'd try to start again with kernel compilation...in this order:

get or unpack the kernel
cd /usr/src && tar xvyf linux-2.4.0.tar.bz2 \
mv linux linux-2.4.0 && ln -s linux-2.4.0 linux \
cd linux && make distclean && make mrproper \
make xconfig

Once you pick the options and configure,save and exit then make dep bzImage modules modules_install.

Now,someone should write updated kernel NHF specific to 2.4.0,seeing many posts with problems that grasshoppers have it would be nice to have a revisted NHF.

Cloak_Linux
01-12-2001, 10:57 PM
*Bump*

Did you get it working?

lowvibes
01-13-2001, 04:42 PM
i wasnt home for a couple days .. im now going to try and look for these other stuph and recompile the kernel ..first i'll try wut blaze says to do..



[This message has been edited by lowvibes (edited 13 January 2001).]

PLBlaze
01-13-2001, 05:17 PM
Since i've spent some time on helping in this thread i went ahead and built the modules that come with 2.2.18 and 2.4.0 kernels without problems on my slack box.If you'd want the modules my addy is in the profile...

On a side note i've noticed that 2.2.18 has version 0.4.13 and 2.4.0 has 0.4.17 where later one depends on pegasus.h file .Now i wonder if you'd rename your pegasus-0.4.15.c to just pegasus.c and try the compile commands alone,maybe it would work.Let us know your findings.Again hope this helps.

Cloak_Linux
01-13-2001, 07:48 PM
Originally posted by Strike:
Too much effort has gone into this post to let it fall by the wayside (read: the second page), so...

*bump*

Thanks,looking at it right now.

I hope it can help me make my first kernel upgrade http://www.linuxnewbie.org/ubb/frown.gif

hehe http://www.linuxnewbie.org/ubb/smile.gif

[This message has been edited by Cloak_Linux (edited 13 January 2001).]

guitarlyn
01-14-2001, 05:19 AM
Mandrake has always been pretty good at getting new packages on their ftp site. Have you seen if the kernel update and your USB module are listed in the Mandrake Update thingy-ma-jig??? It's pretty much like apt-get and Corel Update for Mandrake compiled RPM's, you might have better luck checking this out.

~Guitarlynn

lowvibes
01-14-2001, 07:06 PM
well i am starting to think that i am not ready to move to linux now ...


Strike i went to that other forum and tried to do what it says but i have no luck ...
first it says to install ksymoops but when i try to i get errors .. everything goes well in the install up the the point when i have to execute the command "Make Install"

then i get that
errno.h.36 error again saying no such file or directory ..

i checked the linux-mandrake update site but it has nothing.

i wonder if i install another distrubution if it would be any better .. or maybe i shouldn't move to linux just yet ..

http://www.linuxnewbie.org/ubb/frown.gif http://www.linuxnewbie.org/ubb/frown.gif



------------------
------------------
-lowvibes

Strike
01-14-2001, 11:09 PM
You don't seem to have the kernel include files. I'll see if I can find what package those are supposed to be and post a link.

lowvibes
01-18-2001, 09:25 PM
a new package posted on one of mandrake site has an updated patched 2.4 kernel that supports supermount and the pegasus driver for my usb network adapter .. http://www.linuxnewbie.org/ubb/smile.gif
http://www.mandrakeforum.com/article.php3?sid=20010118161202

thank you guys for you help and patience i really appreciate it

------------------
------------------
-lowvibes