make install fails as it tries to write in /tmp
Thibaut Appel
t.appel17 at imperial.ac.uk
Wed Oct 28 15:33:12 UTC 2020
Dear Viktor,
I did try to change that hard-coded /tmp.
make install now fails because of
link
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so
->
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so.1.1
install libcrypto.so ->
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so
install libcrypto.so.1.1 ->
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so
ar:
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so:
file format not recognized
ar:
/rds/general/user/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h/lib/libcrypto.so.new:
file format not recognized
make: *** [install_dev] Error 1
and I have
$ perl configdata.pm -c
Command line (with current working directory = .):
/usr/bin/perl ./Configure linux-x86_64
--prefix=/rds/general/user/ta3616/home/.linuxbrew/Cellar/openssl at 1.1/1.1.1h
Perl information:
/usr/bin/perl
5.16.3 for x86_64-linux-thread-multi
It seems https://github.com/openssl/openssl/issues/6641 was about the
same issue. I found out that my Text::Template is 1.45. Maybe that's the
problem
Thibaut
On 28/10/2020 16:08, Viktor Dukhovni wrote:
> *******************
> This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender.
> If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address.
> *******************
> On Wed, Oct 28, 2020 at 09:48:37AM +0100, Thibaut Appel wrote:
>
>> I uncovered a potential issue affecting the installation of OpenSSL from
>> source, in the case the user is not allowed to write in the /tmp folder.
> This build environment was not anticipated by the build system, which
> employs:
>
> $ git grep -A10 /tmp/ar
> unix-Makefile.tmpl: if [ -f "$$a" ]; then ( trap "rm -rf /tmp/ar.$$$$" INT 0; \
> unix-Makefile.tmpl: mkdir /tmp/ar.$$$$; ( cd /tmp/ar.$$$$; \
> unix-Makefile.tmpl- cp -f "$$a" "$$a.new"; \
> unix-Makefile.tmpl- for so in `$(AR) t "$$a"`; do \
> unix-Makefile.tmpl- $(AR) x "$$a" "$$so"; \
> unix-Makefile.tmpl- chmod u+w "$$so"; \
> unix-Makefile.tmpl- strip -X32_64 -e "$$so"; \
> unix-Makefile.tmpl- $(AR) r "$$a.new" "$$so"; \
> unix-Makefile.tmpl- done; \
> unix-Makefile.tmpl- )); fi; \
> unix-Makefile.tmpl- $(AR) r "$$a.new" "$$s1"; \
> unix-Makefile.tmpl- mv -f "$$a.new" "$$a"; \
>
> The hard-coded /tmp there is not essential, it could be replaced with
> mkdir -p .tmp/ar.$$$$, or some other appropriate path.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20201028/cf9c0f10/attachment.html>
More information about the openssl-users
mailing list