[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile error
From: |
Andreas Jaeger |
Subject: |
Re: Compile error |
Date: |
03 Feb 2001 11:03:40 +0100 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands) |
Fabrice Gautier <address@hidden> writes:
> Hi,
>
> While compiling glibc, make fail when trying to build iconv:
>
> Apparently there's a lot missing symbols in libc.so:
>
> [...]/iconv/iconv_prog.o: In function `main':
> [...]/iconv/iconv_prog.c:272: undefined reference to `close'
> [...]/iconv/iconv_prog.c:221: undefined reference to `open'
> [...]/iconv/iconv_prog.c:235: undefined reference to `__fxstat'
> [...]/iconv/iconv_prog.c:241: undefined reference to `close'
> [...]/iconv/iconv_prog.c:281: undefined reference to `close'
> [...]/iconv/iconv_prog.o: In function `process_fd':
> [...]/iconv/iconv_prog.c:465: undefined reference to `read'
> [...]/iconv/iconv_prog.c:496: undefined reference to `read'
> [...]/libc.so.6: undefined reference to `__dup'
> [...]/libc.so.6: undefined reference to `utime'
> [...]/libc.so.6: undefined reference to `__libc_fcntl'
>
> and a lot more for libc.so.6... (__read, __close, etc...)
>
> (i have a full make.log somewhere if you want)
>
>
> I did configure with
> --build=i686-cygwin --host=i386-linux --prefix=/usr/local/cross-tools
> --enable-add-ons --with-headers=/usr/local/src/linux/include
> --disable-profile
> (i tried too without --disable-profile, the same)
>
> Well yes, I'm trying to cross-compile glibc-2.2.1 from cygwin to
> i386-linux , is there possibly something wrong with that? (except that
> nobody will ever use this.)
If you're crosscompiling do e.g.:
CC=i686-linux-gcc \
/cvs/libc/configure --disable-profile --enable-add-ons \
--prefix=/usr \
--without-cvs i686-linux
echo "BUILD_CC=gcc" > configparms
echo "CC=i686-linux-gcc" >> configparms
make
and everything should work fine.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Compile error,
Andreas Jaeger <=