From owner-freebsd-questions Sat Mar 15 19:54:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA05754 for questions-outgoing; Sat, 15 Mar 1997 19:54:39 -0800 (PST) Received: from thelab.hub.org (hal-ns1-31.netcom.ca [207.181.94.95]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA05580 for ; Sat, 15 Mar 1997 19:51:45 -0800 (PST) Received: from thelab.hub.org (LOCALHOST [127.0.0.1]) by thelab.hub.org (8.8.5/8.8.2) with SMTP id XAA04680; Sat, 15 Mar 1997 23:47:35 -0400 (AST) Date: Sat, 15 Mar 1997 23:47:35 -0400 (AST) From: The Hermit Hacker To: Gary Crutcher cc: freebsd-questions@freebsd.org Subject: Re: Postgres95 compile errors In-Reply-To: <3.0.1.32.19970315191359.006aa650@nightflight.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 15 Mar 1997, Gary Crutcher wrote: > Hi, > > I am trying to compile postgres95 v6.0 under > fbsd v2.1.7 and am getting the following errors: > > gmake[3]: Entering directory `/nf1/postgres95/src/backend/port/BSD44_derived' > gcc -Wall -Wmissing-prototypes -O2 -DBSD44_derived -I../.. > -I../../../include -c dl.c -o dl.o > In file included from dl.c:41: > /usr/include/dlfcn.h:41: conflicting types for `dlopen' > /usr/include/link.h:187: previous declaration of `dlopen' > /usr/include/dlfcn.h:42: conflicting types for `dlsym' > /usr/include/link.h:189: previous declaration of `dlsym' Go into /usr/include/link.h, and change the prototypes for dlopen/dlsym so that they don't have 'const' as part of the arguments... It might be /usr/include/dlfcn.h that has it, so check both... This has been fixed in 2.2+ releases of FreeBSD...