agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Kai Petzke <wpp@marie.physik.tu-berlin.de>
To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Binding libs...
Date: Thu, 23 Jun 1994 12:55:11 +0200 (MET DST)
Message-ID: <9406241131.AA22297@marie.physik.tu-berlin.de> (raw)
In-Reply-To: <9406220900.AA03601@dl.mpi-dortmund.mpg.de>

> Using the load-command postgres either complains too few symbols,
> when I have not linked circle.o with my lib;
> or it complains about multiple defined symbols.
> 
> The problem I think is that some libs use symbols already used 
> with postgres; in my case e.g. 'circf' and others.

[...]

There is no easy answer to your question.  A few possibilities:

- If only a few symbols are in your way, write sed scripts, which
  replace them with something different.  Eg.:

	s/\(^|[^a-zA-Z_0-9]\)circf\($|[^a-zA-Z_0-9]\)/PG_&/g

  and apply them to all affected files of the source tree.

- Get the "binutils" source code (from the GCC/src directory 
  of almost any linux ftp server) and hack the "strip" command
  so it allows to specify a set of symbol names, which should
  not be stripped.



Kai


==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: wpp@marie.physik.tu-berlin.de, joerg.plewe@mpi-dortmund.mpg.de
  Subject: Re: Binding libs...
  In-Reply-To: <9406241131.AA22297@marie.physik.tu-berlin.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox