Closed kylak closed 4 months ago
first, after unpacking you don't need to use INSTALL.sh
does followng in the unpacked directory work?
./o-saft.pl --version
(some **WARNING message are ok)
If so, you can use o-saft.pl right away.
Said this, back to the error, which looks strange to me.
Please post result of:
wc o-saft.pl
grep SID_main o-saft.pl
Thanks.
BTW, you're using version 24.01.24, latest is 24.06.24.
can you please also post result of:
perl -le 'print "# $] # $^V #"'
Thanks.
I updated the program to 24.06.24.
So, here the result of perl -le 'print "# $] # $^V #"'
:
# 5.016003 # v5.16.3 #
When doing ./o-saft.pl --version
, I got :
Having no space between pattern and following word is deprecated at ./o-saft.pl line 144.
Bareword found where operator expected at ./o-saft.pl line 144, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
"my" variable $txt masks earlier declaration in same scope at ./o-saft.pl line 157.
"my" variable $txt masks earlier declaration in same scope at ./o-saft.pl line 158.
Having no space between pattern and following word is deprecated at ./o-saft.pl line 162.
Bareword found where operator expected at ./o-saft.pl line 162, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
"my" variable $txt masks earlier declaration in same scope at ./o-saft.pl line 172.
"my" variable $txt masks earlier declaration in same statement at ./o-saft.pl line 173.
"my" variable $txt masks earlier declaration in same scope at ./o-saft.pl line 175.
"my" variable $txt masks earlier declaration in same scope at ./o-saft.pl line 176.
syntax error at ./o-saft.pl line 144, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
Can't use global $0 in "my" at ./o-saft.pl line 145, near "= $0"
Global symbol "$me" requires explicit package name at ./o-saft.pl line 145.
syntax error at ./o-saft.pl line 151, near "}"
syntax error at ./o-saft.pl line 162, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
Can't use global $0 in "my" at ./o-saft.pl line 163, near "= $0"
Global symbol "$me" requires explicit package name at ./o-saft.pl line 163.
syntax error at ./o-saft.pl line 166, near "}"
syntax error at ./o-saft.pl line 178, near "}"
syntax error at ./o-saft.pl line 180, near "; }"
./o-saft.pl has too many errors.
The result of wc o-saft.pl
has been :
9593 55415 459118 o-saft.pl
And the result of grep SID_main o-saft.pl
has been :
our $SID_main = "@(#) yeast.pl 3.73 24/06/21 21:01:29"; # version of this file
ok, probably fixed.
If you don't use git clone ...
, please get newest version of o-saft.pl
and INSTALL.sh
Please let me know if errors still occour.
Again: INSTALL.sh is not necessary for using o-saft.pl .
Thanks.
I updated to the lastest release version 24.06.24 (I got the tarball and launched the command in the extracted folder), but the problem still occurs.
you used the tarball o-saft.tgz
and not git clone ...
right?
Please use git clone, or manually get o-saft.pl and INSTALL.sh
Background: tarball is the latest full tested release (24.06.24 from June); git clone gives you the current development version, the newest files.
Ok. I updated manually those two files.
But when running ./o-saft.pl --version
(I had to do chmod +x o-saft.pl
), I got :
panic: attempt to copy freed scalar eb7df0 to cbcc80 at ./o-saft.pl line 407.
And when I did ./INSTALL.sh --check .
(I also had to do a chmod + x), I've gotten :
[root@server O-Saft-24.06.24]# ./INSTALL.sh --check .
# ./INSTALL.sh 3.25 ...
# check for O-Saft programs found via environment variable PATH
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
#
# Note: all found executables in PATH are listed
#
# o-saft.pl not found in PATH, consider adding . to PATH
# wish not found in PATH, consider installing wish
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check installation in .
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# (warnings are ok if »git clone« will be used for development)
# o-saft-docker-dev found; file for development
# Dockerfile found; file for development
# Makefile found; file for development
# t/ found; file for development
# usr/critic.sh found; file for development
# CHANGES found; file for development
# o-saft.tgz found; file for development
# consider running »./INSTALL.sh --clean .«
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for used O-Saft programs (according $PATH)
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# o-saft.pl 24.06.24 /home/admin/Desktop/O-Saft-24.06.24/./o-saft.pl
not checked because »wish« missing
# o-saft 3.1 /home/admin/Desktop/O-Saft-24.06.24/./o-saft
# o-saft-docker 1.49 /home/admin/Desktop/O-Saft-24.06.24/./o-saft-docker
# usr/o-saft-standalone.pl syntax error at usr/o-saft-standalone.pl line 72, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
Can't use global $0 in "my" at usr/o-saft-standalone.pl line 73, near "= $0"
syntax error at usr/o-saft-standalone.pl line 79, near "}"
syntax error at usr/o-saft-standalone.pl line 89, near "qr/(([+,]|--)exit=\Q$arg\E).*/n"
Can't use global $0 in "my" at usr/o-saft-standalone.pl line 90, near "= $0"
syntax error at usr/o-saft-standalone.pl line 94, near "}"
syntax error at usr/o-saft-standalone.pl line 105, near "}"
syntax error at usr/o-saft-standalone.pl line 107, near "; }"
syntax error at usr/o-saft-standalone.pl line 127, near "}"
BEGIN not safe after errors--compilation aborted at usr/o-saft-standalone.pl line 134.
usr/o-saft-standalone.pl
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for installed O-Saft resource files
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# ./.o-saft.pl will be used when started in . only
# /root/.o-saft.tcl missing, consider generating: » --rc > /root/.o-saft.tcl«
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for installed Perl modules (started in . )
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# Net::DNS 1.45 /root/perl5/lib/perl5/Net/DNS.pm
# Net::SSLeay 1.94 /root/perl5/lib/perl5/x86_64-linux-thread-multi/Net/SSLeay.pm
# IO::Socket::INET 1.55 /root/perl5/lib/perl5/x86_64-linux-thread-multi/IO/Socket/INET.pm
# IO::Socket::SSL 2.088 /root/perl5/lib/perl5/IO/Socket/SSL.pm
# Time::Local 1.2300 /usr/share/perl5/vendor_perl/Time/Local.pm
# OCfg 24.06.24 lib/OCfg.pm
# Ciphers 24.06.24 lib/Ciphers.pm
# error_handler 24.01.24 lib/error_handler.pm
# SSLinfo 24.06.24 lib/SSLinfo.pm
# SSLhello 24.06.24 lib/SSLhello.pm
# OData 24.06.24 lib/OData.pm
# ODoc 24.06.24 lib/ODoc.pm
# OMan missing, try installing from/with »cpan OMan«
# OText 24.06.24 lib/OText.pm
# OTrace missing, try installing from/with »cpan OTrace«
# OUsr 24.06.24 lib/OUsr.pm
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for important Perl modules used by installed O-Saft
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# testing ./o-saft.pl ...
# Net::DNS missing?
# Net::SSLeay missing?
# IO::Socket::INET missing?
# IO::Socket::SSL missing?
# Time::Local missing?
# testing ./o-saft.pl ...
# Net::DNS missing?
# Net::SSLeay missing?
# IO::Socket::INET missing?
# IO::Socket::SSL missing?
# Time::Local missing?
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# summary of warnings from installed O-Saft (should be empty)
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# testing ./o-saft.pl in . ...
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for openssl executable in PATH
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# openssl /bin/openssl (OpenSSL 1.0.2k-fips 26 Jan 2017)
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for openssl executable used by O-Saft
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
panic: attempt to copy freed scalar b58e00 to 95db58 at ./o-saft.pl line 407.
missing
panic: attempt to copy freed scalar 2497e00 to 229cb58 at ./o-saft.pl line 407.
missing
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for optional tools to view documentation
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# aha missing
# perldoc /bin/perldoc
# pod2html /bin/pod2html
# pod2man /bin/pod2man
# pod2pdf missing
# pod2text /bin/pod2text
# pod2usage /bin/pod2usage
# podman missing
# podviewer missing
# stty /bin/stty
# tkpod missing
# tput /bin/tput
#
# Note: podman is a tool to view pod files, it's not the container engine
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# check for contributed files (in ./usr )
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# Cert-beautify.awk ./usr/Cert-beautify.awk
# Cert-beautify.pl ./usr/Cert-beautify.pl
# HTML-simple.awk ./usr/HTML-simple.awk
# HTML-table.awk ./usr/HTML-table.awk
# HTML4-table.awk missing ./usr/HTML4-table.awk
# HTML5-table.awk missing ./usr/HTML5-table.awk
# JSON-array.awk ./usr/JSON-array.awk
# JSON-struct.awk ./usr/JSON-struct.awk
# XML-attribute.awk ./usr/XML-attribute.awk
# XML-value.awk ./usr/XML-value.awk
# alertscript.cfg ./usr/alertscript.cfg
# alertscript.pl ./usr/alertscript.pl
# bash_completion_o-saft ./usr/bash_completion_o-saft
# bunt.pl ./usr/bunt.pl
# bunt.sh ./usr/bunt.sh
# checkAllCiphers.pl ./usr/checkAllCiphers.pl
# cipher_check.sh ./usr/cipher_check.sh
# dash_completion_o-saft missing ./usr/dash_completion_o-saft
# filter_examples ./usr/filter_examples
# fish_completion_o-saft ./usr/fish_completion_o-saft
# lazy_checks.awk ./usr/lazy_checks.awk
# symbol.pl ./usr/symbol.pl
# tcsh_completion_o-saft ./usr/tcsh_completion_o-saft
# usage_examples ./usr/usage_examples
# zap_config.sh missing ./usr/zap_config.sh
# zap_config.xml ./usr/zap_config.xml
# o-saft-standalone.pl ./usr/o-saft-standalone.pl
#----------------------+-----------------------------------------------------------------------------------------------------------------------------
# checks failed , 2 error(s) detected
[root@server O-Saft-24.06.24]#
Your system has an ancient perl 5.016 but new modules, interesting ...
The error about o-saft-standalone.pl can be ignored.
The "panic" error may be important. Can you please check in this directory with:
./o-saft.pl -no-warn +version
you may also test with standard commands:
./o-saft.pl localhost +cn
./o-saft.pl localhost +cipher
./o-saft.pl localhost --help
( **WARNING message are ok).
Hi KylaG,
I opened a new issue 137 for the panic: attempt to copy freed scalar ...
Can you please comment on that for this ("panic") one.
The initial issue here about Having no space between pattern and following word ...
seems to be fixed in the new o-saft.pl. Do you agree?
Thanks.
Hi, Sure I'll do that. And yes I do agree that the space problem has been fixed, thanks.
Hi, I got 2 errors when I launched ./INSTALL.sh --check . Since I installed the pre-requisites Perl modules, I don't understand what is the problem ? Here is the output of the command :