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: error while build glibc using kernel headers


>
> ahh. I've never tried that before.
> In this case not sure. you might run
> into other issue with other *.h
> from libselinux etc..(but could be wrong)
>
> Im thinking if using that option libc looks
> for all *.h in that certain location i.g.
> if you don't set --prefix=/usr everything
> defaults to /usr/local/*
>
> Justin P. Mattock
>
I think "--prefix=/usr" specifies  the place glibc will be installed,
but not where to look for header files during build.
"--with-headers=/usr/src/linux/include" does this.
Following is some instruction from INSTALL:

--with-headers=DIRECTORY'
    Look for kernel header files in DIRECTORY, not `/usr/include'.
    Glibc needs information from the kernel's private header files.
    Glibc will normally look in `/usr/include' for them, but if you
    specify this option, it will look in DIRECTORY instead.

    This option is primarily of use on a system where the headers in
    `/usr/include' come from an older version of glibc.  Conflicts can
    occasionally happen in this case.  Note that Linux libc5 qualifies
    as an older version of glibc.  You can also use this option if you
    want to compile glibc with a newer set of kernel headers than the
    ones found in `/usr/include'.


Have u tried to build glibc with explicitly specified kernel headers?


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