🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3701

Avoiding symbol name clashes

#3701
From: Richard Caley
Date: Wed, 22 Jan 1992 19:08
33 lines
1972 bytes
[Sorry for the shotgun, please note the followup-to or, better, email
 me and I'll pass on any exciting ideas in c.u.p].

Hi,

We have two reasonably large C libraries which do the same job (text
to speech conversion) and which were written by people who talk to
each other. Naturally they share many external symbol names. I'd like
to tie them together to produce a system capable of doing the job
either way.

What would be nice would be some way of producing an object module
which exports only a couple of symbols but which contains the rest of
one of the systems.

Slightly less nice would be some way of persuading the linker to
pretend that all of the symbols in an object file/library had been
changed in some way (eg had a prefix added).

I'd like to avoid having to rewrite the source of either library to
rename things. 

Anyone have any suggestions? 

We're running on Suns using gcc, but I could probably force myself to
deal with the bundled Sun cc. 

Thanks in advance for any ideas. 

--
rjc@cstr.ed.ac.uk			_O_
					 |<
Technical Details
Message-ID: <RJC.92Jan22190833@brodie.cstr.ed.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!edcastle!aisb!cstr!rjc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,576b33b88d8574f,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,576b33b88d8574f,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: f6653,576b33b88d8574f,start
X-Google-Attributes: gidf6653,public
X-Google-Thread: 1014db,576b33b88d8574f,start
X-Google-Attributes: gid1014db,public
X-Google-ArrivalTime: 1992-01-22 11:48:30 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!edcastle!aisb!cstr!rjc
From: rjc@cstr.ed.ac.uk (Richard Caley)
Newsgroups: comp.unix.programmer,comp.sys.sun.misc,comp.lang.c,gnu.gcc.help
Subject: Avoiding symbol name clashes
Message-ID: <RJC.92Jan22190833@brodie.cstr.ed.ac.uk>
Date: 22 Jan 92 19:08:33 GMT
Sender: news@aisb.ed.ac.uk (Network News Administrator)
Followup-To: comp.unix.programmer
Distribution: comp
Organization: Centre for Speech Technology Research
Lines: 33