From owner-freebsd-current@FreeBSD.ORG Tue Mar 6 19:11:12 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EF451065676 for ; Tue, 6 Mar 2012 19:11:12 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7B78FC1D for ; Tue, 6 Mar 2012 19:11:12 +0000 (UTC) Received: by mail-iy0-f182.google.com with SMTP id k25so10123465iah.13 for ; Tue, 06 Mar 2012 11:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=uZ7dd0s0ss0YwUuTlD/pWOxTg4vjme243OGi6UaLbE0=; b=KCu+XaKUiLneC7RurDsNwPZcCwjwv3C485VMvQ73E/A8MKNEQgyWkFwAg/qdbqdLbj gIa6NtJtiY6sG5ur6YzAaVvxOLQY6Nrq6Noj//8muyKuHwn8euxEBDgmL9LUpUHNzqN1 OUBSuMhuuz8FH9Z/HRzP2MCKj02BVLXcPwYcgQuI71gDBW/+CpdwXOczMZF3DM0vi3sq L/aTjlY+lCe9ju3i6xN62jwx91ZL0Jqud+XZ2fyw/j0n8HdY4HS5FGEXV4o8iDah00I4 hVE8Pjt2+P9lh4G/usJmce7hbywdMxLaRIZDXt6EUI5DY4L9ChW6BluRkGrz0sFpRluy qnGQ== Received: by 10.50.15.132 with SMTP id x4mr9413686igc.27.1331061072233; Tue, 06 Mar 2012 11:11:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.11.197 with HTTP; Tue, 6 Mar 2012 11:10:42 -0800 (PST) From: Jia-Shiun Li Date: Wed, 7 Mar 2012 03:10:42 +0800 Message-ID: To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: r232498 breaks building ports security/nss with both gcc & clang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 06 Mar 2012 19:11:12 -0000 after updated current- as of Mar 5, security/nss build broken at /usr/include/runetype.h & /usr/include/xlocale/_ctype.h. A quick grep shows that nowhere else under /usr/src/include uses 'inline'. gcc: gmake[1]: Entering directory `/usr/ports/security/nss/work/nss-3.13.3/mozilla/security/nss/lib' cd util; gmake libs gmake[2]: Entering directory `/usr/ports/security/nss/work/nss-3.13.3/mozilla/security/nss/lib/util' cc -o FreeBSD10.0_OPT.OBJ/quickder.o -c -O2 -pipe -I/usr/local/include/nspr -L/usr/local/lib -fno-strict-aliasing -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_ UTIL_DIRECTLY -I../../dist/FreeBSD10.0_OPT.OBJ/include -I../../dist/public/ -I../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -D FREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY - I../../../dist/FreeBSD10.0_OPT.OBJ/include -I../../../dist/public/ -I../../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFREEBS D -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I../.. /../../dist/FreeBSD10.0_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss quickder.c In file included from /usr/include/_ctype.h:94, from /usr/include/ctype.h:46, from secport.h:83, from seccomon.h:62, from secasn1.h:51, from quickder.c:43: /usr/include/runetype.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const' In file included from /usr/include/ctype.h:46, from secport.h:83, from seccomon.h:62, from secasn1.h:51, from quickder.c:43: /usr/include/_ctype.h: In function '__maskrune': /usr/include/_ctype.h:100: error: invalid type argument of '->' /usr/include/_ctype.h: In function '__sbmaskrune': /usr/include/_ctype.h:107: error: invalid type argument of '->' /usr/include/_ctype.h: In function '__toupper': /usr/include/_ctype.h:133: error: invalid type argument of '->' /usr/include/_ctype.h: In function '__sbtoupper': /usr/include/_ctype.h:140: error: invalid type argument of '->' /usr/include/_ctype.h: In function '__tolower': /usr/include/_ctype.h:147: error: invalid type argument of '->' /usr/include/_ctype.h: In function '__sbtolower': /usr/include/_ctype.h:154: error: invalid type argument of '->' In file included from /usr/include/ctype.h:83, from secport.h:83, from seccomon.h:62, from secasn1.h:51, from quickder.c:43: /usr/include/xlocale/_ctype.h: At top level: /usr/include/xlocale/_ctype.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' /usr/include/xlocale/_ctype.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' /usr/include/xlocale/_ctype.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' /usr/include/xlocale/_ctype.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' /usr/include/xlocale/_ctype.h:114: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' clang: gmake[1]: Entering directory `/usr/ports/security/nss/work/nss-3.13.3/mozilla/security/nss/lib' cd util; gmake libs gmake[2]: Entering directory `/usr/ports/security/nss/work/nss-3.13.3/mozilla/security/nss/lib/util' clang -o FreeBSD10.0_OPT.OBJ/quickder.o -c -O2 -pipe -I/usr/local/include/nspr -L/usr/local/lib -fno-strict-aliasing -O -fPIC -ansi -W all -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DU SE_UTIL_DIRECTLY -I../../dist/FreeBSD10.0_OPT.OBJ/include -I../../dist/public/ -I../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTL Y -I../../../dist/FreeBSD10.0_OPT.OBJ/include -I../../../dist/public/ -I../../../dist/private/ -O -fPIC -ansi -Wall -Wno-switch -DFRE EBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I.. /../../../dist/FreeBSD10.0_OPT.OBJ/include -I../../../../dist/public/nss -I../../../../dist/private/nss quickder.c clang: warning: argument unused during compilation: '-L/usr/local/lib' In file included from quickder.c:43: In file included from ./secasn1.h:51: In file included from ./seccomon.h:62: In file included from ./secport.h:83: In file included from /usr/include/ctype.h:46: In file included from /usr/include/_ctype.h:94: /usr/include/runetype.h:93:8: error: unknown type name 'inline' static inline const _RuneLocale *__getCurrentRuneLocale(void) ^ /usr/include/runetype.h:93:15: error: expected identifier or '(' static inline const _RuneLocale *__getCurrentRuneLocale(void) ^ In file included from quickder.c:43: In file included from ./secasn1.h:51: In file included from ./seccomon.h:62: In file included from ./secport.h:83: In file included from /usr/include/ctype.h:83: /usr/include/xlocale/_ctype.h:112:1: error: unknown type name 'inline' XLOCALE_ISCTYPE(alnum, _CTYPE_A|_CTYPE_D) ^ /usr/include/xlocale/_ctype.h:107:3: note: expanded from: _XLOCALE_INLINE int is##fname##_l(int c, locale_t l); \ ^ /usr/include/xlocale/_ctype.h:58:32: note: expanded from: #define _XLOCALE_INLINE extern inline ^ /usr/include/xlocale/_ctype.h:112:1: error: expected identifier or '(' XLOCALE_ISCTYPE(alnum, _CTYPE_A|_CTYPE_D) ^ /usr/include/xlocale/_ctype.h:107:19: note: expanded from: _XLOCALE_INLINE int is##fname##_l(int c, locale_t l); \ ^ /usr/include/xlocale/_ctype.h:112:1: error: unknown type name 'inline' XLOCALE_ISCTYPE(alnum, _CTYPE_A|_CTYPE_D) ^ /usr/include/xlocale/_ctype.h:108:3: note: expanded from: _XLOCALE_INLINE int is##fname##_l(int c, locale_t l)\ ^ /usr/include/xlocale/_ctype.h:58:32: note: expanded from: #define _XLOCALE_INLINE extern inline ^ Jia-Shiun