Re: eglibc fails to build from source



It works !

Is there a good documentation somewhere about the "official" method for
building eglibc for debian ?

i was not aware of this way of patching source and the "classical" way
(patch, configure) that i used does not show any error although the
compilation failed. It is a little misleading for a beginner.

Thanks

On Mon, Apr 30, 2012 at 7:23 AM, Sven Joachim <svenjoac@xxxxxx> wrote:

On 2012-04-30 04:01 +0200, bibop554 - wrote:

I try to build eglibc from source but it fails. I'm on Debian squeeze
6.0.3
I downloaded [eglibc_2.11.3.orig.tar.gz] and [eglibc_2.11.3-2.diff.gz]
from
http://packages.debian.org/squeeze/libc6
Then:
gzip -d eglibc_2.11.3-2.diff.gz
tar xf eglibc_2.11.3.orig.tar.gz
cd eglibc-2.11.3/
patch < ../eglibc_2.11.3-2.diff <- no errors

A simpler and less error-prone way to unpack the source would be to use
"dpkg-source -x eglibc_2.11.3-2.dsc".

cd ../build/ <- build/ is
an empty directory
../eglibc-2.11.3/configure --prefix=$(pwd) <- no fatal error
make -j 10

The compilation fails with the following error:
make[2]: *** No rule to make target `../manual/errno.texi', needed by
`../sysdeps/gnu/errlist.c'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/home/bibop554/compile_libc/eglibc-2.11.3/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/home/bibop554/compile_libc/eglibc-2.11.3'
make: *** [all] Error 2

Not sure if i made an error somewhere or if it is a bug.

The Debian diff does not patch the source directly, but uses a patch
system named quilt. You need to install the quilt package and then run
"make -f debian/rules patch".

The unpatched source does not build because Debian had to remove the
documentation, and the upstream build system is not prepared for that.

Cheers,
Sven


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/87397llrnn.fsf@xxxxxxxxxxxxx




Relevant Pages

  • Re: Attracting newbies
    ... we normally bottom post on the debian lists. ... debian is moving towards all documentation being in html. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Upcoming Release of Debian GNU/Linux 4.0 - a beginners query/request
    ... instructions in the proposed release of Debian 4.0. ... documentation applies, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Php 5 documentation
    ... I prefer to use the Debian packaged documentation whenever ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: documentation for novice and newbies
    ... That was a problem in the documentation. ... something like "For Novices and Newbies to Debian". ... Under this we could have individual wiki entries that we could work on. ... To the extent we use GPL, ...
    (Debian-User)
  • Re: documentation for novice and newbies
    ... installer, its manual, their computer, and later their new installation. ... something like "For Novices and Newbies to Debian". ... Under this we could have individual wiki entries that we could work on. ... documentation for linux in general can be confusing when trying ...
    (Debian-User)