GCC 2.6.3: Undefined symbol in libm.sa?

GCC 2.6.3: Undefined symbol in libm.sa?

Post by david guert » Wed, 03 May 1995 04:00:00



Hi.
        I went ahead and upgraded from gcc 2.5.8 to 2.6.3, and from
libc.so.4.5.26.to 4.6.27.  Everything's great -- I've compiled a bunch
of stuff with it, including a new 1.2.5 kernel.
        Then I tried to compile my *own* program (enough tinkering around,
time to get back to work...) -- and the link stage bombs with the  messages:

/usr/lib/libm.sa(__T00014.o): Undefined symbol "__NEEDS_SHRLIB_libc_4" \
referenced
/usr/lib/libm.sa(__T00024.o): Undefined symbol "__NEEDS_SHRLIB_libc_4" \
referenced
.
.
etc.

Can someone give me clue what this means?  I saw someone with this same
problem a week or so ago, but of course everthing was going OK then, so
I didn't pay any attention.  (Isn't that the way these things always go?)

        Some related info:

1.  When I compile my program under 2.5.8 (using the -V2.5.8 flag), it works.

2.  libm.a and libm.sa are in /usr/lib, owner/group is bin/bin, permissions
-rw-r--r--, date Dec 13 15:39.

3.  libc.a and libc.sa are also in /usr/lib, owner/group bin/bin, permissions
-rw-r--r--, date Dec 13 15:39.

4.  libc.so.4 is in /lib, symlinked to libc.so.4.6.27. (Same for libm.so.4)

5.  The gcc command line is:
        gcc -I. -L/lib -L/usr/lib -g -Wall -o prog_name ${OBJS} -lm

6.  It does this even if I'm logged in as root.

Thanks for any ideas!

Cheers,
Dave
--

* Dept. of Agricultural Meteorology     ph:  (402) 437-5178 x 20
* University of Nebraska                FAX: (402) 437-5712
* Lincoln, NE  68583-0728

 
 
 

1. libm.sa and gcc2.6.3

I've recently compiled gcc2.6.3 from 2.5.8 and libm.sa now comes up with
_NEEDS_LIBC_4_4 (when compiled with -g option)

any suggestions?
--

                        From Martin Glanvill.

                _/    _/_/_/  _/    _/ _/   _/ _/    _/
               _/      _/    _/_/  _/ _/   _/   _/ _/
              _/      _/    _/  _/_/ _/   _/     _/
             _/_/_/ _/_/_/ _/    _/   _/_/    _/   _/
                     (DX2-66 Intel Inside!)

2. wavelan cards

3. libc-4.5.26 - caution with libm.sa

4. Need help with sound card.

5. Libm.sa problem with debugging

6. `talk' to talk to Sun

7. libc.sa, libg.a - undefined symbol _mcount. Help!

8. Specifying specific fonts for Konsole...

9. : Undefined symbol ___jump_libm_v4 in libsspkg.sa?

10. gcc: undefined symbols __crt0v & __mod_init

11. Undefined symbol in gcc & c++

12. gcc spits out: undefined symbol __fpu_control and __setfpucw