From: "Justin P. mattock" <justinmattock@gmail.com>
To: SE-Linux <selinux@tycho.nsa.gov>
Cc: libc-help@sourceware.org, refpolicy@oss1.tresys.com
Subject: Re: label_file.c:434: error: implicit declaration of function 'fstat'
Date: Mon, 15 Feb 2010 19:34:11 -0800 [thread overview]
Message-ID: <4B7A1233.6010806@gmail.com> (raw)
In-Reply-To: <dd18b0c31002151419v1445e151j761c06e3cf39f5c0@mail.gmail.com>
On 02/15/2010 02:19 PM, Justin Mattock wrote:
> this is new:
>
>
> make[2]: Leaving directory `/home/kernel/selinux/libselinux/include'
> make -C src install
> make[2]: Entering directory `/home/kernel/selinux/libselinux/src'
> cc -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn
> -Wmissing-format-attribute -I../include -I/usr/include -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -c -o label_file.o label_file.c
> cc1: warnings being treated as errors
> label_file.c: In function 'init':
> label_file.c:434: error: implicit declaration of function 'fstat'
> label_file.c:436: error: implicit declaration of function 'S_ISREG'
> make[2]: *** [label_file.o] Error 1
> make[2]: Leaving directory `/home/kernel/selinux/libselinux/src'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/home/kernel/selinux/libselinux'
> make: *** [install] Error 1
>
> three areas where this could of been created
> update glibc
> updated kernel
> update userspace(altohugh there was not vary many commits in the pull).
>
>
>
looking more into this error by selinux userspace tools(libselinux),
seems there was a change in libc which breaks libselinux.
I've started the bisect with libc but could not go any further because
libc fails to build. The positive side is I'm only about 15 or so
commits from the last good commit I had, which gets libselinux to build.
heres the last bad commit and last good commit with libc(I'm trying to
narrow this down, but libc breaks).
last bad commit: 7b4715c5362319e1ff2f9555d17133146e16081a
(bisect is broken by this point).
last good commit: d5ea695b42aecd48a329756a8e93228d64714d17
I added some CC's to hopefully the appropriate
people.
As a workaround I can compile libselinux with the last good commit,
then update libc, but know that's not the right way.
Justin P. Mattock
--
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.
WARNING: multiple messages have this Message-ID (diff)
From: justinmattock@gmail.com (Justin P. mattock)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] label_file.c:434: error: implicit declaration of function 'fstat'
Date: Mon, 15 Feb 2010 19:34:11 -0800 [thread overview]
Message-ID: <4B7A1233.6010806@gmail.com> (raw)
In-Reply-To: <dd18b0c31002151419v1445e151j761c06e3cf39f5c0@mail.gmail.com>
On 02/15/2010 02:19 PM, Justin Mattock wrote:
> this is new:
>
>
> make[2]: Leaving directory `/home/kernel/selinux/libselinux/include'
> make -C src install
> make[2]: Entering directory `/home/kernel/selinux/libselinux/src'
> cc -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn
> -Wmissing-format-attribute -I../include -I/usr/include -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -c -o label_file.o label_file.c
> cc1: warnings being treated as errors
> label_file.c: In function 'init':
> label_file.c:434: error: implicit declaration of function 'fstat'
> label_file.c:436: error: implicit declaration of function 'S_ISREG'
> make[2]: *** [label_file.o] Error 1
> make[2]: Leaving directory `/home/kernel/selinux/libselinux/src'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/home/kernel/selinux/libselinux'
> make: *** [install] Error 1
>
> three areas where this could of been created
> update glibc
> updated kernel
> update userspace(altohugh there was not vary many commits in the pull).
>
>
>
looking more into this error by selinux userspace tools(libselinux),
seems there was a change in libc which breaks libselinux.
I've started the bisect with libc but could not go any further because
libc fails to build. The positive side is I'm only about 15 or so
commits from the last good commit I had, which gets libselinux to build.
heres the last bad commit and last good commit with libc(I'm trying to
narrow this down, but libc breaks).
last bad commit: 7b4715c5362319e1ff2f9555d17133146e16081a
(bisect is broken by this point).
last good commit: d5ea695b42aecd48a329756a8e93228d64714d17
I added some CC's to hopefully the appropriate
people.
As a workaround I can compile libselinux with the last good commit,
then update libc, but know that's not the right way.
Justin P. Mattock
next prev parent reply other threads:[~2010-02-16 3:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 22:19 label_file.c:434: error: implicit declaration of function 'fstat' Justin Mattock
2010-02-16 3:34 ` Justin P. mattock [this message]
2010-02-16 3:34 ` [refpolicy] " Justin P. mattock
2010-02-16 14:29 ` Stephen Smalley
2010-02-16 15:58 ` Justin P. mattock
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=4B7A1233.6010806@gmail.com \
--to=justinmattock@gmail.com \
--cc=libc-help@sourceware.org \
--cc=refpolicy@oss1.tresys.com \
--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.