Path: utzoo!attcan!uunet!seismo!sundc!pitstop!male!sun-arpa!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!CRD.GE.COM!%ESDSDF.DECnet From: %ESDSDF.DECnet@CRD.GE.COM Newsgroups: comp.windows.x Subject: SunOS 4.0, X and shared libraries Message-ID: <8904202156.AA17606@expo.lcs.mit.edu> Date: 20 Apr 89 22:55:00 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 26 Received: by DnaMail (v1.1); Thu Apr 20 16:25:05 1989 EDT Received: from george. by elroy.jetsons.com (3.2/SMI-3.2) id AA21072; Thu, 20 Apr 89 16:24:38 EDT Received: by george. (4.0/SMI-4.0) id AA04942; Thu, 20 Apr 89 16:28:21 EDT Date: Thu, 20 Apr 89 16:28:21 EDT From: dwight@george (Dwight H. Cooper) Message-Id: <8904202028.AA04942@george.> To: esdsdf!csbvax::mrgate::"smtp::expo.lcs.mit.edu::xpert" Subject: SunOS 4.0, X and shared libraries Has anyone attempted to make the X libraries into shared libraries under SunOS 4.0? One thing that needs to be done is to separate the definitions of any exported initialized data. These definitions go in separate files and are used to build the shared archive (.sa) files. The remaining code is used to build the shared object (.so) files. I briefly looked through the code for X lib and found XErrorList defined and initialized, but does it really need to be exported? Also, I am considering modifying gcc to help me find additional cases of exported initialized data definitions. (It seems easier than looking through all those files). Too bad Sun didn't supply such a tool :-) Is there anything else to watch out for? Is it worthwhile? Dwight Cooper GE Electronic Systems dcooper%esdsdf.decnet@crd.ge.com (609) 722-7235