Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2000 12:25:27 -0400
From:      "Sean O'Connell" <sean@stat.Duke.EDU>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: make buildworld failure
Message-ID:  <20000817122527.M71098@stat.Duke.EDU>
In-Reply-To: <4.3.2.7.0.20000817114750.00bcd580@127.0.0.1>; from freebsd@isni.net on Thu, Aug 17, 2000 at 11:49:06AM -0400
References:  <4.3.2.7.0.20000817114750.00bcd580@127.0.0.1>

next in thread | previous in thread | raw e-mail | index | archive | help
FreeBSD stated:
: Hello,
: 
: 
: make buildworld fails on 4.1-stable (supped today)
: Going from 4.0-release to 4.1-stable
: 
: 
: cc -O -pipe -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc_r/../libc/include 
: -DPTHREAD_KERNEL -D_THREAD_SAFE -I/usr/src/lib/libc_r/uthread 
: -I/usr/src/lib/libc_r/../../include -D_LOCK_DEBUG -D__DBINTERFACE_PRIVATE 
: -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc_r/../libc/locale -DBROKEN_DES 
: -DYP -I/usr/obj/usr/src/i386/usr/include -c 
: /usr/src/lib/libc_r/uthread/uthread_attr_getdetachstate.c -o 
: uthread_attr_getdetachstate.o
: /usr/src/lib/libc_r/uthread/uthread_attr_getdetachstate.c:40: conflicting 
: types for `pthread_attr_getdetachstate'
: /usr/src/lib/libc_r/../../include/pthread.h:198: previous declaration of 
: `pthread_attr_getdetachstate'
: *** Error code 1
: 
: Stop in /usr/src/lib/libc_r.
: *** Error code 1
: 
: Stop in /usr/src/lib.
: *** Error code 1

Looks like this is due to the MFC of src/include/pthread.h without
the requisite MFC in src/lib/libc_r/uthread/uthread_attr_getdetachstate.c

Does this (modulo revision info) fix it:

===================================================================
RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_attr_getdetachstate.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- src/lib/libc_r/uthread/uthread_attr_getdetachstate.c        1999/08/28 00:03:20     1.3
+++ src/lib/libc_r/uthread/uthread_attr_getdetachstate.c        2000/05/11 15:57:16     1.4
@@ -29,14 +29,15 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $FreeBSD: src/lib/libc_r/uthread/uthread_attr_getdetachstate.c,v 1.3 1999/08/28 00:03:20 peter Exp $
+ * $FreeBSD: src/lib/libc_r/uthread/uthread_attr_getdetachstate.c,v 1.4 2000/05/11 15:57:16 bde Exp $
  */
 #include <errno.h>
 #ifdef _THREAD_SAFE
 #include <pthread.h>
 #include "pthread_private.h"
 
-int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
+int
+pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
 {
        int     ret;
 
-----------------------------------------------------------------------
Sean O'Connell                                Email: sean@stat.Duke.EDU
Institute of Statistics and Decision Sciences Phone: (919) 684-5419
Duke University                               Fax:   (919) 684-8594


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?20000817122527.M71098>