Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: Re: bash compilation problems during bootstrapping
Date: Tue, 3 Nov 2009 11:53:54 +0100
On 03-11-2009 08:01:03 +0000, Dirk Tilger wrote:
> On 2009-10-31, Dirk Tilger <dirk@...> wrote:
> > I'm currently freshly bootstrapping prefix on a Debian system. Bash
> > fails compilation with:
> >
> > -----8<-----
> > gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh -Wl,-O1  -rdynamic  -O2 -march=i686 -pipe -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o  -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob -ltilde    -ldl
> > /usr/bin/ld: cannot find -lcurses
> > collect2: ld returned 1 exit status
> > make: *** [bash] Error 1
> >  * ERROR: app-shells/bash-3.2_p48-r1 failed:
> >  *   make failed
> > -----8<-----
> >
> > For some reason the prefix linkage path ($EPREFIX/usr/lib) does not make
> > it into the compilation script. I had the ebuild dropping into a bash
> > and noticed no LD_LIBRARY_FLAGS&Co had been set either. Where are these
> > things set normally?
> 
> bash compiles just fine if I modify the ebuild as follows:
> 
> -----8<-----
> --- var/db/patchmaker/app-shells/bash/4.0_p33/bash-4.0_p33.ebuild        2009-09-14 09:17:25.000000000 +0200
> +++ usr/portage/app-shells/bash/bash-4.0_p33.ebuild 2009-11-03 08:51:28.000000000 +0100
> @@ -121,6 +121,7 @@
>                         -DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
>                         -DNON_INTERACTIVE_LOGIN_SHELLS \
>                         -DSSH_SOURCE_BASHRC
> +               append-ldflags -L${EPREFIX}/usr/lib
>         else
>         append-cppflags \
>                 -DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\' \
> -----8<-----
> 
> That doesn't make much sense, does it?

nope, as that should have been already set.  Can you see it being set in
your etc/make.globals?


-- 
Fabian Groffen
Gentoo on a different level


References:
bash compilation problems during bootstrapping
-- Dirk Tilger
Re: bash compilation problems during bootstrapping
-- Dirk Tilger
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: bash compilation problems during bootstrapping
Next by thread:
dev-lang/python-2.6.4 fails to build because of mac patch failure
Previous by date:
Re: bash compilation problems during bootstrapping
Next by date:
dev-lang/python-2.6.4 fails to build because of mac patch failure


Updated Nov 20, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.