IBM Support

IV85357: SQRTF UNDEFINED SYMBOL ERROR WHEN USING GCC APPLIES TO AIX 7100-04

A fix is available

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

    IV85357

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2016-06-01

  • Closed date

    2016-06-01

  • Last modified date

    2017-01-20

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

    IV83830

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

    U875297

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U875297

       UP16/12/12 I 1000



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV85357

Modified date: 20 January 2017


Translate this page: