Date: Sat, 29 Nov 1997 12:34:54 +0000 From: Brian Somers <brian@awfulhak.org> To: gclarkii@brewich.com Cc: freebsd-hackers@freebsd.org Subject: Re: conflict link.h dlfcn.h Message-ID: <199711291234.MAA24102@awfulhak.demon.co.uk> In-Reply-To: Your message of "Thu, 27 Nov 1997 03:50:21 CST." <199711270950.DAA05190@main.gbdata.com>
index | next in thread | previous in thread | raw e-mail
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711291234.MAA24102>
