Re: bash 4.4: `configure --enable-static-link --without-gnu-malloc` fails with `No rule to make target 'install-'`

2016-10-03 Thread Chet Ramey
On 10/2/16 6:54 PM, Andrew Tomazos wrote:
> When I try to configure and make install bash 4.4 as follows:
> 
> $ configure --enable-static-link --without-gnu-malloc
> $ make install

What happens if you run `make install SHOBJ_STATUS=unsupported'?  Does
that at least complete successfully?  Then I can see why it's not
defaulting to `unsupported'.

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



Re: bash 4.4: `configure --enable-static-link --without-gnu-malloc` fails with `No rule to make target 'install-'`

2016-10-03 Thread Chet Ramey
On 10/3/16 10:01 AM, Chet Ramey wrote:
> On 10/2/16 6:54 PM, Andrew Tomazos wrote:
>> When I try to configure and make install bash 4.4 as follows:
>>
>> $ configure --enable-static-link --without-gnu-malloc
>> $ make install
> 
> What happens if you run `make install SHOBJ_STATUS=unsupported'?  Does
> that at least complete successfully?  Then I can see why it's not
> defaulting to `unsupported'.

Try this patch (and rebuild configure using `autoconf') to force the
default to unsupported if we're not going to use dynamic loading.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.4/configure.ac	2016-09-07 16:56:28.0 -0400
--- configure.ac	2016-10-03 10:07:07.0 -0400
***
*** 1152,1155 
--- 1152,1158 
  	AC_SUBST(SHOBJ_STATUS)
  	AC_MSG_RESULT($SHOBJ_STATUS)
+ else
+ 	SHOBJ_STATUS=unsupported
+ 	AC_SUBST(SHOBJ_STATUS)
  fi
  


Re: bash 4.4: `configure --enable-static-link --without-gnu-malloc` fails with `No rule to make target 'install-'`

2016-10-03 Thread Andrew Tomazos
On Mon, Oct 3, 2016 at 10:57 AM, Chet Ramey  wrote:

> On 10/3/16 10:01 AM, Chet Ramey wrote:
> > On 10/2/16 6:54 PM, Andrew Tomazos wrote:
> >> When I try to configure and make install bash 4.4 as follows:
> >>
> >> $ configure --enable-static-link --without-gnu-malloc
> >> $ make install
> >
> > What happens if you run `make install SHOBJ_STATUS=unsupported'?  Does
> > that at least complete successfully?  Then I can see why it's not
> > defaulting to `unsupported'.
>
> Try this patch (and rebuild configure using `autoconf') to force the
> default to unsupported if we're not going to use dynamic loading.
>
>
I have tested your patch and it works successfully.

(Last night I worked around by hacking the Makefile, see the patch at the
end of: http://stackoverflow.com/q/39822816/1131467 )

Let me know if you need anything else from me.