From owner-freebsd-hackers Sun Jun 22 09:04:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA09273 for hackers-outgoing; Sun, 22 Jun 1997 09:04:44 -0700 (PDT) Received: from avon-gw.uk1.vbc.net (jdd@avon-gw.uk1.vbc.net [194.207.2.20]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA09260 for ; Sun, 22 Jun 1997 09:04:34 -0700 (PDT) Received: (from jdd@localhost) by avon-gw.uk1.vbc.net (8.8.2/8.7.3) id RAA20773; Sun, 22 Jun 1997 17:03:24 +0100 (BST) Date: Sun, 22 Jun 1997 17:03:23 +0100 (BST) From: Jim Dixon X-Sender: jdd@avon-gw.uk1.vbc.net To: michael butler cc: hackers@FreeBSD.ORG Subject: Re: inconsistent declarations In-Reply-To: <3.0.1.32.19970623013519.0071fbd0@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Jun 1997, michael butler wrote: > >/usr/include/dlfcn.h > > void *dlopen __P((const char *,int)); > > void *dlsym __P((void *, const char*)); > > > >/usr/include/link.h > > extern void *dlopen __P((char *,int)); > > extern void *dlsym __P((void *,char*)); > > This breaks the build of postgresql-6.1 for 2.1-stable :-( Precisely. It can be fixed by reversing the order of inclusion of the header files in src/src/backend/port/BSD44_derived/dl.c and then modifying link.h so that dlopen() and dlsym() are inside an #ifndef _DLFCN_H_ ... #endif -- Jim Dixon VBCnet GB Ltd http://www.vbc.net tel +44 117 929 1316 fax +44 117 927 2015