Re: Segmentation fault after fc command in bash script

2011-04-21 Thread pi...@piumalab.org
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/04/2011 22:11, Chet Ramey wrote:
> The problem has to do with bad calculations of the last history entry.
> I've attached patches for bash-4.1 and bash-4.2.  Please let me know if
> they fix the problem; they seem to fix it for me.
> 
> Chet

Hello Chet!
I had tested your patch in the bash version 4.2, and I didn't found the bug any
more.
All seems works well.


Thanks a lot for the patch.
   Piuma
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNsEr4AAoJEDSpnBSp0g/YfckH/392ReNtFH7PE+mpNtc+BaJZ
HVHdPlDTxrfmxj8cXbjxQPYbUMhGIxCmu3wZFY5iOcCyA+p2IYldg53LrvJq7tUr
LXsrGCH5yj+ifBGKyhdRvf7msFimt4i7HCON+I4OrdoeuL0E4BMqkbGND+gwHUJo
ssSqCpJQn8mRZ7/iOZFrxQZoknedmQqB8TEi+k67U4RJ6SpGibx61THa1mOiWkFJ
BKXuI1fAWkCDhkv34Jad+Dol/zgjVafmufgZy9WYYoleF9RlYOQEw6g1Wi9bK5Cv
eBI8ANVWwWpPwF/Iy0KakEeID53D1T7Ok0gjEFkS87FxzLG3Q17hvsJBjqGvwcs=
=MC5u
-END PGP SIGNATURE-



Re: Error building mkbuiltins on ia64-hp-hpux11.23

2011-04-21 Thread Chet Ramey
> Building bash 4.2 on an HP-UX/Itanium system:
> 
> gmake[1]: Entering directory `/tmp/bash-4.2.build/builtins'
> rm -f mkbuiltins.o
> cc -c  -DHAVE_CONFIG_H -DSHELL  -I. -I..  -I/tg/freeport/src/bash/bash--4.2 
> -I/tg/freeport/src/bash/bash--4.2/include 
> -I/tg/freeport/src/bash/bash--4.2/lib 
> -I/tg/freeport/src/bash/bash--4.2/builtins  -DHPUX  
> -D_HPUX_API_LEVEL=20040821 -D_HPUX_SOURCE  -g  
> /tg/freeport/src/bash/bash--4.2/builtins/mkbuiltins.c
> cc  +DD64 +DO11.00 +DSblended +Olit=all -mt +w -z +p -Wl,+k +O1 +Onofltacc 
> +Onolimit +Onosize  -g  -o mkbuiltins mkbuiltins.o -ldl 
> ld: Can't find library or mismatched ABI for -ldl
> Fatal error.
> gmake[1]: *** [mkbuiltins] Error 1
> gmake[1]: Leaving directory `/tmp/bash-4.2.build/builtins'
> gmake: *** [builtins/builtext.h] Error 1
> 
> The attached patch (against the 4.2 source) fixes the problem for me.

What is the part of CFLAGS that fixes this, and why not just add it to
CFLAGS_FOR_BUILD?  CFLAGS_FOR_BUILD is for the `build tools' part of the
builtins library.

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: Error building mkbuiltins on ia64-hp-hpux11.23

2011-04-21 Thread Daniel Richard G.
On Thu, 2011 Apr 21 16:36-0400, Chet Ramey wrote:
>
> What is the part of CFLAGS that fixes this, and why not just add it to
> CFLAGS_FOR_BUILD?  CFLAGS_FOR_BUILD is for the `build tools' part of
> the builtins library.

I believe the "+DD64" bit is salient. (Generate 64-bit instead of
32-bit code.)

The problem here is that the makefile is compiling without CFLAGS
(a.k.a. with CFLAGS_FOR_BUILD), and then linking with CFLAGS. Whether
it's CFLAGS or CFLAGS_FOR_BUILD isn't the issue; it's that the makefile
is using one and then the other on the same object.

That said, I'm not sure why CFLAGS and CFLAGS_FOR_BUILD should be
different, given that this is a "simple" build where build = host =
target.


--Daniel


-- 
NAME = Daniel Richard G. _\|/_Remember, skunks
MAIL = sk...@iskunk.org (/o|o\) _- don't smell bad---
MAIL+= sk...@alum.mit.edu   < (^),> it's the people who
WWW  = (not there yet!)  /   \  annoy us that do!