Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 1997 10:11:26 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        jdd@vbc.net (Jim Dixon)
Cc:        imb@scgt.oz.au, hackers@FreeBSD.ORG
Subject:   Re: inconsistent declarations
Message-ID:  <199706231711.KAA00842@phaeton.artisoft.com>
In-Reply-To: <Pine.BSI.3.91.970622165519.20751A-100000@avon-gw.uk1.vbc.net> from "Jim Dixon" at Jun 22, 97 05:03:23 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > >/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

This seems silly.  The "link.h" prototypes are wrong; they should
have "const" added.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706231711.KAA00842>