


Code: Select all
TheOne 845patch # ls
845patch 845patch.c 845patch.o Makefile lrmi-0.8
Code: Select all
TheOne 845patch # make clean
rm -f 845patch.o lrmi-0.8/lrmi.o 845patch core
TheOne 845patch # make
gcc -c -Wall -Ilrmi-0.8 -o 845patch.o 845patch.c
gcc -c -Wall -Ilrmi-0.8 -o lrmi-0.8/lrmi.o lrmi-0.8/lrmi.c
gcc -Wall -Ilrmi-0.8 -o 845patch 845patch.o lrmi-0.8/lrmi.o

Code: Select all
make
gcc -c -Wall -lrmi-0.8 -o 845patch.o 845patch.c
845patch.c:26:18: lrmi.h: No such file or directory
845patch.c:27:17: vbe.h: No such file or directory
845patch.c: In function 'main':
845patch.c:44: error: storage size of 'r' isn't known
845patch.c:106: warning: implicit declaration of function 'LRMI_init'
845patch.c:107: warning: implicit declaration of function 'LRMI_alloc_real'
845patch.c:107:error: invalid application of 'sizeof' to an incomplete type
845patch.c:107: warning: assignment makes pointer from integer without a cast
845patch.c:119: warning: implicit declaration of function 'LRMI_int'
845patch.c:122: warning: implicit declaration of function 'LRMI_free_real'
845patch.c:129: error: dereferencing pointer to incomplete type
845patch.c:44: warning: unused variable 'r'
make: *** [845patch.o] Error 1

Yeah, don't mess with the kernel tree at all for this one. Just extract 845patch.tar.gz in an isolated directory, there should only be a few files then run make in that directory.And about the kernel tree, that would mean no patching the kernel directly, right? Sorry for the ignorant question... I'm still very much in the learning stage of using Linux.
