Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    create_rts fails with error message "ld: cannot find -lgcc"

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Problem Symptoms:
    (1)
    When one enters the command "create_rts" as the UNIX user who owns the Ex Libris software (aleph or dtl or metalib) the following error message appears:
    -------------------------------------------------------
    $ create_rts
    create rts
    ld: cannot find -lgcc
    mv: cannot stat `/exlibris/metalib/m4_1/aleph/exe/rts32x': No such file or directory

    -------------------------------------------------------

    (2)
    The error messages above can also appear when one executes the compilation test script $alephm_scratch/test_compile (Aleph, MetaLib) respectively $dtlm_scratch/test_compile (DigiTool) because that script includes the command "create_rts".

    Cause:
     
    A. The file /exlibris/product/cobol5/etc/cobopt which belongs to the COBOL environment Micro Focus Server Express specifies an incorrect path to the libraries of the compiler gcc, e.g.:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32

    The correct path is the following:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.4.4/32
     
    B.  As was the case with the OpenSSL issue described in the article " Security scan flags OpenSSL/0.9.8za as security risk  ", this problem was due to the "Download 3rd party products update" not having been properly executed as part of a Service Pack application. 

    Resolution:

    A.   
     
    (1) Edit the file /exlibris/product/cobol5/etc/cobopt and specify the correct path to the libraries of the compiler gcc:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.4.4/32
     
    (2) Enter the command "create_rts" and verify that it creates the run-time system of the COBOL environment correctly:
    $ create_rts
    create rts
    $ echo $?
    0
    $ ls -l $aleph_exe/rts32
    -rwxrwxr-x 1 metalib exlibris 2301400 Jul 4 02:26 /exlibris/metalib/m4_1/aleph/exe/rts32
     
    B.   Run util sp steps 6-10 -- and enter the create_rts command to verify that it now works correctly.


     

     


    • Article last edited: 28-Mar-2018
    • Was this article helpful?