agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
Binding libs...
2+ messages / 2 participants
[nested] [flat]

* Binding libs...
@ 1994-06-22 09:00 J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
  1994-06-23 10:55 ` Re: Binding libs... Kai Petzke <wpp@marie.physik.tu-berlin.de>
  0 siblings, 1 reply; 2+ messages in thread

From: J.Plewe @ 1994-06-22 09:00 UTC (permalink / raw)
  To: legacy

Hello!

Last night I was playing around with some of the postgres demos
in order to find out some things which are very interesting 
for me.

Starting with circle.c I added further (graphical) functionality
to the output routine.
This made it necessary to link circle.o with a graphical lib.

And this is the point where I failed.

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.

So, do you think there is a possibility to use an arbitrary lib
together with postgres?
Is the a possibility e.g. to link circle.o in a way, that internal 
references are covered but only important symbols (circle_out) show
in the symboltable (some kind of a soft strip)?

I tried these things with postgres 4.2 on a linux system, but the
will arise anywhere, I think.



Thanks for any help,

- Joerg



*********************************************************************
Dipl. Phys. Joerg Plewe               joerg.plewe@mpi-dortmund.mpg.de
MPI fuer molekulare Physiologie
Rheinlanddamm 201
44139 Dortmund
Germany                               +49 (0)231 1206 384
*********************************************************************


==============================================================================
   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.
==============================================================================



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Binding libs...
  1994-06-22 09:00 Binding libs... J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
@ 1994-06-23 10:55 ` Kai Petzke <wpp@marie.physik.tu-berlin.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Kai Petzke @ 1994-06-23 10:55 UTC (permalink / raw)
  To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>; +Cc: legacy

> 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.
==============================================================================



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1994-06-23 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-06-22 09:00 Binding libs... J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
1994-06-23 10:55 ` Kai Petzke <wpp@marie.physik.tu-berlin.de>

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