kernel makefile help
Dear friends,
I am trying to compile the linux kernel 2.6.33. I need to incorporate a patch into this. The patch creates a directory and 3 src files as below, Code:
~/linux-2.6.33/net/core/netchannel Code:
net/core/netchannel/user.c: In function ‘netchannel_bind_fd’: Code:
fun def => ~/linux-2.6.33/fs/internal.h Code:
obj-y += netchannel.o storage.o user.o |
As far as internal.h, you can create a new #include "internal.h" into the source file which requires it.
|
thnx corp769,
as u mentioned, I have already included the "internal.h". It gets compiled successfully. but problem raises when it tries to link the object files. it says "multiple definition of function 'get_empty_filp'" do we have a flag in gcc that can exclude the duplicate entries founded by linking object files ? |
Quote:
Have a look at #ifndef: http://gcc.gnu.org/onlinedocs/cpp/On...y-Headers.html P.S. SMS language is NOT appreciated on the technical foras. U = You Thx = Thanks r = are |
thanx Anisha,
Its very helpful link. |
All times are GMT -5. The time now is 07:14 PM. |