From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from Ishtar.sc.tlinx.org (ishtar.tlinx.org [173.164.175.65]) by sourceware.org (Postfix) with ESMTPS id 71D46388A422 for ; Wed, 2 Jun 2021 19:06:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 71D46388A422 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tlinx.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tlinx.org Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 152J5bHa081488; Wed, 2 Jun 2021 12:05:39 -0700 Message-ID: <60B7D650.5050201@tlinx.org> Date: Wed, 02 Jun 2021 12:04:48 -0700 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? References: <60B6F382.1080303@tlinx.org> <745ebfe2-02d1-b258-4db8-2c0ba9fb7d8c@SystematicSw.ab.ca> In-Reply-To: <745ebfe2-02d1-b258-4db8-2c0ba9fb7d8c@SystematicSw.ab.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_EXEURI, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2021 19:06:05 -0000 On 2021/06/01 21:32, Brian Inglis wrote: > $ grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s > perl-Algorithm-Diff,perl-Authen-SASL,perl-Authen-SASL-XS,... > ...,perl-namespace-autoclean,perl-namespace-clean > $ wget -NP /tmp/ https://cygwin.com/setup-x86_64.exe > $ cygstart /tmp/setup-x86_64 -fgnqrP \ > `grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s` ---- Thanks, mostly. It did try to install them, but the solver was/is too smart, it comes up with 2 solutions 1/2 to uninstall 5.32, install 5.30-x and a bunch of other modules, and (2/2) (Default) Don't uninstall 5.30 and keep 5.32. I think the db-base in /etc/setup contains all the 5.32 compat modules -- so it basically saw all those uninstalls/reinstall and just told me it was taking the easier path! ;-) How does one pick a non-default choice at that point (not that this was the only problem -- seems I have existing modules installed in 5.32 under a local site_lib directory. Problem there is that the existing modules there don't link: HiRes.c: loadable library and perl binaries are mismatched (got=20 handshake key 0x 800000770, needed 0x0) But if i just push that dir out of the way, the 1st prog I tried (pcalc that led to me trying cpan which didn't work) now works, however the 2nd prog "dedup", wouldn't work because of a missing prereq from CPAN which won't make: > dedup Can't locate POSIX/RT/Semaphore.pm in @INC (you may need to install the=20 POSIX::RT::Semaphore module) --- Tried making that, but I don't think it is compatible with 5.32 due to incompatible changes in perl (vaguely remember something like that, but not sure...) But it fails with: > cpan -i POSIX::RT::Semaphore Loading internal logger. Log::Log4perl recommended for better logging CPAN::SQLite not installed, trying to work without Reading '/Share/CPAN/Metadata' Database was generated on Tue, 01 Jun 2021 01:29:03 GMT Running install for module 'POSIX::RT::Semaphore' CPAN: LWP::UserAgent loaded ok (v6.54) Fetching with LWP: http://mirrors.kernel.org/CPAN/authors/id/M/MJ/MJP/POSIX-RT-Semaphore-0.0= 5.tar.gz CPAN: YAML loaded ok (v1.30) CPAN: Digest::SHA loaded ok (v6.02) Fetching with LWP: HASH(0x811899ad8)authors/id/M/MJ/MJP/CHECKSUMS Fetching with LWP: HASH(0x811899ad8)authors/id/M/MJ/MJP/CHECKSUMS.gz Fetching with LWP: http://mirrors.kernel.org/CPAN/authors/id/M/MJ/MJP/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.093) Checksum for=20 /Share/CPAN/sources/authors/id/M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz ok= CPAN: Archive::Tar loaded ok (v2.36) CPAN: CPAN::Meta::Requirements loaded ok (v2.140) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) Configuring M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for POSIX::RT::Semaphore Writing MYMETA.yml and MYMETA.json MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/perl Makefile.PL -- OK Running make for M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz CPAN: Module::CoreList loaded ok (v5.20210123) cp Semaphore.pm blib/lib/POSIX/RT/Semaphore.pm Running Mkbootstrap for Semaphore () "/usr/bin/perl.exe" "/usr/share/perl5/5.32/ExtUtils/xsubpp" -typemap=20 '/usr/share/perl5/5.32/ExtUtils/typemap' -typemap=20 '/var/cache/CPAN/build/POSIX-RT-Semaphore-0.05-2/typemap' Semaphore.xs=20 > Semaphore.xsc chmod 644 "Semaphore.bs" "/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' --=20 Semaphore.bs blib/arch/auto/POSIX/RT/Semaphore/Semaphore.bs 644 mv Semaphore.xsc Semaphore.c gcc -c -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb = -O2 -pipe -Wall -Werror=3Dformat-security -D_FORTIFY_SOURCE=3D2=20 -fstack-protector-strong --param=3Dssp-buffer-size=3D4=20 -fdebug-prefix-map=3D/mnt/share/cygpkgs/perl/perl.x86_64/build=3D/usr/src= /debug/perl-5.32.1-1=20 -fdebug-prefix-map=3D/mnt/share/cygpkgs/perl/perl.x86_64/src/perl-5.32.1=3D= /usr/src/debug/perl-5.32.1-1=20 -fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=3D\"0.05\"=20 -DXS_VERSION=3D\"0.05\" =20 "-I/usr/lib/perl5/5.32/x86_64-cygwin-threads/CORE" -DHAVE_SEM_DESTROY=20 -DHAVE_SEM_GETVALUE -DHAVE_SEM_INIT -DHAVE_SEM_OPEN -DHAVE_SEM_POST=20 -DHAVE_SEM_TIMEDWAIT -DHAVE_SEM_TRYWAIT -DHAVE_SEM_UNLINK=20 -DHAVE_SEM_WAIT Semaphore.c Semaphore.c: In function =E2=80=98XS_POSIX__RT__Semaphore_unlink=E2=80=99= : Semaphore.c:269:8: warning: variable =E2=80=98pkg=E2=80=99 set but not us= ed=20 [-Wunused-but-set-variable] 269 | char* pkg; | ^~~ Semaphore.c: In function =E2=80=98XS_POSIX__RT__Semaphore__Unnamed_init=E2= =80=99: Semaphore.c:586:8: warning: variable =E2=80=98pkg=E2=80=99 set but not us= ed=20 [-Wunused-but-set-variable] 586 | char* pkg; | ^~~ Semaphore.c: In function =E2=80=98XS_POSIX__RT__Semaphore__Named_open=E2=80= =99: Semaphore.c:686:8: warning: variable =E2=80=98pkg=E2=80=99 set but not us= ed=20 [-Wunused-but-set-variable] 686 | char* pkg; | ^~~ At top level: Semaphore.xs:92:1: warning: =E2=80=98function_not_implemented=E2=80=99 de= fined but not=20 used [-Wunused-function] 92 | function_not_implemented(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ rm -f blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols=20 -Wl,--enable-auto-image-base -fstack-protector-strong Semaphore.o -o=20 blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll \ /usr/lib/perl5/5.32/x86_64-cygwin-threads/CORE/cygperl5_32.dll -lrt \= =20 chmod 755 blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll Manifying 1 pod document MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/make -j -j -- OK CPAN: CPAN::DistnameInfo loaded ok (v0.12) Running make test for MJP/POSIX-RT-Semaphore-0.05.tar.gz "/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' --=20 Semaphore.bs blib/arch/auto/POSIX/RT/Semaphore/Semaphore.bs 644 PERL_DL_NONLAZY=3D1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM"=20 "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0,=20 'blib/lib', 'blib/arch')" t/*.t t/01util.t ................ ok =20 t/can.t ................... UNIVERSAL does not export anything at=20 t/can.t line 10. BEGIN failed--compilation aborted at t/can.t line 10. # Looks like your test exited with 255 before it could output anything. t/can.t ................... Dubious, test returned 255 (wstat 65280, 0xff= 00) Failed 26/26 subtests t/ctors.t ................. ok =20 t/fork-inherit-named.t .... ok =20 t/fork-inherit-unnamed.t .. ok =20 t/fork-reopen.t ........... ok =20 t/invalid.t ............... ok =20 t/named.t ................. ok =20 t/pod.t ................... ok =20 t/threaded.t .............. ok =20 t/unnamed.t ............... ok =20 t/use_basic.t ............. ok =20 t/use_consts.t ............ ok =20 Test Summary Report ------------------- t/can.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 26 tests but ran 0. Files=3D13, Tests=3D170, 5 wallclock secs ( 0.09 usr 0.05 sys + 1.07=20 cusr 0.92 csys =3D 2.14 CPU) Result: FAIL Failed 1/13 test programs. 0/170 subtests failed. make: *** [Makefile:1026: test_dynamic] Error 255 MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try:= reports MJP/POSIX-RT-Semaphore-0.05.tar.gz -------------------------------- Trying to use the old 5.32 tree a fall back for anything that fell to relying on /usr/local/lib/perl5/site_perl/5.32, I get the mistmatched nonsense..(damn**) HiRes.c: loadable library and perl binaries are mismatched (got=20 handshake key 0x800000770, needed 0x0) **-now perl libs are checking for version mismatches at dl-load time? ARG! - it seems it used to work before this update, but is this a new 5.32 update? Got handshake key 0x800000770, needed 0x0? what does that hex code mean? or what version was/is it looking for? Sigh...where are the flags to 'setup' documented? Last time I tried setup.exe -h, it just hopped into the standard download dialogues... Thanks! ;^) (sigh)