How do you patch the GCC file in Linux?

EmperorRob

Senior member
Mar 12, 2001
968
0
0
I downloaded a patch I need to run drivers for my sound card. It's a patch for the GCC file but I downloaded it and it's a .txt file. I imagine I have to do some kind of diff-insertion, but I'm not sure. Can I get some advice?

BTW, here's the file.
 

TimeThrash

Banned
Jul 6, 2000
283
0
0
Ughghh........long UNIX commands for recompiling things..........ughghgh. I like pretty pictures. Pretty good with Sun's G++ compilers and Javac interpreters though.
Tt
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0


<< Would it piss you off if I said man patch? >>

There's a patch command? No, I'm being serious here....really.
 

Kadesh

Member
Apr 27, 2001
78
0
0
The patch command takes a diff file (obtained using, surprisingly, the diff command) and applies it to an older source code directory.

The syntax is something like &quot;patch -p1 < my_patch.diff&quot; when you're in the source code directory. It might be -p0, I'm not sure. I don't have Linux booted right now so I hope the man page explains it a bit. Why they chose &quot;p1&quot; and &quot;p0&quot; is beyond me. I don't usually find UNIX commands cryptic but patch is weird.
 

MGMorden

Diamond Member
Jul 4, 2000
3,348
0
76
yeah, patch is an oddball. It's one of those Unix commands that could be written w/ an easier syntax but it's already there and works fine so nobody bothers to change it.
 

Gantry

Member
Feb 26, 2001
148
0
0
EmperorRob:

Are you already familiar with compiling and installing Linux programs from their source code? If not, then trying to patch and compile gcc is a really bad first time project. Perhaps you can find an updated RPM/deb/tgz/whatever file to use instead...
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0
You called it exactly Gantry. The only reason I'm attempting this is b/c my sound card isn't supported under Linux. However I got some drivers off the net, but when I try to compile them I get some errors. I'm running Red Hat 7 btw.

I check and these drivers won't work the the default gcc version included in 7.0 so I d/led this patch. I was hoping to just get a quick fix w/out getting my hands dirty, but I may be out of luck.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Of course there is a patch command. C'mon! This is something unix like. . j/k

Yes, in Linux, there is a patch command.
 

Bremen

Senior member
Mar 22, 2001
658
0
0
oh, heh, the imfamous RH 7 gcc problem. Yes, unfortunately it can be quite a pain, if you can edit the makefile have it use kgcc instead (kgcc is actually a different version of gcc that RH uses to compile the kernel). That should fix your problems... in fact if I was you I'd delete gcc and just have it as a symlink to kgcc (heck to be honest I wouldn't install RH either... viva slackware!!)
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0
Bremen, is the compiler-name (gcc, kgcc) listed in the makefile of the prog you're trying to install.
 

Gantry

Member
Feb 26, 2001
148
0
0
You can change the compiler name in Makefile of the program itself, perhaps that will work...

Also, there has been an updated Redhat 7.0 gcc RPM, though I'm not sure if it'll fix your problem or not. Here is the link, you can download and upgrade the gcc via RPM. Like I said though, I'm not sure if this updated gcc will fix your problem, but it certainly can't hurt it and upgrading via rpm is much easier than by source...
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |