Hello Trying to get the perl crypt() function to work on CC 15.05. I installed the perl package and then did a make. Perl compiles and runs. However... the crypt function does not work. Note that this used to work on previous versions of OpenWRT. Any thoughts are greatly appreciated.
Here is the error I get..
root@Optimizer:/usr/local/gmnbin# perl -d
Loading DB routines from perl5db.pl version 1.44
Editor support available.
Enter h or 'h h' for help, or 'man perldebug' for more help.
crypt("helllo","hello");
main::(-:1): crypt("helllo","hello")
DB<1> n
The crypt() function is unimplemented due to excessive paranoia. at - line 1.
at - line 1.
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<1>
Here is perl -V showing that -lcrypt was compiled into the binary.
root@Optimizer:/usr/local/gmnbin# perl -V
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:
Platform:
osname=linux, osvers=2.4.30, archname=mipsel-linux-uclibc
uname='linux merope 2.4.30 #1 di 23. jan 15:23:42 cet 2007 mips unknown unknown gnulinux '
config_args='-der -Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='mipsel-openwrt-linux-uclibc-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include'
ccversion='', gccversion='3.4.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='mipsel-openwrt-linux-uclibc-gcc', ldflags =''
libpth=/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib /disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib
libs=-lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
cccdlflags='-fPIC', lddlflags='-shared -rdynamic -L/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/disk2/lsoltero/openwrt.cc/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/disk2/lsoltero/openwrt.cc/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under linux
Compiled at Oct 20 2015 04:10:52
@INC:
/usr/lib/perl5/5.20
.