LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Received Warnings and errors while compiling the Fedora Linux kernel (http://www.linuxquestions.org/questions/linux-general-1/received-warnings-and-errors-while-compiling-the-fedora-linux-kernel-535027/)

ahm_irf 03-06-2007 06:26 AM

Received Warnings and errors while compiling the Fedora Linux kernel
 
I am using Fedora Linux 2.6.18. I have updated file ~/linux-2.6.18.2/net/ipv6/tcp_ipv6.c file.
I am working on a project and at first stage, I need to write the ipsec decrypted packets to disk.
For this reason, I have embeded the following code in "tcp_v6_rcv" function.

file_desc = open('/testlog.txt',O_WRONLY|O_APPEND);
file_write_status = write(file_desc,skb->data,skb->len);
close(file_desc);

When I compiling the kernel, I received the following warnings and errors
------------------------------------------tcp_ipv6.c---------------------------------------------------------------
[root@localhost linux-2.6.18.2]# make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC [M] net/ipv6/tcp_ipv6.o
net/ipv6/tcp_ipv6.c: In function ‘tcp_v6_rcv’:
net/ipv6/tcp_ipv6.c:1224: warning: implicit declaration of function ‘open’
net/ipv6/tcp_ipv6.c:1224:19: warning: character constant too long for its type
net/ipv6/tcp_ipv6.c:1225: warning: implicit declaration of function ‘write’
net/ipv6/tcp_ipv6.c:1226: warning: implicit declaration of function ‘close’
LD [M] net/ipv6/ipv6.o
Building modules, stage 2.
MODPOST
WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x2074) and 'he_service_tbrq'
WARNING: "close" [net/ipv6/ipv6.ko] undefined!
WARNING: "open" [net/ipv6/ipv6.ko] undefined!
WARNING: "write" [net/ipv6/ipv6.ko] undefined!
CC net/ipv6/ipv6.mod.o
LD [M] net/ipv6/ipv6.ko
------------------------------------------------------------------------------------------------------------------------------------------------

Any one has any idea about it to solve the warnings.

Regards,


All times are GMT -5. The time now is 09:48 PM.