clang and configure checking for equivalent simple type

Klaus T. Aehlig aehlig at linta.de
Thu Sep 29 09:21:35 UTC 2011


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 */


More information about the freebsd-ports mailing list