Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.10.1/8.10.1) with ESMTP id e6GMG3024486 for ; Sun, 16 Jul 2000 18:16:03 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id SAA03763; Sun, 16 Jul 2000 18:15:34 -0400 (EDT) To: Bruce Momjian 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> From: Tom Lane X-Archive-Number: 200007/106 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 : 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