[comp.unix.aix] strange errors compiling GCC

unger@aix1.rhrk.uni-kl.de () (04/05/91)

    Hi,
    i am new to this group so pardon me if i post a question 
    already answered in former news.

    Here's my problem:

    when the compiler (cc) tries to link the modules for 'cc1'
    it reports two unresolved labels called 'scalb' and 'finite'.
    but none of these labels occur in any of the .o or .c files
    that are linked together.
    am i wrong ? where's my fault ?


     thanks in advance,
          Thomas Unger

P.S.: please reply to this group as our mailsystem is having
      trouble these days.

sdl@adagio.austin.ibm.com (sdl) (04/06/91)

>>>>> unger@aix1.rhrk.uni-kl.de writes:

In article <1991Apr5.155207.26934@rhrk.uni-kl.de> unger@aix1.rhrk.uni-kl.de writes:

Thomas>     when the compiler (cc) tries to link the modules for 'cc1'
Thomas>     it reports two unresolved labels called 'scalb' and 'finite'.
Thomas>     but none of these labels occur in any of the .o or .c files
Thomas>     that are linked together.
Thomas>     am i wrong ? where's my fault ?

This is a library bug.  Your code is probably pulling frexp() from
libc,  which generates the dependency for scalb() and finite().
However, scalb() and finite() are in libm, not libc.  This will
be fixed in the next release.  In the meantime, link with libm and
you'll pick up the missing routines.

If you're not picking up frexp() from libc please send me a note;
it's not something I know about and I need to investigate further.

--
--------------------------------------------------------------------
Stephen Linam   AWD Austin   T/L: 793-3674  Bell-net: (512) 823-3674
IBM Internet: sdl@adagio.austin.ibm.com        VNET: LINAM at AUSTIN
From outside IBM:  sdl@glasnost.austin.ibm.com