Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  AIX - Install Libressl package

    Posted Thu April 21, 2022 05:25 AM
    Hi Experts,

    I would need to install Libressl package on AIX Machine. I followed the instructions mentioned in git repo. Currently receiving the below error while executing configure command.

    Could you please advise, if libressl is available as rpm for AIX or suggest workaround to fix the issue. 

    Error: 
    config.status: error: in `/tmp/libressl/libressl-3.4.2':
    config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking. If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary). You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
    See `config.log' for more details


     (GitHub - libressl-portable/portable: LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to tech@openbsd.org are welcome.
    GitHub remove preview
    GitHub - libressl-portable/portable: LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to tech@openbsd.org are welcome.
    LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to tech@openbsd.org are welcome. - GitHub - libressl-portable/portable: LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code.
    View this on GitHub >
    )

    ------------------------------
    Satish Krishnamurthy
    ------------------------------

    #AIXOpenSource


  • 2.  RE: AIX - Install Libressl package

    Posted Thu April 21, 2022 09:49 AM
    Did you install open source build tools mentioned in the instructions and gmake from the AIX toolbox and set the path /opt/freeware/bin ? 
    If you have installed those tools then export MAKE='gmake' and then run configure again.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: AIX - Install Libressl package

    Posted Thu April 21, 2022 11:18 AM
    Hi Sanket,

    Thank you for assistance. I have installed gmake now and executed export MAKE='gmake'. The configure command has executed without any errors.

    But the next command "make" command has been failing with below error.  Could you please advise on the workaround.

    # make
    Making all in crypto
    gmake all-am
    gmake[1]: Entering directory '/tmp/libressl/libressl-3.4.2/crypto'
    CCLD libcrypto.la
    ld: 0711-317 ERROR: Undefined symbol: .vsyslog_r
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: error: ld returned 8 exit status
    gmake[1]: *** [Makefile:3923: libcrypto.la] Error 1
    gmake[1]: Leaving directory '/tmp/libressl/libressl-3.4.2/crypto'
    gmake: *** [Makefile:2182: all] Error 2
    make: 1254-004 The error code from the last command is 1.


    Stop.



    Configure: 
    ===============

    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating include/Makefile
    config.status: creating include/openssl/Makefile
    config.status: creating crypto/Makefile
    config.status: creating ssl/Makefile
    config.status: creating tls/Makefile
    config.status: creating tests/Makefile
    config.status: creating apps/Makefile
    config.status: creating apps/ocspcheck/Makefile
    config.status: creating apps/openssl/Makefile
    config.status: creating apps/nc/Makefile
    config.status: creating man/Makefile
    config.status: creating libcrypto.pc
    config.status: creating libssl.pc
    config.status: creating libtls.pc
    config.status: creating openssl.pc
    config.status: executing depfiles commands
    config.status: executing libtool commands



    ------------------------------
    Satish Krishnamurthy
    ------------------------------



  • 4.  RE: AIX - Install Libressl package

    Posted Mon April 25, 2022 02:09 PM
    From the error output it looks like the package is looking for a library that provides vsyslog_r API/symbol.
    Not sure which library provides this API.


    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: AIX - Install Libressl package

    Posted Tue April 26, 2022 01:36 AM
    Hi Sanket,

    Sorry i was unable to find the API details. Just to give a try, commented the below line on crypto/cryptlib.c and retried the installation.

    /*vsyslog_r(LOG_INFO|LOG_LOCAL2, &sdata, fmta, ap);*/

    The installation passed without errors and libressl package appears installed under /usr/local/bin directory and seems to be working. 


    # /usr/local/bin/openssl version
    LibreSSL 3.4.2


    Thanks a lot for your support and guidance on resolving the issue.

    ------------------------------
    Satish Krishnamurthy
    ------------------------------