From owner-freebsd-hackers Sat Nov 29 04:40:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA00415 for hackers-outgoing; Sat, 29 Nov 1997 04:40:34 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA00389 for ; Sat, 29 Nov 1997 04:40:16 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id MAA24102; Sat, 29 Nov 1997 12:34:55 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199711291234.MAA24102@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: gclarkii@brewich.com cc: freebsd-hackers@freebsd.org Subject: Re: conflict link.h dlfcn.h In-reply-to: Your message of "Thu, 27 Nov 1997 03:50:21 CST." <199711270950.DAA05190@main.gbdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 29 Nov 1997 12:34:54 +0000 From: Brian Somers Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hello, > > I'm in the process of trying to get postgresql to run and have ran into > a conflict in our header files. > > Here is what the prototypes look like in both link.h and postgresql: > void *dlopen(const *char, int); > int dlclose(void *); > void *dlsym(void *, const char *) > const char *dlerror(void) > > Here is what they look like in dlfcn.h > void *dlopen( *char, int); > int dlclose(void *); > void *dlsym(void *, char *) > char *dlerror(void) > > Note the lack of const in use in dlfcn.h. This causes postgresql to > toss its cookies here and require a hack. > > Which one is correct? The const one. I recently added the const'ness, but it was added to both. I suspect foul play from a ``make world''. dlfcn.h comes from /usr/src/lib/csu/i386/ - is that version correct ? I also note that link.h has been removed from the sources now :-) > Gary > > > -- > Gary Clark II (N5VMF) | I speak only for myself and "maybe" my company > gclarkii@Brewich.COM | Fallen member of the FreeBSD Doc Team -- Brian , , Don't _EVER_ lose your sense of humour....