Re: libpgeasy symbol conflicts with libc ... libpgeasy loses

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: libpgeasy symbol conflicts with libc ... libpgeasy loses
Date: 2000-07-17 01:57:57
Message-ID: 200007170157.VAA11525@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> 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>:

It is even worse here. Why do I have main defined twice. Looks like
-lln, but that is used in other compiles ok. And it finds none of the
libpgeasy functions. Real strange.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 4.3 KB

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 2000-07-17 05:25:48 Re: JDBC Source
Previous Message Tom Lane 2000-07-16 22:15:33 libpgeasy symbol conflicts with libc ... libpgeasy loses