pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-interfaces@postgreSQL.org
Subject: libpgeasy symbol conflicts with libc ... libpgeasy loses
Date: Sun, 16 Jul 2000 18:15:33 -0400
Message-ID: <3760.963785733@sss.pgh.pa.us> (raw)

I had some trouble running findoidjoins today, which I eventually
tracked down to the fact that where it thinks it's calling libpgeasy's
fetch() subroutine, it was actually getting bound to the DBM library's
fetch() routine, which is in libc on my platform ... and the Makefile
for findoidjoins does -lc before -lpgeasy.

I counsel picking a less-generic name for libpgeasy's function.
We could fix this particular lossage with Makefile tweaking,
but this program won't be the last one to get burnt if you stick
with the conflicting name.

You might also want to check for conflicts against the other
functions exported by <dbm.h>:

     int dbminit(const char *file);
     datum fetch(datum key);
     int store(datum key, datum content);
     int delete(datum key);
     datum firstkey(void);
     datum nextkey(datum key);
     int dbmclose(void);

			regards, tom lane



view thread (2+ messages)  latest in thread

Message-ID: <3760.963785733@sss.pgh.pa.us>
Permalink:  ../3760.963785733@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3760.963785733@sss.pgh.pa.us

 · 

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: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us
  Subject: Re: libpgeasy symbol conflicts with libc ... libpgeasy loses
  In-Reply-To: <3760.963785733@sss.pgh.pa.us>

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

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