r232498 breaks building ports security/nss with both gcc & clang

From: Jia-Shiun Li <jiashiun_at_gmail.com>
Date: Wed, 7 Mar 2012 03:10:42 +0800
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
Received on Tue Mar 06 2012 - 18:11:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC