From owner-freebsd-questions@FreeBSD.ORG Thu Sep 17 15:04:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59B0F106566B for ; Thu, 17 Sep 2009 15:04:16 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail.networktest.com (mail.networktest.com [216.240.60.134]) by mx1.freebsd.org (Postfix) with ESMTP id 415BA8FC0C for ; Thu, 17 Sep 2009 15:04:16 +0000 (UTC) Received: from levi.local (cpe-76-83-12-67.socal.res.rr.com [76.83.12.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.networktest.com (Postfix) with ESMTPSA id 2233378C7A for ; Thu, 17 Sep 2009 07:45:53 -0700 (PDT) Message-ID: <4AB24BA0.4060104@networktest.com> Date: Thu, 17 Sep 2009 07:45:52 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: libxcb won't compile from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2009 15:04:16 -0000 FreeBSD 7.2-RELEASE, i386 Running 'make install clean' from /usr/ports/x11/libxcb returns the patch error pasted below. Thanks in advance for clues on resolving this. I did not see anything helpful in the archives or on Google. dn somehost# cd /usr/ports/x11/libxcb/ somehost# make clean ===> Cleaning for libxcb-1.4 somehost# make install clean ===> Vulnerability check disabled, database not found ===> Extracting for libxcb-1.4 => MD5 Checksum OK for libxcb-1.4.tar.bz2. => SHA256 Checksum OK for libxcb-1.4.tar.bz2. ===> Patching for libxcb-1.4 ===> Applying FreeBSD patches for libxcb-1.4 1 out of 1 hunks failed--saving rejects to src/xcb_auth.c.rej => Patch patch-src-xcb_auth.c failed to apply cleanly. => Patch(es) patch-Makefile.in applied cleanly. *** Error code 1 Stop in /usr/ports/x11/libxcb. And here is /usr/ports/x11/libxcb/work/libxcb-1.4/src/xcb_auth.c.rej: *************** *** 251,257 **** info->namelen = memdup(&info->name, authptr->name, authptr->name_length); if(info->namelen) - ret = compute_auth(info, authptr, sockname); if(!ret) { free(info->name); --- 251,262 ---- info->namelen = memdup(&info->name, authptr->name, authptr->name_length); if(info->namelen) + { + if (getsockname(fd, sockname, &socknamelen) == -1) + ret = 0; + else + ret = compute_auth(info, authptr, sockname); + } if(!ret) { free(info->name);