All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: JanuGerman <doublemalam@yahoo.co.uk>
Cc: SELinux List <selinux@tycho.nsa.gov>
Subject: Re: errors in debugging "services.c"
Date: Sun, 18 Mar 2007 22:47:14 -0400	[thread overview]
Message-ID: <45FDF9B2.2060805@manicmethod.com> (raw)
In-Reply-To: <20070318095444.98257.qmail@web86913.mail.ukl.yahoo.com>

JanuGerman wrote:
> Hi Every body,
>
>   I have included some "print" and some "manipulation"
> statements with the ss/services.c file, in order to
> get some of output, at various places during kernel
> compilation.
>
>  Unfortunately, i was not successful, in doing so, and
> got a long list of errors, for missing standard
> libraries e.g: 
>
> security/selinux/ss/services.c:44:19: error: stdio.h:
> No such file or directory
> error: string.h: No such file or directory
> error: stdlib.h: No such file or directory
> error: stdint.h: No such file or directory
> error: stderr undeclared (first use in this function)
>
> (i have truncated the errors, because they were too
> much verbose)
>
>
> The difficulty is that, when i execute these print and
> manipulation statements as a sepeate file within the
> kerncel source tree i.e. within ss/, no problem at
> all, and all went well. I think so, i am making some
> path problems. If some body, can suggest me some thing
> in this regard.
>   
Are you trying to use fprintf or other libc functions? (i see stderr 
there, which doesn't exist in the kernel), the kernel doesn't use 
standard libc calls, printk should be used to print out information to 
the kernel ring buffer, which can be checked with the dmesg command, 
with a flag such as KERN_INFO, KERN_ERR, etc to specify how critical it is.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2007-03-19  2:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-18  9:54 errors in debugging "services.c" JanuGerman
2007-03-19  2:47 ` Joshua Brindle [this message]
2007-03-19 13:51 ` Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45FDF9B2.2060805@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=doublemalam@yahoo.co.uk \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.