Subject: | non-x86 architecture: No OpenSSL crypto library found |
Date: | Mon, 30 Mar 2020 15:09:32 +1000 |
To: | bug-Filter-Crypto [...] rt.cpan.org |
From: | Alexander Zangerl <az [...] breathe-safe.com> |
this is almost a reopen of bug #86632, but for non-x86 architectures.
i'm building filter-crypto on & for an arm-based single board computer
that runs debian linux, and on that platform Makefile.PL doesn't look
in the right places for libcrypto/libssl.*:
/usr/lib/arm-linux-gnueabihf/ isn't consulted.
the reporter of #86632 provided a patch that extended the general
library search specifically for x86_64-linux-gnu/i386-linux-gnu but
that clearly doesn't help on a non-x86 box.
i think a more generic approach based on what perl -V and/or %Config
report would be better. on the box in question i see these relevant bits
of information:
$ cat /etc/ld.so.conf.d/*
# Multiarch support
/usr/local/lib/arm-linux-gnueabihf
/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf
# libc default configuration
/usr/local/lib
$ perl -V
Summary of my perl5 (revision 5 version 28 subversion 1) configuration:
Platform:
osname=linux
osvers=4.9.0
archname=arm-linux-gnueabihf-thread-multi-64int
uname='linux localhost 4.9.0 #1 smp debian 4.9.0 armv7l gnulinux '
...
Linker and Libraries:
ld='arm-linux-gnueabihf-gcc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
...
@INC:
/etc/perl
/usr/local/lib/arm-linux-gnueabihf/perl/5.28.1
/usr/local/share/perl/5.28.1
/usr/lib/arm-linux-gnueabihf/perl5/5.28
/usr/share/perl5
/usr/lib/arm-linux-gnueabihf/perl/5.28
/usr/share/perl/5.28
/usr/local/lib/site_perl
/usr/lib/arm-linux-gnueabihf/perl-base
$ perl -MConfig -MData::Dumper -e 'print Dumper(\%Config); | fgrep lib/arm
...
'libsdirs' => ' /usr/lib/arm-linux-gnueabihf',
man Config says that libsdirs '... holds the directory names aka
dirnames of the libraries we found and accepted'; i think that using this
in locate_lib_dir_and_file() would be a Good Idea.
regards
az
--
Best Regards,
Alexander Zangerl
IT Engineer
BREATHE-SAFE intelligent cabin air filtration
Keeps your lungs and cabin dust free!
Head Office: 37 Argon Street, Carole Park QLD 4300 Australia
Western Australia: 169 Chisholm Crescent, Kewdale WA 6105
Tel: +61 7 3276 7833 M. +61 415 482 341 E. az@breathe-safe.com