View Only
  • 1.  Perl cpan Net::SSLeay looking for Xl C compiler:

    Posted Wed November 15, 2023 05:09 PM

    perl 5, version 34, subversion 1 (v5.34.1) built for aix-thread-multi
    latest dnf installed and packages updated.

    Trying to install the Net::SSLeay via cpan:

    # cpan Net::SSLeay
    Loading internal logger. Log::Log4perl recommended for better logging
    Reading '/.cpan/Metadata'
      Database was generated on Tue, 14 Nov 2023 19:17:02 GMT
    Running install for module 'Net::SSLeay'
    Checksum for /.cpan/sources/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ok
    'YAML' not installed, will not store persistent state
    Configuring C/CH/CHRISN/Net-SSLeay-1.92.tar.gz with Makefile.PL
    Do you want to run external tests?
    These tests *will* *fail* if you do not have network connectivity. [n] n
    *** Be sure to use the same compiler and options to compile your OpenSSL, perl,
        and Net::SSLeay. Mixing and matching compilers is not supported.
    *** Found OpenSSL-3.0.7 installed in /usr
    Checking if your kit is complete...
    Looks good
    Generating a Unix-style Makefile
    Writing Makefile for Net::SSLeay
    Writing MYMETA.yml and MYMETA.json
      /usr/opt/perl5/bin/perl Makefile.PL -- OK
    Running make for C/CH/CHRISN/Net-SSLeay-1.92.tar.gz
    cp lib/Net/SSLeay/ blib/lib/Net/SSLeay/
    cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
    cp lib/Net/ blib/lib/Net/
    AutoSplitting blib/lib/Net/ (blib/lib/auto/Net/SSLeay)
    blib/lib/Net/ some names are not unique when truncated to 8 characters:
     directory blib/lib/auto/Net/SSLeay:,,, truncate to do_https,, truncate to do_httpx,,,,,,,, truncate to get_http,,,,,,,, truncate to head_htt,,,,,,,, truncate to post_htt,,,,,,,, truncate to put_http,, truncate to ssl_read, truncate to ssl_writ,, truncate to tcp_read, truncate to tcp_writ
    Running Mkbootstrap for SSLeay ()
            chmod 644 ""
             "/usr/opt/perl5/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- blib/arch/auto/Net/SSLeay/ 644
            "/usr/opt/perl5/bin/perl" "/usr/opt/perl5/lib/5.34.1/ExtUtils/xsubpp"  -typemap '/usr/opt/perl5/lib/5.34.1/ExtUtils/typemap' -typemap '/.cpan/build/Net-SSLeay-1.92-1/typemap'  SSLeay.xs > SSLeay.xsc
            mv SSLeay.xsc SSLeay.c
            xlc_r -q32 -c  -I"/usr/include"  -DNET_SSLEAY_32BIT_INT_PERL -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O    -DVERSION=\"1.92\"  -DXS_VERSION=\"1.92\"  "-I/usr/opt/perl5/lib/5.34.1/aix-thread-multi/CORE"   SSLeay.c
    /bin/sh: xlc_r:  not found.
    make: 1254-004 The error code from the last command is 127.

      /usr/bin/make -- NOT OK
    # lslpp -l | grep -i xlc
      xlC.aix61.rte    COMMITTED  IBM XL C++ Runtime for AIX 6.1
      xlC.cpp            COMMITTED  C for AIX Preprocessor
      xlC.msg.en_US.cpp  COMMITTED  C for AIX Preprocessor
      xlC.msg.en_US.rte  COMMITTED  IBM XL C++ Runtime
      xlC.rte          COMMITTED  IBM XL C++ Runtime for AIX
      xlC.sup.aix50.rte  COMMITTED  XL C/C++ Runtime for AIX 5.2

    I found this older thread stating that perl looking for the xlc_r (Part of the paid product IBM XL C/C++ for AIX) was a mistake. Was wondering, was this ever addressed? Post that stated it was a mistake can be found here: AIX Open Source

    Ibm remove preview
    AIX Open Source
    Originally posted by: We installed the "AIX Toolbox for Linux Applications" perl-5.28.1-1 rpm package on our AIX 7.1 TL4 SP5 LPAR
    View this on Ibm >

    Are there any current workarounds?


    Jeff Arnsbarger

  • 2.  RE: Perl cpan Net::SSLeay looking for Xl C compiler:

    IBM Champion
    Posted Thu November 16, 2023 02:30 AM
    Edited by Joerg Kauke Thu November 16, 2023 02:30 AM

    Hello Jeff,

    install the RPM perl-Crypt-SSLeay-0.57-2.ppc and from the AIX Toolbox instead of using cpan to install. It is not the newest version, but it should work.

    kind regards

    Joerg Kauke
    Unix Administrator
    COOP Switzerland

  • 3.  RE: Perl cpan Net::SSLeay looking for Xl C compiler:

    Posted Tue December 19, 2023 09:51 AM

    Apologies for the late reply, that did the trick!



    Jeff Arnsbarger