Quick intro to "patch" (Was Re: [SATLUG] patching gcc's sourcecode?)
_zip
_zip at cox.net
Fri Aug 30 04:48:01 CDT 2002
Thanks again for the responces. I'm having some problems still but with
compiling the patched source now.
I patched the source like so...
patch -p0 < protector.dif
...Everything looked like it went swell. I tared the source back up, did
the openssl md5, copied it to the right directory and edited the digest
with the md5 etc.
Now the build goes fine up until this point of compiling the gcc
compiler I patched. Here are the compilers lasts words. Sure enough it
stops on the part dealing with my patch.
(cd intl && make all)
rm -f obstack.c
make[3]: Entering directory
`/var/tmp/portage/gcc-2.95.3-r7/work/gcc-2.95.3/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/tmp/portage/gcc-2.95.3-r7/work/gcc-2.95.3/gcc/intl'
ln -s ./../libiberty/obstack.c obstack.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include obstack.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include ./gengenrtl.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include version.c
gcc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include \
-DLOCALEDIR=\"/usr/share/locale\" \
-c `echo ./intl.c | sed 's,^\./,,'`
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include getpwd.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include mbchar.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include dyn-string.c
rm -f splay-tree.c
ln -s ./../libiberty/splay-tree.c splay-tree.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include splay-tree.c
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../include hash.c
make[2]: *** No rule to make target `protector.o', needed by `cc1'.
Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/gcc-2.95.3-r7/work/gcc-2.95.3/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gcc-2.95.3-r7/work/gcc-2.95.3/gcc'
make: *** [bootstrap-lean] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)
More information about the Satlug
mailing list