LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-06-2007, 06:26 AM   #1
ahm_irf
Member
 
Registered: Feb 2007
Posts: 37

Rep: Reputation: 15
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
errors in compiling linux-2.4.20-6 kernel vishwadeepak Linux - Kernel 3 12-08-2006 12:26 AM
errors while compiling linux 2.4.21 kernel!! sepkys Linux - Kernel 2 05-19-2006 06:16 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Compiling linux kernel (fedora 4) steveman2000 Linux - Newbie 9 10-23-2005 01:30 PM
warnings when compiling kernel dontest Linux - General 1 01-24-2003 04:49 PM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration