From owner-freebsd-current@FreeBSD.ORG Fri Nov 5 11:58:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04D3816A4CE for ; Fri, 5 Nov 2004 11:58:11 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7041043D31 for ; Fri, 5 Nov 2004 11:58:09 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])iA5BvdEC028787 for ; Fri, 5 Nov 2004 13:58:02 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) iA5BvS3W081245 for ; Fri, 5 Nov 2004 13:57:28 +0200 (EET) (envelope-from keramida@linux.gr) Received: (from keramida@localhost)iA5BvPUm081244; Fri, 5 Nov 2004 13:57:25 +0200 (EET) (envelope-from keramida@linux.gr) Date: Fri, 5 Nov 2004 13:57:25 +0200 (EET) From: Giorgos Keramidas To: freebsd-current@freebsd.org Message-ID: <20041105134445.I53353@orion> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Fri, 05 Nov 2004 13:26:50 +0000 Subject: Today's CURRENT fails while building libs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 11:58:11 -0000 My make.conf contains only the following ``non-standard'' things: CFLAGS?= -O -pipe COPTFLAGS= -O -pipe Today's current failed to build in various places. The first was libsmb with warnings about type-punned pointers. The following diff fixed buildworld for a while (it broke elsewhere, a bit later, see below): %%% Index: mbuf.c =================================================================== RCS file: /home/ncvs/src/contrib/smbfs/lib/smb/mbuf.c,v retrieving revision 1.2 diff -u -r1.2 mbuf.c --- mbuf.c 19 Oct 2004 17:44:31 -0000 1.2 +++ mbuf.c 5 Nov 2004 11:43:29 -0000 @@ -195,7 +195,8 @@ * Routines to put data in a buffer */ #define MB_PUT(t) int error; t *p; \ - if ((error = mb_fit(mbp, sizeof(t), (char**)&p)) != 0) \ + if ((error = mb_fit(mbp, sizeof(t), \ + (char**)(void *)&p)) != 0) \ return error /* Index: nbns_rq.c =================================================================== RCS file: /home/ncvs/src/contrib/smbfs/lib/smb/nbns_rq.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 nbns_rq.c --- nbns_rq.c 14 Dec 2001 11:06:03 -0000 1.1.1.1 +++ nbns_rq.c 5 Nov 2004 11:43:46 -0000 @@ -237,7 +237,7 @@ if (rqp->nr_qdcount > 1) return EINVAL; len = nb_name_len(rqp->nr_qdname); - error = mb_fit(mbp, len, (char**)&cp); + error = mb_fit(mbp, len, (char**)(void *)&cp); if (error) return error; nb_name_encode(rqp->nr_qdname, cp); %%% Later the build failed in libthread_db, and I had to use this: %%% Index: lib/libthread_db/libpthread_db.c =================================================================== RCS file: /home/ncvs/src/lib/libthread_db/libpthread_db.c,v retrieving revision 1.6 diff -u -r1.6 libpthread_db.c --- lib/libthread_db/libpthread_db.c 16 Aug 2004 05:20:12 -0000 1.6 +++ lib/libthread_db/libpthread_db.c 5 Nov 2004 11:49:49 -0000 @@ -943,7 +943,7 @@ { char *obj_entry; const td_thragent_t *ta = th->th_ta; - psaddr_t tcb_addr, *dtv_addr, tcb_tp; + psaddr_t tcb_addr, *dtv_addr; int tls_index, ret; /* linkmap is a member of Obj_Entry */ Index: lib/libthread_db/libthr_db.c =================================================================== RCS file: /home/ncvs/src/lib/libthread_db/libthr_db.c,v retrieving revision 1.2 diff -u -r1.2 libthr_db.c --- lib/libthread_db/libthr_db.c 13 Aug 2004 06:47:33 -0000 1.2 +++ lib/libthread_db/libthr_db.c 5 Nov 2004 11:53:33 -0000 @@ -294,7 +294,6 @@ libthr_db_thr_getgregs(const td_thrhandle_t *th, prgregset_t r) { const td_thragent_t *ta; - psaddr_t addr; ps_err_e err; ta = th->th_ta; %%% This is a bit weird. Is CURRENT very broken today, or am I doing something wrong?