Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ISI.COM!tsang From: tsang@ISI.COM (Kam C. Tsang) Newsgroups: comp.windows.x.motif Subject: Motif 1.1.2 and SunOS shlib Message-ID: <9106042217.AA05504@phecda> Date: 4 Jun 91 22:17:48 GMT References: <1991Jun4.115138.29103@ssd.kodak.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 21 > To avoid the size problem, you can use "-PIC" in place of "-pic". > Sparc cc defaults the global offset table to 8K (pic). This can be increased > to allow 32 bit addresses via PIC. We had tried -PIC, too. That didn't help. But thanks for the tip anyway. > Of course, using dbx on applications that link in shared libraries seems > to be somewhat of a crap shoot. Typically, you can not look into the shared > library (same as on SUN3). However, dbx will also dump core on *startup* > sometimes. (Haven't figured out how to avoid this though...) May be it *is* crappy on the sun3, but on the sparc we developed xmath where most parts were sharable libraries, and dbx works. What's needed is to build the object file that you want to debug with the -g flag (instead of -pic or -PIC) and then link it into the executable. No special changes to the library needed. We have traced into both our own libraries and X/Motif libraries with no problem. -kam