LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2004, 10:21 AM   #1
eltn
LQ Newbie
 
Registered: Oct 2004
Posts: 21

Rep: Reputation: 15
strange errors


hellow

i compiles an example that it will be have to be added to the /proc directory
(the example hijack sys calls)
gcc -Wall -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c syscall.c

(syscall if my file name)

and i got strange errors

like

proc_fs.h: error before off_t
"" "" mode_t
(i made include to linux/proc_fs.h)
NULL undeclared (first use in this function





im soory that i didnt gave u the full error that is becuase i dont have internet in the linux
 
Old 10-29-2004, 08:50 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Seems like they closed the wrong thread

Try to include #include <linux/stat.h>

It defines two of those unrecognized identifiers.
 
Old 10-29-2004, 09:43 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Define "wrong" - commonly the original (first one
posted) will be left open ... maybe you replied to
the wrong thread in the first place?


Cheers,
Tink
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
very strange aptitude errors ronkymac Linux - Software 6 11-23-2005 04:12 PM
strange SMART errors sensovision Linux - Hardware 2 03-02-2005 05:43 PM
Strange pci errors Neruocomp Slackware 0 01-07-2005 10:32 AM
Strange errors XPediTioN Slackware 1 07-11-2003 05:45 PM
Strange Errors in C++ ReverseLogic Programming 3 01-20-2003 11:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration