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

2009-09-03 Thread Tovrea, George W (US SSA)
Thanks, that seemed to do the trick. I made the change you suggested, did "make 
clean" in .../lib/readline, then "make", then "../../make" and it linked 
correctly. "make check" seemed OK with a few odd messages like 

warning: ..." If the tests of the
warning: process substitution mechanism fail, please do not consider
warning: this a test failure"

Thanks for the help :-))

Bill T.

-Original Message-
From: Chet Ramey [mailto:chet.ra...@case.edu] 
Sent: Thursday, September 03, 2009 7:44 AM
To: Tovrea, George W (US SSA)
Cc: bug-bash@gnu.org; chet.ra...@case.edu
Subject: Re: Who handles "fails to build" problems for bash?

Tovrea, George W (US SSA) wrote:
> Tried adding each of -lcurses and -lncurses with the following results:
> 
> /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

I've not seen this before, nor do I have any SGI boxes to look at, so there
will be some amount of blind shooting here.

You could try adding -DNEED_EXTERN_PC to the value of the LOCAL_CFLAGS
variable in lib/readline/Makefile and remaking terminal.o.  This changes
how PC is declared.  Then relink and see if that fixes the problem.

Chet

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




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

2009-09-03 Thread Chet Ramey
Tovrea, George W (US SSA) wrote:
> Tried adding each of -lcurses and -lncurses with the following results:
> 
> /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

I've not seen this before, nor do I have any SGI boxes to look at, so there
will be some amount of blind shooting here.

You could try adding -DNEED_EXTERN_PC to the value of the LOCAL_CFLAGS
variable in lib/readline/Makefile and remaking terminal.o.  This changes
how PC is declared.  Then relink and see if that fixes the problem.

Chet

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




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

2009-09-02 Thread Tovrea, George W (US SSA)
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:c...@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; c...@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, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/




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

2009-09-01 Thread Chet Ramey
> 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, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/