This is the mail archive of the libc-alpha@sources.redhat.com 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: Problem compiling glibc-linuxthreads-2.3


On 9 October 2002 21:13, Saurabh Desai wrote:
> Jakub Jelinek wrote:
> > On Wed, Oct 09, 2002 at 05:58:38PM -0500, Saurabh Desai wrote:
> > > I am trying to compile glibc-linuxthreads-2.3 on
> > > RedHat 8.0 with gcc-3.2-7, binutils-2.13.90.0.2-2
> > > and Linux kernel 2.5.41.
> > >
> > > ./configure --prefix=/usr --enable-add-ons=linuxthreads \
> > > --enable-kernel=2.5.41
> >
> > In order to do that, you need to point glibc to 2.5.41 headers.
> > Ie. either put them into /usr/include, or add
> > --with-headers=/usr/src/linux-2.5.41/include or similar option
> > to glibc configure.
>
> The compilation includes ...-I /lib/modules/2.5.41/build/include
> after all other includes, is this not enough?

configure --help is there on purpose! :-)

I tend to read help and carefully decide which options to use.
In glibc case, I copied entire kernel include/
into unpacked glibc source and put
--with-headers=linux-2.5.41_include
into configure command line.

BTW, I always make cfg.sh (too tired of forgetting what I did
a month ago) :-).
Live binutils example:

#!/bin/sh

NAME=binutils-2.11.90.0.8

STATIC=/usr/app/$NAME
PERBOX=/var/app/$NAME

../configure \
--prefix=$STATIC                        \
--exec-prefix=$STATIC                   \
--bindir=$STATIC/bin                    \
--sbindir=$STATIC/sbin                  \
--libexecdir=$STATIC/libexec            \
--datadir=$STATIC/share                 \
--sysconfdir=$PERBOX/etc                \
--sharedstatedir=$PERBOX/com            \
--localstatedir=$PERBOX/var             \
--libdir=/usr/lib                       \
--includedir=$STATIC/include            \
--oldincludedir=/usr/include            \
--infodir=$STATIC/info                  \
--mandir=$STATIC/man                    \
\
--enable-shared                         \
\
2>&1 | tee !cfg.log
--
vda


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