IBM Support

IV83830: SQRTF UNDEFINED SYMBOL ERROR WHEN USING GCC APPLIES TO AIX 7100-03

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When IV77723 is applied, a program calling sqrtf() in
    libm.a will receive an 'undefined symbol' error when
    compiling with gcc.
    
    For example, tst.c is:
    
    #include<stdlib.h>
    #include<stdio.h>
    #include <math.h>
    int main() {
            float value=4;
            sqrtf(value);
    }
    
    Although using xlc works fine, gcc will give:
    
    # gcc -lm tst.c
    ld: 0711-317 ERROR: Undefined symbol: .sqrtf
    

Local fix

Problem summary

  • sqrtf wont throw Undefined symbol error when compiled with gcc
    

Problem conclusion

  • Put back changes for frexpf, ldexpf and sqrtf missing.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV83830

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-18

  • Closed date

    2016-05-17

  • Last modified date

    2017-02-08

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IV85357 IV87823 U876062

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U876062

       UP17/02/08 I 1000

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11R"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
20 April 2022