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: autoconf and porting


On Tuesday 17 January 2012 19:18:09 Justin Wilson wrote:
> The glibc configure.in script contains a fragment that expands to
> something like this
> ...
> #include <stdarg.h>
> #include <stdio.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> ...
> FILE * (*rcsopen) (struct buf *, struct stat *, int);
> ...
> when checking for C89 compliance.
> 
> The problem is that my cross-compiling environment does not have
> headers like <stdio.h>, <sys/types.h>, etc. so a variety of tests fail.

you need to bootstrap your toolchain.  that means running configure for your 
target, ignoring all the errors, and then using `make install_headers`.

http://embedded.gentoo.org/handbook/?part=1&chap=2#doc_chap3
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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