Date: Thu, 29 Sep 2011 10:21:18 +0100 From: "Klaus T. Aehlig" <aehlig@linta.de> To: Chuck Swiger <cswiger@mac.com> Cc: ports@freebsd.org, ehaupt@FreeBSD.org Subject: Re: clang and configure checking for equivalent simple type Message-ID: <20110929092118.GA13434@curry.linta.de> In-Reply-To: <F0B4A636-116E-4CA7-A07B-118AB5AC6ABC@mac.com> References: <20110929045818.GA3463@curry.linta.de> <F0B4A636-116E-4CA7-A07B-118AB5AC6ABC@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110929092118.GA13434>