From owner-freebsd-emulation Thu Dec 16 12:53:23 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from smtprch1.nortel.com (smtprch1.nortelnetworks.com [192.135.215.14]) by hub.freebsd.org (Postfix) with ESMTP id 21FB2157BD for ; Thu, 16 Dec 1999 12:53:10 -0800 (PST) (envelope-from atrens@nortelnetworks.com) Received: from zmers013 by smtprch1.nortel.com; Thu, 16 Dec 1999 14:47:46 -0600 Received: from hcarp00g.ca.nortel.com by zmers013; Thu, 16 Dec 1999 15:13:00 -0500 Received: from hcarp00g.ca.nortel.com (hcarp00g.ca.nortel.com [47.196.31.114]) by hcarp00g.ca.nortel.com (8.9.3/8.7.3) with ESMTP id PAA09409; Thu, 16 Dec 1999 15:20:27 -0500 (EST) Date: Thu, 16 Dec 1999 15:20:27 -0500 (EST) From: "Andrew Atrens" X-Sender: atrens@hcarp00g.ca.nortel.com Reply-To: "Andrew Atrens" To: emulation@freebsd.org, Marcel Moolenaar Subject: Re: framemaker for linux In-Reply-To: <38592C44.537140D8@scc.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 16 Dec 1999, Marcel Moolenaar wrote: > Date: Thu, 16 Dec 1999 19:15:32 +0100 > From: Marcel Moolenaar > To: "Atrens, Andrew (A.B.) [EXCHANGE:SKY:1U33]" > > Newsgroups: list.freebsd.emulation > Subject: Re: framemaker for linux > > [moved to -emulation] > > Andrew Atrens wrote: > > > This might be a linux ABI question, or it might be an `ld.so' question, > > so arguably I could have sent this to emulation, questions or since I run > > -current, current, or perhaps hackers, at any rate here goes - > > -emulation, definitely. > > > I've got `framemaker for linux' and am getting - > > > > # maker5X.exe > > maker5X.exe: error in loading shared libraries > > : undefined symbol: __register_frame_info > [truss output snipped] > > I'm probably missing something obvious. Any help y'all can provide would > > be greatly appreciated! > > make sure you've got the right set of libraries. Probably glibc2.1; > maybe glibc2... Okay so the problem is not glibc per se, it's the following - From the glibc FAQ - 2.8. When I run an executable on one system which I compiled on another, I get dynamic linker errors. Both systems have the same version of glibc installed. What's wrong? {ZW} Glibc on one of these systems was compiled with gcc 2.7 or 2.8, the other with egcs (any version). Egcs has functions in its internal `libgcc.a' to support exception handling with C++. They are linked into any program or dynamic library compiled with egcs, whether it needs them or not. Dynamic libraries then turn around and export those functions again unless special steps are taken to prevent them. When you link your program, it resolves its references to the exception functions to the ones exported accidentally by libc.so. That works fine as long as libc has those functions. On the other system, libc doesn't have those functions because it was compiled by gcc 2.8, and you get undefined symbol errors. The symbols in question are named things like `__register_frame_info'. So it looks like the linux port glibc stuff must have been compiled with 2.8 (or older) and the framemaker stuff uses glibc compiled by egcs. Andrew -- +-- | Andrew Atrens Nortel Networks, Ottawa, Canada. | | All opinions expressed are my own, not those of any employer. | --+ Heller's Law: The first myth of management is that it exists. Johnson's Corollary: Nobody really knows what is going on anywhere within the organization. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message