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