This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: label_file.c:434: error: implicit declaration of function 'fstat'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]