Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a driver that I need to compile that comes with a simple makefile and a few supporting files. In FC3 with gcc3.2 all I had to do is run 'make' and it compiled just fine.
Now I am in FC4, which ships with gcc4, and the driver is apparently incompatible with gcc4.
Lucky me, gcc3.2 is included on the FC4 cd's and I have installed it.
How do I compile the driver using gcc3.2, though? The system still defaults to gcc4, and complains when I try to run 'make'.
I have tried to remove gcc4, but a bug in FC4 makes it extremely difficult.
I have heard of cases where people made minor changes to the supporting files and got an older driver to work with gcc4, but that is above me.
I've been having this same problem, and the only way I've found to get around it is to use the windows driver with ndiswrapper.
I went looking for that "-mtune=pentium4" line in both the driver makefile and the kernel makefile and couldn't find it in either, but after some googling, I came upon the GCC Optimization flags "-march" and "-mcpu", both of which take values such as pentium4. Unfortunately, I searched for these tags in both makefiles and couldn't find them either.
In the driver makefile, however, there is this "-O6" tag which might be some sort of optimization but it still didn't compile after removing that line.
All in all, that mtune/march/mcpu flag is being added somewhere I don't know about (I new to linux so I really don't have much clue how this works). Installing the ndiswrapper driver was very easy though. Simply download ndiswrapper from sourcefourge, extract it and run make / make install. Then download the windows Realtek 8180 driver and extract it. Then type:
ndiswrapper -i realtek_driver_name.inf
That installed it and loaded int for me. The nice thing about the ndiswrapper driver (although I hate using a windows driver) was that it loaded into the Network Configuration Dialog that ships with Fedora. (You might have to manually add the wireless connection, but the hardware is installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.