Forgot to give my particulars:
Linux fedora, 4.18.19-100
perl -V
Summary of my perl5 (revision 5 version 28 subversion 1) configuration:
Platform:
osname=linux
osvers=3.45.x86_64
archname=x86_64-linux
uname='linux x86_64'
config_args='-de -f
/XXXX/PROJECTS/PERL_AHP_SCRIPT_ENCRYPTER/C/sbin/perl-static-config.sh
-Dprefix=/XXXX/perl5/perlbrew/perls/perl-5.28.1 -Dman1dir=none
-Dman3dir=none -Aeval:scriptdir=/XXXX/perl5/perlbrew/perls/perl-5.28.1/bin'
hint=previous
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2'
optimize='-O2'
cppflags='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='7.3.1 20180712 (Red Hat 7.3.1-6)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='ld'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib
/lib64 /usr/lib64 /usr/local/lib64 /usr/local/lib /usr/lib
libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
-lgdbm_compat
perllibs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
-lgdbm_compat
libc=libc-2.26.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.26'
Dynamic Linking:
dlsrc=dl_none.xs
dlext=none
d_dlsymun=undef
ccdlflags=''
cccdlflags=''
lddlflags=''
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_FAST_STDIO
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Locally applied patches:
Devel::PatchPerl 1.52
Built under linux
Compiled at Feb 13 2019 18:25:33
%ENV:
PERL5LIB="/XXXX/usr/lib/perl5"
PERLBREW_BASHRC_VERSION="0.80"
PERLBREW_HOME="/XXXX/.perlbrew"
PERLBREW_MANPATH="/XXXX/perl5/perlbrew/perls/perl-5.28.1/man"
PERLBREW_PATH="/XXXX/perl5/perlbrew/bin:/XXXX/perl5/perlbrew/perls/perl-5.28.1/bin"
PERLBREW_PERL="perl-5.28.1"
PERLBREW_ROOT="/XXXX/perl5/perlbrew"
PERLBREW_VERSION="0.86"
@INC:
/XXXX/usr/lib/perl5/x86_64-linux
/XXXX/usr/lib/perl5
/XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/site_perl/5.28.1/x86_64-linux
/XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/site_perl/5.28.1
/XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/5.28.1/x86_64-linux
/XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/5.28.1
On 13/02/19 23:32, Bugs in TermReadKey via RT wrote:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "static install fails",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #128504]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=128504
>
> Please include the string:
>
> [rt.cpan.org #128504]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> bug-TermReadKey@rt.cpan.org
>
> -------------------------------------------------------------------------
> Hi there,
>
> I am trying to build TermReadKey-2.38 with static linking.
>
> inside the extracted dist folder I do:
>
> perl Makefile.PL LINKTYPE=static
>
> then
>
> make
>
> Although it fails, at this stage I get a ReadKey.a. The failure is
> accompanined by a lot of errors relating to undefined references, e.g.
>
> ReadKey.c:(.text+0x20a4): undefined reference to `Perl_newXS'
>
> The error occurs at the following call:
>
> ld ReadKey.o -o blib/arch/auto/Term/ReadKey/ReadKey.none
>
> I managed to resolve it by adding LDFLAGS to the ld call
> e.g. in Linux:
>
> ld ReadKey.o -o blib/arch/auto/Term/ReadKey/ReadKey.none $(perl
> -MExtUtils::Embed -e ldopts)
>
> So, eventually that builds.
>
> Now I want to
>
> make install
>
> but I get:
>
> "/XXXX/perl5/perlbrew/perls/perl-5.28.1/bin/perl"
> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
> "/XXXX/perl5/perlbrew/perls/perl-5.28.1/bin/perl" "-Iblib/arch"
> "-Iblib/lib" ReadKey.pm.PL ReadKey.pm
> Creating ReadKey.pm
> Can't load module Term::ReadKey, dynamic loading not available in this perl.
> (You may need to build a new perl executable which either supports
> dynamic loading or has the Term::ReadKey module statically linked
> into it.)
> at
> /XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/5.28.1/x86_64-linux/DynaLoader.pm
> line 95.
> DynaLoader::croak("Can't load module Term::ReadKey, dynamic loading not
> availabl"...) called at
> /XXXX/perl5/perlbrew/perls/perl-5.28.1/lib/perl5/5.28.1/x86_64-linux/DynaLoader.pm
> line 118
> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey.pm.PL line 515
> Bootstrapping the XS for blockoptions: make: *** [Makefile:532:
> ReadKey.pm] Error 255
>
>
> Which to me means that, for the static case, one has to build a new perl
> with ReadKey.a linked to it and then use that perl to proceed with any
> bootstrapping.
>
> This is a great module and very essential to us all. If this could be
> fixed...
>
> Many Thanks, Andreas (bliako @ perlmonks + CPAN)
>