Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!ucbvax!bloom-beacon!SNE42N.ORL.MMC.COM!chucks From: chucks@SNE42N.ORL.MMC.COM Newsgroups: comp.windows.x Subject: SUMMARY ld.so __XtInherit not found Message-ID: <9011131740.AA24472@theopolis.orl.mmc.com> Date: 13 Nov 90 17:40:57 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 31 Original question: When I run a X program that I wrote I get the error ld.so symbol not found __XtInherit Well it seems that a lot of people on SUNS running 4.0.3 and 4.1 with and without the openwin libraries are having the same problem. One workaround is to link the Xt library statically. This causes the size of the executable to increase dramatically. This done with either -Bstatic -lXt -Bdynamic or /usr/lib/libXt.a in your link line. The problem has to do with the sun shared libraries and the need to link __XtInherit statically. The problem does not always manifest itself as I have compiled and run hundreds of X clients with no problems. So, can someone that really understands the shared vs. static libraries explain what is happening here. I received 20+ requests for the answer, so it seems to be a recurring problem with no true fix. Malcolm Strickland chucks@iplmail.orl.mmc.com Martin Marietta Electronic Systems 407-356-5909