Re: problems with drawtool
Brought to you by:
johnston
From: Robert W. <Robert.Weber@Colorado.EDU> - 2002-01-23 20:03:46
|
> Robert, > > It looks like you have a collision/confusion between two copies of libstdc++, > perhaps one shared and one static. Can you do "ldd -r ./a.out" (on the > executable created by the Makefile) to see what libraries are getting used? > If libstdc++ is statically linked it shouldn't show up (and there shouldn't > be any symbols missing at run-time). I've got a great deal of missing symbols: libOverlayUnidraw.so => /usr/local/X11/lib/libOverlayUnidraw.so libComGlyph.so => /usr/local/X11/lib/libComGlyph.so libComTerp.so => /usr/local/X11/lib/libComTerp.so libAttrGlyph.so => /usr/local/X11/lib/libAttrGlyph.so libAttribute.so => /usr/local/X11/lib/libAttribute.so libComUtil.so => /usr/local/X11/lib/libComUtil.so libUniIdraw.so => /usr/local/X11/lib/libUniIdraw.so libIVGlyph.so => /usr/local/X11/lib/libIVGlyph.so libTopoFace.so => /usr/local/X11/lib/libTopoFace.so libUnidraw.so => /usr/local/X11/lib/libUnidraw.so libIV.so => /usr/local/X11/lib/libIV.so libXext.so.6.4 => /usr/local/X11/lib/libXext.so.6.4 libX11.so.6.1 => /usr/local/X11/lib/libX11.so.6.1 libSM.so.6.0 => /usr/local/X11/lib/libSM.so.6.0 libICE.so.6.3 => /usr/local/X11/lib/libICE.so.6.3 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 symbol not found: good__C3ios (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: __ls__7ostreamf (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __8ofstreamiPCcii (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: pcount__9strstream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: get__7istreamRUc (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __10ostrstreami (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __9strstreami (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: str__10ostrstream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: freeze__10ostrstreami (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: str__9strstream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: freeze__9strstreami (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: pcount__10ostrstream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __ls__7ostreamPFR7ostream_R7ostream (/usr/lo cal/X11/lib/libOverlayUnidraw.so) symbol not found: __8ifstreami (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: rdbuf__C11fstreambase (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __opPv__C3ios (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: unget__7istream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __8ifstreamiPCcii (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: get__7istream (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: putback__7istreamc (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: __8ofstreami (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: eof__C3ios (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: gcount__7istream (/usr/local/X11/lib/libO verlayUnidraw.so) symbol not found: _._3ios (/usr/local/X11/lib/libOverlayUn idraw.so) symbol not found: __3iosP9streambufP7ostream (/usr/local/X11/ lib/libIV.so) symbol not found: _._3ios (/usr/local/X11/lib/libIV.so) symbol not found: __7istreami (/usr/local/X11/lib/libIV.so) symbol not found: init__3iosP9streambufP7ostream (/usr/lo cal/X11/lib/libIV.so) symbol not found: get__7istreamRUc (/usr/local/X11/lib/libI V.so) symbol not found: good__C3ios (/usr/local/X11/lib/libIV.so) symbol not found: setstate__3iosi (/usr/local/X11/lib/libI V.so) symbol not found: get__7istream (/usr/local/X11/lib/libIV.so) symbol not found: width__3iosi (/usr/local/X11/lib/libIV.so) symbol not found: gcount__7istream (/usr/local/X11/lib/libI V.so) symbol not found: getline__7istreamPUcic (/usr/local/X11/ lib/libIV.so) symbol not found: __rs__7istreamPFR7istream_R7istream (/usr/lo cal/X11/lib/libIV.so) symbol not found: __rs__7istreamPFR3ios_R3ios (/usr/local/X11/ lib/libIV.so) symbol not found: __7ostreami (/usr/local/X11/lib/libIV.so) symbol not found: put__7ostreamc (/usr/local/X11/lib/libI V.so) symbol not found: __ls__7ostreams (/usr/local/X11/lib/libI V.so) symbol not found: __ls__7ostreamUs (/usr/local/X11/lib/libI V.so) symbol not found: __ls__7ostreamf (/usr/local/X11/lib/libI V.so) symbol not found: __ls__7ostreamPFR7ostream_R7ostream (/usr/lo cal/X11/lib/libIV.so) symbol not found: __ls__7ostreamPFR3ios_R3ios (/usr/local/X11/ lib/libIV.so) symbol not found: pbase__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: setp__9streambufPcT1 (/usr/local/X11/lib/libI V.so) symbol not found: allocate__9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: pptr__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: pbump__9streambufi (/usr/local/X11/lib/libI V.so) symbol not found: in_avail__9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: gptr__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: gbump__9streambufi (/usr/local/X11/lib/libI V.so) symbol not found: ebuf__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: eback__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: epptr__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: out_waiting__9streambuf (/usr/local/X11/ lib/libIV.so) symbol not found: sputc__9streambufi (/usr/local/X11/lib/libI V.so) symbol not found: setg__9streambufPcN21 (/usr/local/X11/lib/libI V.so) symbol not found: egptr__C9streambuf (/usr/local/X11/lib/libI V.so) symbol not found: rdstate__C3ios (/usr/local/X11/lib/libI V.so) symbol not found: clear__3iosi (/usr/local/X11/lib/libIV.so) symbol not found: eof__C3ios (/usr/local/X11/lib/libIV.so) symbol not found: __opPv__C3ios (/usr/local/X11/lib/libIV.so) symbol not found: fail__C3ios (/usr/local/X11/lib/libIV.so) symbol not found: __8ofstreamiPCcii (/usr/local/X11/lib/libI V.so) symbol not found: __nt__C3ios (/usr/local/X11/lib/libIV.so) symbol not found: __8ifstreamiPCcii (/usr/local/X11/lib/libI V.so) symbol not found: __10ostrstreamiPcii (/usr/local/X11/lib/libI V.so) symbol not found: str__10ostrstream (/usr/local/X11/lib/libI V.so) symbol not found: width__C3ios (/usr/local/X11/lib/libIV.so) but all are iostream ones from libstdc++. I've only got one libstdc++ on my sytem. > > Can you also forward copies of the command-lines used to link the > drawtool executable? Are you using GNU ld or Solaris ld? Here is a page > of instructions refreshed the last time I built ivtools on Solaris 2.6 > (is Solaris 8 really Solaris 2.8?). building libOverlayUnidraw.so.1.0.1 rm -f libOverlayUnidraw.so.1.0.1~ rm -f libOverlayUnidraw.so /usr/ccs/bin/ld -o libOverlayUnidraw.so.1.0.1~ -G *.o rm -f libOverlayUnidraw.so.1.0.1 mv libOverlayUnidraw.so.1.0.1~ libOverlayUnidraw.so.1.0.1 ln -s libOverlayUnidraw.so.1.0.1 libOverlayUnidraw.so This is un-modified from the original build. one thing I did find was that gnu debugging stuff caused libIVGlyph to fail, once I turned off the "-g" at compile time, the problems dissapeared. > > http://www.vectaport.com/vectaport/solaris-2.6-build.txt > > All of these instructions don't apply in your case I'm sure, but the > thing to be aware of is I've always had to use Solaris ld and as to > get things working. I'm not sure if this is still the case. > gnu ld still dies on unref symbols. > Thanks for the pointer on !finite(). I see that the two files where infinity > is dealt with (src/OverlayUnidraw/grayraster.c and src/include/ivstd/nan.h) > have not been adequately refactored. Since you are the first to report > this problem I assume it is a new one with Solaris 8 (how old is Solaris 8)? > Can you forward the output of the following commands? This will help > me setup conditional compilation to handle your case: > > touch test.c; gcc -dM -E test.c #define __GCC_NEW_VARARGS__ 1 #define __sparc 1 #define __svr4__ 1 #define __GNUC_MINOR__ 95 #define __sun 1 #define sparc 1 #define __sun__ 1 #define __unix 1 #define __unix__ 1 #define __SVR4 1 #define sun 1 #define __GNUC__ 2 #define __sparc__ 1 #define unix 1 As for the age of Solaris 8, it's been around 1.5 years+. Solaris 9 is already in early access beta. > > Thanks, Thank you. Robert Weber UnixOps |