All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Using TOOLS on 2003 R2 SUA
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
Using TOOLS on 2003 R2 SUA - Mar. 12, '06, 5:01:02 PM
|
|
|
rjnorman
Posts: 12
Joined: Jan. 27, '06,
Status: offline
|
I have installed the very latest Tools package and now I am getting warnings when compiling.
gcc -I../include -I/home/tipsrc/include -DSVR4 -DSFU -D_ALL_SOURCE -w -R -O -o proto proto.o -lncur
ses -lc -lm
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libm.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libm.so.5.2
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
mv -f proto ../bin
Is there something I should do to resovle this?
|
|
|
RE: Using TOOLS on 2003 R2 SUA - Mar. 12, '06, 11:06:36 PM
|
|
|
markfunk
Posts: 673
Joined: Mar. 31, '03,
Status: offline
|
Unless SUA specifically documents that it doesn't support backward compatibility
with SFU3.5, this is a bug. SUA should provide all the *.so.3.1 and *.so.3.5 libraries that
were available in SFU3.5.
In the meantime, you can do one of two things:
a) you could copy the *.so.3.5 libraries from your SFU3.5 distribution
This may or may not work depending on backward compatibility support
of SFU3.5 in SUA.
This would be my first choice, until someone proves this doesn't work.
b) you could create the .so.3.5 libraries manually on SUA, as symlinks
to the equivalent SUA libraries.
Like
libc.so.3.5 -> libc.so.5.2
Depending on changes that occured between libc.so.3.5 and libc.so.5.2,
this may or may not work.
The other option is to use a libncurses.so that is built on SUA.
Don't know if Rodney has built this yet, or is planning on building this.
|
|
|
RE: Using TOOLS on 2003 R2 SUA - Mar. 13, '06, 8:32:03 AM
|
|
|
rjnorman
Posts: 12
Joined: Jan. 27, '06,
Status: offline
|
I did not have SFU 3.5 (only SUA on 2003 R2) so I saved the .so.3.5 and created a link. I tired with -lcurses instead of -lncurses and now now I get an error run I execute the program.
/home/tipsrc/bin/arcperms -f ../bin/tdb
C:\WINDOWS\SUA\home\tipsrc\bin\arcperms: error in loading shared libraries
/usr/lib/libc.so.5.2: undefined symbol: __pctype_used
*** Error code 127
Stop.
If I use ncurses instead of curses then it seems to work. I'm not sure why this is...
Also. When I start 'vim' there is a noticable delay of about 10 seconds before it starts. Running 'vi' starts immediately. Does anyone have an idea how to solve this one?
Thanks
|
|
|
RE: Using TOOLS on 2003 R2 SUA - Mar. 13, '06, 10:19:02 AM
|
|
|
rjnorman
Posts: 12
Joined: Jan. 27, '06,
Status: offline
|
My programs worked before installing the TOOLS package. I rearranged the libraries as follows to get around the compile warnings:
/usr/lib:41 >l libc.s* libm.so*
-rw-rw-r-- 1 TANGO+Administrator +Administrators 754 Jan 6 12:01 libc.so
-rwxrwxr-x 1 TANGO+Administrator +Administrators 550726 Jan 6 16:25 libc.so.3
-rwxrwxr-x 1 TANGO+Administrator +Administrators 620125 Jan 6 16:25 libc.so.3.1
lr--r--r-- 1 RJN +Administrators 11 Mar 13 08:23 libc.so.3.5 -> libc.so.5.2
-rwxrwxr-x 1 TANGO+Administrator +Administrators 770623 Jan 6 12:01 libc.so.5.2
lrw-rw-r-- 1 TANGO+Administrator +Administrators 11 Jan 5 21:07 libm.so -> libm.so.5.2
-rwxrwxr-x 1 TANGO+Administrator +Administrators 159117 Jan 6 12:01 libm.so.3
lr--r--r-- 1 RJN +Administrators 11 Mar 13 08:24 libm.so.3.5 -> libm.so.5.2
-rwxrwxr-x 1 TANGO+Administrator +Administrators 248575 Jan 6 12:01 libm.so.5.2
/usr/lib:42 >
But after recompiling my software I am now getting core dumps. For example:
Core was generated by `whoson'.
Reading symbols from /usr/local/lib/libncurses.so...
warning: "_environ": indirect symbol does not have real one (-1)
warning: "_RaiseException@16": indirect symbol does not have real one (-1)
warning: "_beThreadSafe": indirect symbol does not have real one (-1)
done.
Loaded symbols for /usr/local/lib/libncurses.so
Reading symbols from /usr/lib/libc.so.5.2...done.
Loaded symbols for /usr/lib/libc.so.5.2
Reading symbols from /usr/lib/libm.so.5.2...done.
Loaded symbols for /usr/lib/libm.so.5.2
Reading symbols from /usr/lib/libm.so.3.5...done.
Loaded symbols for /usr/lib/libm.so.3.5
Reading symbols from /usr/lib/libc.so.3.5...done.
Loaded symbols for /usr/lib/libc.so.3.5
#0 0x77da652a in setlocale () from /usr/lib/libc.so.5.2
(gdb) bt
#0 0x77da652a in setlocale () from /usr/lib/libc.so.5.2
#1 0x00404938 in getUnixUser ()
#2 0x004020d6 in main (argc=1, argv=0x44eb8) at whoson.c:341
(gdb)
|
|
|
RE: Using TOOLS on 2003 R2 SUA - Mar. 13, '06, 1:10:22 PM
|
|
|
rjnorman
Posts: 12
Joined: Jan. 27, '06,
Status: offline
|
More information.
I restored libc.so.3.5 (instead of having that as a link to libc.so.5.2) and now a program which was core dumping works. With libc.so.3.5 as a link to libc.so.5.2 it core dumps. With the original libc.so.3.5 the program runs fine but I get the warnings about library conflicts.
gcc -I../../../include -I/home/tipsrc/include -I../../../arm/include -DSVR4 -DSFU -D_ALL_SOURCE -w -
R -g -O -fno-builtin -c whoson.c
gcc -I../../../include -I/home/tipsrc/include -I../../../arm/include -DSVR4 -DSFU -D_ALL_SOURCE -w -
R -g -O -fno-builtin -o whoson whoson.o -L../../../lib -L/home/tipsrc/lib -lmcs /home/tipsrc/lib/
libmcs.a -lparse /home/tipsrc/lib/libparse.a -lgosil /home/tipsrc/lib/libgosil.a -L.
./../../arm/lib -larm -larc /home/tipsrc/lib/libarc.a -ldisam /home/tipsrc/lib/libdisam.a
-larc /home/tipsrc/lib/libarc.a -lgosil /home/tipsrc/lib/libgosil.a -lmisc /home/tipsrc
/lib/libmisc.a -lncurses -lc -lm
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
/opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/../../../../i586-pc-interix3/bin/ld: warning: libc.so.
3.5, needed by /usr/local/lib/libncurses.so, may conflict with libc.so.5.2
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|