[openssl-dev] [openssl.org #4444] [openssl-1.1.0-pre4] Make fails with "recipe for target 'depend' failed" on solaris64-x86_64

Erik Forsberg via RT rt at openssl.org
Fri Mar 18 22:30:42 UTC 2016


It is the -nt that breaks Solaris 10

(dev0) 22$ make test
catdepends=false
+ [ Makefile -nt Makefile ] 
*** Error code 1

it stops executing on that line.

I like the suggestion of using /bin/ksh on Solaris 10, that is
generally needed also for many GNU autoconfig scripts, so why not OpenSSL too ?
It would be nice if that could be specified in the 10-main.conf snippets ?

>-- Original Message --
>
>
>Perhaps with said attachment this time...
>
>Vid Fre, 18 Mar 2016 kl. 16.49.13, skrev levitte:
>> Vid Fre, 18 Mar 2016 kl. 16.34.05, skrev rainer.jung at kippdata.de:
>> > I had the same problem. /bin/sh on Solaris does not understand the "-
>> > nt"
>> > operator used in the definition of the "depend" target in the top-
>> > level
>> > Makefile, e.g. in line
>> >
>> > if [ Makefile -nt Makefile ] ...
>>
>> That can't be the cause, because whatever the exit code from the test
>> is, it's
>> "swallowed" by 'if'. A little like this is:
>>
>> $ if (exit 1); then :; fi; echo $? 0 I cannot tell you what's going
>> wrong, and
>> the only suggestion I currently have is to apply the attached patch
>> and then
>> reconfigure and make and see what the output is. Can I assume you know
>> what
>> 'set -ex' does?
>>
>> Cheers,
>> Richard
>>
>> --
>> Richard Levitte
>> levitte at openssl.org
>
>
>--
>Richard Levitte
>levitte at openssl.org
>
>-- 
>Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4444
>Please log in as guest with password guest if prompted
>
>
>diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
>index 3a1ade7..d13ab5e 100644
>--- a/Configurations/unix-Makefile.tmpl
>+++ b/Configurations/unix-Makefile.tmpl
>@@ -266,7 +266,7 @@ clean: libclean
> # recognise the operator.
> depend:
> 	@: {- output_off() if $disabled{makedepend}; "" -}
>-	@catdepends=false; \
>+	@set -ex; catdepends=false; \
> 	if [ Makefile -nt Makefile ] 2>/dev/null || [ $$? = 1 ]; then \
> 	  for d in $(DEPS); do \
> 	    if [ $$d -nt Makefile ]; then \
>
>-- 
>openssl-dev mailing list
>To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4444
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list