Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 1998 16:45:23 +0200
From:      Arne Henrik Juul <arnej@stud.math.ntnu.no>
To:        aklemm@hightek.com
Cc:        stable@FreeBSD.ORG
Subject:   Re: HEADS UP PLEASE, since three days make world breakage...
Message-ID:  <199804241445.HAA11844@hub.freebsd.org>
In-Reply-To: Your message of "Fri, 24 Apr 1998 10:14:51 %2B0200"
References:  <19980424101451.37947@hightek.com>

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



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