From owner-freebsd-ports@FreeBSD.ORG Thu Sep 29 09:21:35 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 276021065672 for ; Thu, 29 Sep 2011 09:21:35 +0000 (UTC) (envelope-from aehlig@linta.de) Received: from linta.de (isilmar-3.linta.de [188.40.101.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9633F8FC15 for ; Thu, 29 Sep 2011 09:21:33 +0000 (UTC) Received: (qmail 17773 invoked by uid 10); 29 Sep 2011 09:21:32 -0000 Received: from curry.linta.de by isilmar.linta.de with BSMTP; 29 Sep 2011 09:21:32 -0000 Received: by curry.linta.de (Postfix, from userid 1001) id B6B591CC1D; Thu, 29 Sep 2011 10:21:18 +0100 (BST) Date: Thu, 29 Sep 2011 10:21:18 +0100 From: "Klaus T. Aehlig" To: Chuck Swiger Message-ID: <20110929092118.GA13434@curry.linta.de> References: <20110929045818.GA3463@curry.linta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@freebsd.org, ehaupt@FreeBSD.org Subject: Re: clang and configure checking for equivalent simple type X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 09:21:35 -0000 Hi, > Are you sure that you don't have -Werror being set somehow? well, fortunately I have! Note that it is a feature in this context that a similar programs don't compile if the types are incompatible. Compare the following. -Wno-unused -Werror is indeed the correct choice of flags. Best, Klaus /usr/ports/net/socat>make configure CC=gcc ... checking for equivalent simple type of size_t... 6 /* unsigned long */ checking for equivalent simple type of mode_t... 2 /* unsigned short */ checking for equivalent simple type of pid_t... 3 /* int */ checking for equivalent simple type of uid_t... 4 /* unsigned int */ checking for equivalent simple type of gid_t... 4 /* unsigned int */ checking for equivalent simple type of time_t... 5 /* long */ checking for equivalent simple type of socklen_t... 4 /* unsigned int */ checking for equivalent simple type of off_t... 5 /* long */ checking for equivalent simple type of off64_t... 0 /* unknown, taking default */ checking for basic type of struct stat.st_dev... 4 /* unsigned int */ checking for basic type of struct stat.st_ino... 4 /* unsigned int */ checking for basic type of struct stat.st_nlink... 2 /* unsigned short */ checking for basic type of struct stat.st_size... 5 /* long */ checking for basic type of struct stat.st_blksize... 4 /* unsigned int */ checking for basic type of struct stat.st_blocks... 5 /* long */ checking for basic type of struct timeval.tv_usec... 5 /* long */ checking for basic type of struct rlimit.rlim_max... 5 /* long */ ... /usr/ports/net/socat>make configure CC=clang CFLAGS=-Wno-error ... checking for equivalent simple type of size_t... 1 /* short */ checking for equivalent simple type of mode_t... 1 /* short */ checking for equivalent simple type of pid_t... 1 /* short */ checking for equivalent simple type of uid_t... 1 /* short */ checking for equivalent simple type of gid_t... 1 /* short */ checking for equivalent simple type of time_t... 1 /* short */ checking for equivalent simple type of socklen_t... 1 /* short */ checking for equivalent simple type of off_t... 1 /* short */ checking for equivalent simple type of off64_t... 0 /* unknown, taking default */ checking for basic type of struct stat.st_dev... 1 /* short */ checking for basic type of struct stat.st_ino... 1 /* short */ checking for basic type of struct stat.st_nlink... 1 /* short */ checking for basic type of struct stat.st_size... 1 /* short */ checking for basic type of struct stat.st_blksize... 1 /* short */ checking for basic type of struct stat.st_blocks... 1 /* short */ checking for basic type of struct timeval.tv_usec... 1 /* short */ checking for basic type of struct rlimit.rlim_max... 1 /* short */ ... /usr/ports/net/socat>make configure CC=clang CFLAGS=-Wno-unused ... checking for equivalent simple type of size_t... 6 /* unsigned long */ checking for equivalent simple type of mode_t... 2 /* unsigned short */ checking for equivalent simple type of pid_t... 3 /* int */ checking for equivalent simple type of uid_t... 4 /* unsigned int */ checking for equivalent simple type of gid_t... 4 /* unsigned int */ checking for equivalent simple type of time_t... 5 /* long */ checking for equivalent simple type of socklen_t... 4 /* unsigned int */ checking for equivalent simple type of off_t... 5 /* long */ checking for equivalent simple type of off64_t... 0 /* unknown, taking default */ checking for basic type of struct stat.st_dev... 4 /* unsigned int */ checking for basic type of struct stat.st_ino... 4 /* unsigned int */ checking for basic type of struct stat.st_nlink... 2 /* unsigned short */ checking for basic type of struct stat.st_size... 5 /* long */ checking for basic type of struct stat.st_blksize... 4 /* unsigned int */ checking for basic type of struct stat.st_blocks... 5 /* long */ checking for basic type of struct timeval.tv_usec... 5 /* long */ checking for basic type of struct rlimit.rlim_max... 5 /* long */ ... /usr/ports/net/socat>make configure CC=clang CFLAGS= ... checking for equivalent simple type of size_t... 0 /* unknown, taking default */ checking for equivalent simple type of mode_t... 0 /* unknown, taking default */ checking for equivalent simple type of pid_t... 0 /* unknown, taking default */ checking for equivalent simple type of uid_t... 0 /* unknown, taking default */ checking for equivalent simple type of gid_t... 0 /* unknown, taking default */ checking for equivalent simple type of time_t... 0 /* unknown, taking default */ checking for equivalent simple type of socklen_t... 0 /* unknown, taking default */ checking for equivalent simple type of off_t... 0 /* unknown, taking default */ checking for equivalent simple type of off64_t... 0 /* unknown, taking default */ checking for basic type of struct stat.st_dev... 0 /* unknown, taking default */ checking for basic type of struct stat.st_ino... 0 /* unknown, taking default */ checking for basic type of struct stat.st_nlink... 0 /* unknown, taking default */ checking for basic type of struct stat.st_size... 0 /* unknown, taking default */ checking for basic type of struct stat.st_blksize... 0 /* unknown, taking default */ checking for basic type of struct stat.st_blocks... 0 /* unknown, taking default */ checking for basic type of struct timeval.tv_usec... 0 /* unknown, taking default */ checking for basic type of struct rlimit.rlim_max... 0 /* unknown, taking default */