bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Who handles "fails to build" problems for bash?


From: Tovrea, George W (US SSA)
Subject: RE: Who handles "fails to build" problems for bash?
Date: Wed, 2 Sep 2009 09:41:06 -0700

Tried adding each of -lcurses and -lncurses with the following results:

/home/users/tovrea/local/sgi6/bin/gcc -L./builtins -L./lib/readline 
-L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0/32 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/lib32 
-L/home/users/tovrea/local/sgi6/lib    -g -O2 -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 -ltermcap -lcurses -lglob 
-ltilde  lib/intl/libintl.a   -ldl 
/home/users/tovrea/local/sgi6/bin/ld: non-dynamic relocations refer to dynamic 
symbol PC
/home/users/tovrea/local/sgi6/bin/ld: failed to set dynamic section sizes: Bad 
value
collect2: ld returned 1 exit status

/home/users/tovrea/local/sgi6/bin/gcc -L./builtins -L./lib/readline 
-L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0/32 
-L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/lib32 
-L/home/users/tovrea/local/sgi6/lib    -g -O2 -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 -ltermcap -lncurses -lglob 
-ltilde  lib/intl/libintl.a   -ldl 
/home/users/tovrea/local/sgi6/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status 

I also tried configuring with --with-curses but had the same result. I also 
took a look at config.log. It indicates it cannot find termcap.h but does find 
libtermcap (there is one located at /usr/lib). Didn't see any other problems.

-----Original Message-----
From: Chet Ramey [mailto:chet@caleb.INS.CWRU.Edu] On Behalf Of Chet Ramey
Sent: Tuesday, September 01, 2009 2:52 PM
To: Tovrea, George W (US SSA)
Cc: bug-bash@gnu.org; chet@po.cwru.edu
Subject: Re: Who handles "fails to build" problems for bash?

> Could not find any groups other than this for bash problems. My build is 
> failing with 
> 
> make[1]: Leaving directory `/home/users/tovrea/BASH/build_sgi_bash/lib/tilde'
> rm -f bash
> /home/users/tovrea/local/sgi6/bin/gcc -L./builtins -L./lib/readline 
> -L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh 
> -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0 
> -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0/32 
> -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/lib32 
> -L/home/users/tovrea/local/sgi6/lib    -g -O2 -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 -ltermcap -lglob -ltilde  
> lib/intl/libintl.a   -ldl 
> /home/users/tovrea/local/sgi6/bin/ld: non-dynamic relocations refer to 
> dynamic symbol PC
> /home/users/tovrea/local/sgi6/bin/ld: failed to set dynamic section sizes: 
> Bad value
> collect2: ld returned 1 exit status
> make: *** [bash] Error 1

The quick fix should be adding -lcurses or -lncurses (whatever works) as the
value of TERMCAP_LIB in the= Makefile.

The longer fix is to look at config.log and try and figure out why there is
(apparently) no library that contains the termcap functions, and why the
build process is not defaulting to the built-in termcap library if so.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]