From owner-freebsd-stable Fri Apr 24 07:45:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA11856 for freebsd-stable-outgoing; Fri, 24 Apr 1998 07:45:35 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from huset.math.ntnu.no (huset.math.ntnu.no [129.241.211.212]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA11844 for ; Fri, 24 Apr 1998 07:45:29 -0700 (PDT) (envelope-from arnej@stud.math.ntnu.no) Message-Id: <199804241445.HAA11844@hub.freebsd.org> Received: (qmail 27416 invoked from network); 24 Apr 1998 14:45:23 -0000 Received: from huset.math.ntnu.no (HELO stud.math.ntnu.no) (129.241.211.212) by huset.math.ntnu.no with SMTP; 24 Apr 1998 14:45:23 -0000 To: aklemm@hightek.com Cc: stable@FreeBSD.ORG Subject: Re: HEADS UP PLEASE, since three days make world breakage... In-Reply-To: Your message of "Fri, 24 Apr 1998 10:14:51 +0200" References: <19980424101451.37947@hightek.com> X-Mailer: Mew version 1.54 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 24 Apr 1998 16:45:23 +0200 From: Arne Henrik Juul Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk > I'm trying to get a 2.2.5 production server to 2.2-STABLE. > > Three times I had compile problems. Hmm, I've been cvsup'ing and using the RELENG_2_2 branch for some time on my main FreeBSD compile server, with no problems like this. > Even a checkout of RELENG_2_2_6_RELEASE brought the necessarity of > removing 2 subdirs from 2 Makefiles, because the subdirs have been > brought into the Attic I think. Hmm, I just did cvs -d /usr/cvs co -r RELENG_2_2_6_RELEASE src and had no problem with that, at least. > Now I get this... > > /usr/obj/usr/src/tmp/usr/include/link.h:189: conflicting types for `dlopen' Hmm... I'm not sure that I understand this... where does /usr/obj/usr/src/tmp come into the picture? Is this just a normal 'make', and what environment variables do you have set (DESTDIR or similar?) > cc -O -pipe -I/usr/src/gnu/usr.bin/ld/rtld/.. -I/usr/src/gnu/usr.bin/ld/rtld -I/usr/src/gnu/usr.bin/ld/rtld/../i386 -fpic -fno-function-cse -DRTLD -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/gnu/usr.bin/ld/rtld/rtld.c > In file included from /usr/src/gnu/usr.bin/ld/rtld/rtld.c:59: > /usr/obj/usr/src/tmp/usr/include/link.h:189: conflicting types for `dlopen' > /usr/obj/usr/src/tmp/usr/include/dlfcn.h:54: previous declaration of `dlopen' [...etc...] This is what it looks like for me, when I do a make in /sd/226/src/gnu/usr.bin/ld/rtld, with DESTDIR=/sd/226/built set. cc -O -I/sd/226/src/gnu/usr.bin/ld/rtld/.. -I/sd/226/src/gnu/usr.bin/ld/rtld -I/sd/226/src/gnu/usr.bin/ld/rtld/../i386 -fpic -fno-function-cse -DRTLD -I/sd/226/built/usr/include -c /sd/226/src/gnu/usr.bin/ld/rtld/rtld.c /sd/226/src/gnu/usr.bin/ld/rtld/rtld.c:210: warning: initialization from incompatible pointer type /sd/226/src/gnu/usr.bin/ld/rtld/rtld.c:210: warning: initialization from incompatible pointer type /sd/226/src/gnu/usr.bin/ld/rtld/rtld.c:210: warning: initialization from incompatible pointer type /sd/226/src/gnu/usr.bin/ld/rtld/rtld.c:211: warning: initialization from incompatible pointer type no problem, in my main /usr/src tree (which is yesterday's RELENG_2_2) even the warnings are gone. Both link.h and dlfcn.h have: $ grep dlopen /usr/include/link.h /usr/include/dlfcn.h /usr/include/link.h: void *(*dlopen) __P((const char *, int)); /* NONE */ /usr/include/link.h:extern void *dlopen __P((const char *, int)); /usr/include/dlfcn.h: * Modes for dlopen(). /usr/include/dlfcn.h:void *dlopen __P((const char *, int)); The const's seem to have been added at the same time: revision 1.5 date: 1997/11/22 03:34:46; author: brian; state: Exp; lines: +3 -3 const correctness for dl*() revision 1.15 date: 1997/11/22 03:34:39; author: brian; state: Exp; lines: +8 -8 const correctness for dl*() Are you sure you've done your "make includes" correctly? - Arne H. J. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message